Title: writing HTML &quot;comments&quot; in page HTML code causing a space
Last modified: August 19, 2016

---

# writing HTML "comments" in page HTML code causing a space

 *  [MrCanuck](https://wordpress.org/support/users/mrcanuck-1/)
 * (@mrcanuck-1)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/writing-html-comments-in-page-html-code-causing-a-space/)
 * When I add an HTML comment <!–Example Comment–> into the code section for a page,
   it automatically pushes down a line in the code. For example, if I do this: `
   </div><!--Example Comment-->` it ends up automatically doing this:
 *     ```
       </div>
       <!--Example Comment-->
       ```
   
 * The “HTML comment” doesn’t stay on the same line that I put it on (it bumps down
   to the next line). It then pushes my next line of code down and in turn adds 
   a space.
 * Is there any way to stop this from happening?

Viewing 1 replies (of 1 total)

 *  Thread Starter [MrCanuck](https://wordpress.org/support/users/mrcanuck-1/)
 * (@mrcanuck-1)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/writing-html-comments-in-page-html-code-causing-a-space/#post-1981608)
 * I find it strange that it does this. There must be a way to prevent this from
   dropping down to the next line. I hope so anyways 🙂

Viewing 1 replies (of 1 total)

The topic ‘writing HTML "comments" in page HTML code causing a space’ is closed 
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [MrCanuck](https://wordpress.org/support/users/mrcanuck-1/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/writing-html-comments-in-page-html-code-causing-a-space/#post-1981608)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
