Title: Extra HTML
Last modified: August 19, 2016

---

# Extra HTML

 *  Resolved [Ricardo Zea](https://wordpress.org/support/users/rzea/)
 * (@rzea)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/extra-html/)
 * Hello,
 * WordPress is adding extra <p> tags in my code. I’m using the HTML tab to paste
   the code.
 * Here’s what’s happening:
 *     ```
       </div>
       <p><!-- END Slider --></div>
       <p><br class="clear" /></div>
       ```
   
 * See the extra <p>’s?
 * It’s not a plugin, I don’t have any plugin installed at all.
 * I have already taken out all the spaces between the HTML tags (something I shouldn’t
   have to do at all) and out of 6/7 HTML errors I had only 1 error remains (I can
   fix one of the <p>’s you see above, but I left both to show the kind error I’m
   getting).
 * I’ve searched the forums before posting but there is only one similar forum but
   no one has been able to solve that issue either.
 * —
 * This is very disapointing, although I’m not new to HTML this is my first time
   using WordPress to build a website because I heard very good comments about it,
   but now I’m trying such a simple thing which is copy HTML code from Dreamweaver
   to the HTML tab in WordPress and WordPress welcomes me with this absurd problem.
 * If there’s no way to solve this, I will have to dump WordPress for another CMS.
   I honestly do NOT want to do it, but seems I’m being forced to do so.
 * Thanks for any help you can provide on this issue.

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

 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/extra-html/#post-1264673)
 * Try having no spaces or no new lines (as you do above) between tags and no html
   comments.
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/extra-html/#post-1264674)
 * Another option is to use a plugin:
    [http://wordpress.org/extend/plugins/search.php?q=wpautop](http://wordpress.org/extend/plugins/search.php?q=wpautop)
 *  [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/extra-html/#post-1264676)
 * rzea,
 * You might try the TinyMCE Advanced plugin which has an option to prevent this
   sort of behavior. [http://wordpress.org/extend/plugins/tinymce-advanced/](http://wordpress.org/extend/plugins/tinymce-advanced/)
 *  Thread Starter [Ricardo Zea](https://wordpress.org/support/users/rzea/)
 * (@rzea)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/extra-html/#post-1264789)
 * Perfect iridiax, the **Disable WPAUTOP** solved the problem.
 * Not sure if I want to install TinyMCE, the author says it installs 15 plugins
   and I’m not sure I really need all that.
 * Anyway, this issue is solved.
 * Thanks guys.
 *  [brianair](https://wordpress.org/support/users/brianair/)
 * (@brianair)
 * [16 years ago](https://wordpress.org/support/topic/extra-html/#post-1264931)
 * The wpautop filter changes BR and P tags.
 * To force a line break, use this:
 * > `<br clear="none" />`
 * Valid? I don’t know, but wpautop ignores it. That’s pretty easy relief!
 *  [woogychuck](https://wordpress.org/support/users/woogychuck/)
 * (@woogychuck)
 * [16 years ago](https://wordpress.org/support/topic/extra-html/#post-1264933)
 * This hack isn’t really workable as it clears out all the legit p and br tas.
 * This seems like an insanely easy fix for the WordPress team. Add a hidden field
   to the editor page that’s value changes when you click the HTML tab.
 * Then it would be easy to create filters that only work in a specific mode and
   this problem could be averted.

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

The topic ‘Extra HTML’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 5 participants
 * Last reply from: [woogychuck](https://wordpress.org/support/users/woogychuck/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/extra-html/#post-1264933)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
