Creating a WordPress Page
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 adjust the header sizes. In this tutorial we will show you how to view/add HTML code to a Page or Post in WordPress.

As per WordPress' official Code support page, Javascript, and other embeds such as Flash are not allowed to be added 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:

  1. Login to the Dashboard for WordPress.
  2. In the navigation menu click the Pages or Posts link, depending which one you want to add HTML to. In my tests I clicked Posts.
  3. Now, click the page or post that you want to edit.

  4. Click the Text tab.

    You will then see the text of the page or post and you can enter the HTML. In my Tests I am adding a Link to an email address:

  5. Click the Update button to save your changes.
    Here is view of the HTML link I added to a Post:

Congratulations, now you know how to add HTML to a WordPress Page or Post!

Continued Education in Course 101: An introduction to WordPress
You are viewing Section 15: Adding HTML to a Wordpress Page/Post
Section 14: Creating a WordPress Page
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

n/a Points
2014-07-16 6:35 pm
when I added the html code, the html code showed up not the link.
11,156 Points
2014-07-17 2:05 pm
This can happen if you are in the visual mode instead of the text mode. Be sure to click on the Text tab before inputting your code.
n/a Points
2014-07-19 7:25 am
It is so easy i want advance
22,987 Points
2014-07-21 1:20 pm
Hello abc,

We would be happy to create more articles for in-demand topics. Please let us know if you have any particular thing you need to see.

Kindest Regards,
Scott M
n/a Points
2014-09-05 3:38 am

how can integrete html page into wordpress.

write step by step.

22,987 Points
2014-09-05 8:47 am
Hello Umang,

This article is entirely about just that. Just follow the instructions above and you should be fine. You are welcome to ask any specific questions here in the comments.

Kindest Regards,
Scott M
n/a Points
2014-10-09 2:54 am

I want to add html code inside the blog, like if i do <html>...</html>, this <html>...</html> should be printed as it is on the blog.  how do i do that?

22,987 Points
2014-10-09 8:23 am
Hello Tehreem,

If you wish for the tags to be visible, they will display as you type them if you are using the 'Visual' mode when creating a post or page. If you are in the 'Text' mode, then it assumes you want to use the code in your post and it will not display but be used for formatting. You can switch back and forth as needed while creating your pages or posts in WordPress.

Kindest Regards,
Scott M
n/a Points
2014-11-15 10:49 am

Hi Scott,

That is useful and confirms what I had suspected BUT to add Google Analytics/Webmaster tools you need to get into the 'head', not the body, from what I see only the 'body' is exposed in the text viewer...or am I missing something?



12,608 Points
2014-11-17 9:34 am
Hello Brian,

Thank you for your WordPress question. I found many posts in the WordPress forum, where they suggest using a plugin such as Google Analytics by Yoast.

Alternately, you can edit the code for your theme, and add the the Google code to the header.php. This file location may differ based on your specific theme.

Thank you,
n/a Points
2014-11-19 6:56 am

Hi JP,

Thanks for such a quick response. If it is not too early have a great Christmas.




n/a Points
2014-11-18 4:45 pm

I followed your steps and yes it should work.  It does paste in text, when I go to visual I see the blank box for my embed, then when I reload my site to view, nothing shows up.  I am pasting in text only not in visual.  I'm trying to embed a book I am recommending from Amazon. 

11,156 Points
2014-11-18 6:02 pm
To narrow down the issue, when pasting in the text view, and saving your changes without switching back to the visual editor, are your changes in place?
n/a Points
2014-12-03 2:29 am

Holle Friend I Want Some Help. My website page link show

12,608 Points
2014-12-03 10:24 am
Hello Masud,

Thank you for contacting us. We are happy to help, but it is not clear what you are asking.

Please provide more information on what you are trying to accomplish.

Thank you,
n/a Points
2015-01-07 10:58 am

We need to include the link to the dynamic seal from the BBB into our wordpress site. The BBB people have provided us with the code snippet to use -and when we add it to the page using the instructions above it doesn't work. The BBB uses a dynamic seal that includes a javascript call - how do we add this to our template?



20,678 Points
2015-01-07 11:40 am
Hello Karen,

Thanks for the question. As per the tutorial above, Javascript calls are not supposed to be in the page/post, so this tutorial won't really be of help to you. However, can add the logo by using the WordPress Editor provides in the Administrator (Appearance>Editor). I would suggest adding it in a FOOTER so that it appears. This may depend on the theme that you are using. The editor lets you work directly with the code of the WordPress theme.

I hope this helps to answer your question, please let us know if you require any further assistance.

Kindest regards,
Arnel C.
n/a Points
2015-02-12 7:33 pm

I am trying to add this code into the welcome page of my wp site:

This is the code to show an audio button that I had created<html><head><script type="text/javascript">function stop() {var audioPlayer = document.getElementsByTagName("audio")[0];audioPlayer.pause();audioPlayer.currentTime = ......

12,608 Points
2015-02-13 11:56 am
Hello Terence,

Thank you for contacting us. Were you able to follow the above guide? Did you have a question, or problem we can assist you with ?

Since it seems you put the HTML of your page, I shortened it to make the page more navigable.

If you have any further questions, feel free to post them below.

Thank you,
n/a Points
2015-02-13 12:12 am

Thanks,  John-Paul Briones. I agree that adding HTML code can be intimidating and confusing. But my focus is to empower my clients and readers to recognize that, often, don’t give themselves enough credit. With the proper guidance and training, it is possible to try new things. Notice, my emphasis was on the fact that the HTML was being provided to the reader. Receiving it from a reputable source, like a conference organizer, blog syndicator, publisher, etc. and putting them on a WordPress website is easier than it may seem.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

21 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!