CSS 块引用空行
CSS block-quote empty lines
CSS 块引用不要在引号中添加空行
示例:
<blockquote>
this is number 1
this is number 2
</blockquote>
这将显示如下,但 "" > ""
不会出现,只会出现空行
> this is number 1
>
> this is number 2
我希望它们的空行包含在 blockquote 中。
一个>
是HTML中的保留字符。它用于构建标签。
需要转义,否则浏览器会认为是代码而不显示。
<
使用 <
,>
使用 >
。
<blockquote>
this is number 1<br>
><br><!-- with "greater than" symbol -->
this is number 2<br>
</blockquote>
<hr>
<blockquote>
this is number 1<br>
<br><!-- with just an empty line -->
this is number 2<br>
</blockquote>
来自规范:
5.3.2 Character entity
references
Four character entity references deserve special mention since they
are frequently used to escape special characters:
<
represents the <
sign.
>
represents the >
sign.
&
represents the &
sign.
"
represents the "
mark.
Authors wishing to put the <
character in text should use <
(ASCII decimal 60) to avoid possible confusion with the beginning of a
tag (start tag open delimiter). Similarly, authors should use >
(ASCII decimal 62) in text instead of >
to avoid problems with older
user agents that incorrectly perceive this as the end of a tag (tag
close delimiter) when it appears in quoted attribute values.
CSS 块引用不要在引号中添加空行
示例:
<blockquote>
this is number 1
this is number 2
</blockquote>
这将显示如下,但 "" > ""
不会出现,只会出现空行
> this is number 1
>
> this is number 2
我希望它们的空行包含在 blockquote 中。
一个>
是HTML中的保留字符。它用于构建标签。
需要转义,否则浏览器会认为是代码而不显示。
<
使用 <
,>
使用 >
。
<blockquote>
this is number 1<br>
><br><!-- with "greater than" symbol -->
this is number 2<br>
</blockquote>
<hr>
<blockquote>
this is number 1<br>
<br><!-- with just an empty line -->
this is number 2<br>
</blockquote>
来自规范:
5.3.2 Character entity references
Four character entity references deserve special mention since they are frequently used to escape special characters:
<
represents the<
sign.>
represents the>
sign.&
represents the&
sign."
represents the"
mark.Authors wishing to put the
<
character in text should use<
(ASCII decimal 60) to avoid possible confusion with the beginning of a tag (start tag open delimiter). Similarly, authors should use>
(ASCII decimal 62) in text instead of>
to avoid problems with older user agents that incorrectly perceive this as the end of a tag (tag close delimiter) when it appears in quoted attribute values.