php - CSS block-quote empty lines -
css block quote don't add empty lines qoute
example :
<blockquote> number 1 number 2 </blockquote>
this appear following "" > ""
don't appear , empty line appear
> number 1 > > number 2
i want them empty line included on blockquote .
a >
reserved character in html. it's used building tags.
you need escape it, or browser think it's code , not display it.
use <
<
, , >
>
.
<blockquote> number 1<br> ><br><!-- "greater than" symbol --> number 2<br> </blockquote> <hr> <blockquote> number 1<br> <br><!-- empty line --> number 2<br> </blockquote>
from spec:
5.3.2 character entity references
four character entity references deserve special mention since used escape special characters:
<
represents<
sign.>
represents>
sign.&
represents&
sign."
represents"
mark.authors wishing put
<
character in text should use<
(ascii decimal 60) avoid possible confusion beginning of tag (start tag open delimiter). similarly, authors should use>
(ascii decimal 62) in text instead of>
avoid problems older user agents incorrectly perceive end of tag (tag close delimiter) when appears in quoted attribute values.
Comments
Post a Comment