实体标签

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>实体标签</title>
</head>
<!-- 
为什么要学实体标签:
    因为> < 等一些符号在html页面中是有着特殊含义,这些字符如果需要在页面中显示,这时候就应该使用实体标签。
    

常用的实体字符: 
    空格      &nbsp;
    小于号     &lt;
    大于号    &gt;
-----------------------------
    人民币    &yen;
    版权      &copy;
    商标      &reg;
-->
<body>
&nbsp;&nbsp;&nbsp;&nbsp;段落标签是使用&lt;p&gt;标"签"<br/>
该毛衣的价格:&yen;298<br/>
<<深入javaweb>>该书版权归属于:&copy;loaderman
    <hr/>
    本次活动最后的解释器归属于:&reg;loaderman
</body>
</html>

猜你喜欢

转载自www.cnblogs.com/loaderman/p/9999073.html
今日推荐