Title: Loosing HTML code While Editing Post/Page
Last modified: August 19, 2016

---

# Loosing HTML code While Editing Post/Page

 *  [numi67](https://wordpress.org/support/users/numi67/)
 * (@numi67)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/loosing-html-code-while-editing-postpage/)
 * When adding line space to my posts and pages (IE: <div style=”height:20px;”></
   div> ) I noticed that once you go from HTML view in the edit window, to Visual
   view and then back to HTML that line of code just vanishes from the the page.
 * I don’t know why it seems to be just this line that is taken out. I have even
   un-checked the option under settings>writing> to have WP auto correct invalid
   XHTML code etc. But I don’t see a problem with the syntax.
 * Could I be wrong?

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/loosing-html-code-while-editing-postpage/#post-1299341)
 * If you want to use markup, stick to the HTML tab and do not switch back to the
   Visual Editor. The latter is designed to remove all markup.

Viewing 1 replies (of 1 total)

The topic ‘Loosing HTML code While Editing Post/Page’ is closed to new replies.

## Tags

 * [editing page](https://wordpress.org/support/topic-tag/editing-page/)
 * [editing post](https://wordpress.org/support/topic-tag/editing-post/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [html view](https://wordpress.org/support/topic-tag/html-view/)
 * [visual view](https://wordpress.org/support/topic-tag/visual-view/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/loosing-html-code-while-editing-postpage/#post-1299341)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
