1. Home
  2. Tutorials
  3. How to Add HTML to a WordPress Page/Post

How to Add HTML to a WordPress Page/Post

Sometimes people want to use HTML in their WordPress website. For example, you might want to code a hyperlink by hand, or adjust the header sizes, and in the following tutorial we’ll show you how to do exactly that, which means you’ll be able to view/add HTML code to a page or a post in WordPress.

As said by WordPress official Code support page, Javascript, and other embeds like Flash are forbidden from being appended to a Page or Post in WordPress.

This is a list of the HTML tags which 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 can you add HTML to a Page/Post

Step 1: First login to the Dashboard on WordPress.

Step 2: When you’re in the navigation menu press the Pages or Posts link, this changes depending on which one you’d like to add HTML to. In this case we’ll click on Posts.

Step 3: Next, click the page or post that you’d like to edit, which in our case will be Hello World!

Step 5: Click the Text tab.

Step 6: After that you should see the text of the page or post and you will be able to put in HTML. In this example we’ll add a link to an email address:

<a href=”mailto:demo@domain.com”>Email Example Here</a>

Step 6: Then press on Update and it should save your changes.

Now you should know how you can add HTML to your WordPress page or post!



Updated on February 11, 2018

Was this article helpful?

Related Articles

Add A Comment