html - tag with <br> count as empty? -
does tag count empty when forexample doing this?
html
<p> </br> </p>
css p:empty {display:none}
no.
p:empty {display:none}
to apply p must empty.
<p></p>
is empty , take style.
<p> </p>
is not empty , not take style.
in code below border added illustration purposes only.
p { border: 1px solid red; } p:empty { display:none }
<p></p> <p> </p>
Comments
Post a Comment