Title: p tag auto closing after hr tag
Last modified: August 22, 2016

---

# p tag auto closing after hr tag

 *  [George](https://wordpress.org/support/users/chainkiller/)
 * (@chainkiller)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/auto-closing-after/)
 * So i have the following code in my post:
 *     ```
       <p class="class"><strong>Text</strong><hr>
       <a href="http://link1.html" target="_blank">Link 1</a></p>
       ```
   
 * But on the frontend when i check the code i have:
 *     ```
       <p class="class"><strong>Text</strong><hr></p>
       <a href="http://link1.html" target="_blank">Link 1</a>
       <p></p>
       ```
   
 * Can i prevent this from happening?

The topic ‘p tag auto closing after hr tag’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [George](https://wordpress.org/support/users/chainkiller/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/auto-closing-after/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
