Title: Typing HTML code in a wordpress post
Last modified: August 31, 2016

---

# Typing HTML code in a wordpress post

 *  [graphicsxp](https://wordpress.org/support/users/graphicsxp/)
 * (@graphicsxp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/typing-html-code-in-a-wordpress-post/)
 * I can’t figure out how to enter simple HTML code.
 * If I type <span itemprop=”address”> some text </span> in the Text tab of the 
   post, and I preview the post, then it works.
 * But as soon as I swith to the Visual tab, the HTML code I typed is removed.
 * How to prevent that from happening ?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/typing-html-code-in-a-wordpress-post/#post-6927085)
 * > …as soon as I switch to the Visual tab, the HTML code I typed is removed.
   > How to prevent that from happening?
 * Do not switch from one to the other, and no, there is no other solution. Those
   two editors each function independently and in their own ways exclusive of each
   other without ever knowing the other even exists.
 *  Thread Starter [graphicsxp](https://wordpress.org/support/users/graphicsxp/)
 * (@graphicsxp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/typing-html-code-in-a-wordpress-post/#post-6927238)
 * But even if I don’t switch from one to the other, it remains a problem because
   I edit an existing post, the default Tab is ‘Visual’.
 * I find it unreal that one cannot type HTML in a WordPress post ?! Is there a 
   plugin that allows doing so ?
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/typing-html-code-in-a-wordpress-post/#post-6927289)
 * You can type HTML into a post, but only by using the “Text” mode editor. In my
   own case, I use the text editor at the Dashboard and then later use the “Slash
   Edit” plugin to get back there from out on the page. So if you are clicking “
   edit” on the page and ending up in the wrong editor, try using the “Slash Edit”
   plugin as long as the page had first been saved in the text editor at the Dashboard…
   
   [https://wordpress.org/plugins/search.php?q=Slash+Edit](https://wordpress.org/plugins/search.php?q=Slash+Edit)
 * Overall, here is more on this entire matter:
    [https://wordpress.org/support/topic/how-do-you-prevent-the-wordpress-editor-from-stripping-out-certain-html-tags?replies=8](https://wordpress.org/support/topic/how-do-you-prevent-the-wordpress-editor-from-stripping-out-certain-html-tags?replies=8)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Typing HTML code in a wordpress post’ is closed to new replies.

## Tags

 * [html tag](https://wordpress.org/support/topic-tag/html-tag/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/typing-html-code-in-a-wordpress-post/#post-6927289)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
