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 &lt; <, , &gt; >.

<blockquote>  number 1<br>  &gt;<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:

  • &lt; represents < sign.
  • &gt; represents > sign.
  • &amp; represents & sign.
  • &quot; represents " mark.

authors wishing put < character in text should use &lt; (ascii decimal 60) avoid possible confusion beginning of tag (start tag open delimiter). similarly, authors should use &gt; (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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -