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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -