HTML基础(DTD & 注释 &常见HTML编码)

DTD语法:

<!DOCTYPE HTML PUBLIC "version name" "url">


 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

 

注释:

<!--


-->

注释标签不能嵌套使用

&lt;                             <

&gt;                            >

&amp;                        &

&quot;                        "

&reg;                          @R

&copy;                       @C

&trade;                       TM

&nbsp;                        空格

 

&quot的用法

<body class="a"b"></body>    ------>     <body class="a&quot;b"></body>

 

 

 

posted on 2012-09-07 18:53  Yours风之恋  阅读(186)  评论(0编辑  收藏  举报