There may be times when you want to use HTML in your WordPress website. For example you may prefer to code a hyperlink by hand or you want to adjust the header size. In this tutorial we show you how to view and add HTML code to a Page or Post in WordPress.
Here is a list of the specific HTML tags that WordPress allows in posts, pages, and widgets:
a, address, abbr, acronym, area, article, aside, b, big, blockquote, br, caption, cite, class, code, col, del, details, dd, div, dl, dt, em, figure, figcaption, footer, font, h1, h2, h3, h4, h5, h6, header, hgroup, i, img, ins, kbd, li, map, mark, ol, p, pre, q, rp, rt, rtc, ruby, s, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var
This article assumes you have a live WordPress website. Not quite there yet? That’s okay! Get you up and running with our recommended WordPress Web Hosting.
How to Add HTML to a Page/Post
- Login to your WordPress dashboard.
- In the navigation menu click the Pages or Posts link, depending which one you want to add HTML to. For the purpose of this tutorial we clicked Posts.
- Now, click the page or post that you want to edit.
- Click the Text tab.
You will then see the text of the page or post and you can enter the HTML. In our example we are adding a link to an email address.
- Click Update to save your changes.
Here is what our example looks like:
Congratulations, now you know how to add HTML to a WordPress Page or Post! Looking for more guides? Check out our WordPress How To Articles!
Get our Free Step-by-Step Guide to Creating a WordPress Website
Learn the ins and outs of creating a winning WordPress site step-by-step, from start to finish.