HTML实例-099 HTML常用的实例实体表

hrs 提交于 2019/12/20 - 11:13 , 周五

实例代码:

<!doctype html>
<head>
<meta charset="utf-8">
<style>
table,tr,td,th{
border-collapse:collapse;
  border:1px solid #000000;
   width:600px;
   height:40px;
  text-align:center;
}
th{
background-color:#000000;
color:#ffffff;

}

tr:nth-child(even){
background-color:#E8E8E8;

}
</style>


</head>
<html>
<body>
<table >
<tr>
   <th>显示结果</th>
  <th>描述</th>
   <th>实体名称</th>
  <th>实体编号</th>
</tr>

<tr>
   <td></td>
  <td>空格</td>
   <td>&amp;nbsp;</td>
  <td>&amp;#160;</td>
</tr>


<tr>
   <td><</td>
  <td>小于号</td>
   <td>&amp;lt;</td>
  <td>&amp;#60;</td>
</tr>

<tr>
   <td>></td>
  <td>大于号</td>
   <td>&amp;gt;</td>
  <td>&amp;#62;</td>
</tr>

<tr>
   <td>&</td>
  <td>和号</td>
   <td>&amp;amp;</td>
  <td>&amp;#38;</td>
</tr>

<tr>
   <td>"</td>
  <td>引号</td>
   <td>&amp;quot;</td>
  <td>&amp;#34;</td>
</tr>

<tr>
   <td>'</td>
  <td>撇号</td>
   <td>&amp;apos;(IE)</td>
  <td>&amp;#39;</td>
</tr>

<tr>
   <td>¢</td>
  <td>分(cent)</td>
   <td>&amp;cent;</td>
  <td>&amp;#162;</td>
</tr>

<tr>
   <td>£</td>
  <td>镑(pound)</td>
   <td>&amp;pound;</td>
  <td>&amp;#163;</td>
</tr>

<tr>
   <td>¥</td>
  <td>元(yen)</td>
   <td>&amp;yen;</td>
  <td>&amp;#165;</td>
</tr>

<tr>
   <td>€</td>
  <td>欧元(euro)</td>
   <td>&amp;euro;</td>
  <td>&amp;#8364;</td>
</tr>

<tr>
   <td>§</td>
  <td>小节</td>
   <td>&amp;sect;</td>
  <td>&amp;#167;</td>
</tr>

<tr>
   <td>©</td>
  <td>版权(copyright)</td>
   <td>&amp;copy;</td>
  <td>&amp;#169;</td>
</tr>

<tr>
   <td>®</td>
  <td>注册商标</td>
   <td>&amp;reg;</td>
  <td>&amp;#174;</td>
</tr>

<tr>
   <td>™</td>
  <td>商标</td>
   <td>&amp;trade;</td>
  <td>&amp;#8482;</td>
</tr>

<tr>
   <td>×</td>
  <td>乘号</td>
   <td>&amp;times;</td>
  <td>&amp;#215;</td>
</tr>

<tr>
   <td>÷</td>
  <td>除号</td>
   <td>&amp;divide;</td>
  <td>&amp;#247;</td>
</tr>

</table>
</body>
</html>

运行效果:

html_099.png

标签