手册目录
HTML 基础教程
HTML XHTML
HTML 图形
参考手册
前言
XHTML 元素是以 XML 格式编写的 HTML 元素。
XHTML 元素是以 XML 格式编写的 HTML 元素。
在 HTML 中,某些元素可以不正确地彼此嵌套在一起,就像这样:
<b><i>This text is bold and italic</b></i>
在 XHTML 中,所有元素必须正确地彼此嵌套,就像这样:
<b><i>This text is bold and italic</i></b>
这是错误的:
<p>This is a paragraph <p>This is another paragraph
这是正确的:
<p>This is a paragraph</p> <p>This is another paragraph</p>
这是错误的:
A break: <br> A horizontal rule: <hr> An image: <img src="happy.gif" alt="Happy face">
这是正确的:
A break: <br /> A horizontal rule: <hr /> An image: <img src="happy.gif" alt="Happy face" />
这是错误的:
<BODY> <P>This is a paragraph</P> </BODY>
这是正确的:
<body> <p>This is a paragraph</p> </body>
相关视频
科技资讯
24小时阅读榜
1
2
3
4
5
6
7
8
9
10
精品课程
共5课时 | 17.4万人学习
共49课时 | 78.2万人学习
共29课时 | 62.5万人学习
共25课时 | 39.7万人学习
共43课时 | 73.8万人学习