Take this ul for example:
<ul>
<li>HI THERE</li>
<br>
<li>
<p>ME</p>
</li>
</ul>
When the innerHtml of an li tag is blank, the li wraps itself right up to the text.
It doesn’t happen for the p tag. I’m assuming this is because p is for paragraphs which usually have white space breaks before and after.
Is there any way to remove this?
<p>elements generally have margins and / or padding. You can set those to zero in a stylesheet.Semantically speaking, however, it is fairly unusual to have a list of paragraphs.