(This article assumes you have a live WordPress website. Not quite there yet? That’s okay! We can get you up and running with WordPress Web Hosting.) 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/add HTML code to a Page or Post in WordPress.
Here is a list of the specific HTML tags that WordPress allows: address, a, 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, hr, i, img, ins, kbd, li, map, ol, p, pre, q, s, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var
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.
- 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!