<!--注解--> ; <P> ; <BR> ; <HR> ; <CENTER> ; <PRE> ; <DIV> ; <NOBR> ; <WBR> ; ■<!--注解-->: 像很多电脑语言一样,HTML 文件亦提供注解功能。浏览器会忽略此标记中的文字(可以 是很多行)而不作显示,一般使用目的: <P>称为段落标记。作用:为字、画、表格等之间留一空白行。 本来<P>是一围堵标记,标于一段落的头尾,但从 HTML 2.0 开始己不需要</P>作结尾。 例子: 原始码 | Here is the text for my paragraph. It does't matter how long it is, how many space are between the words or when I decide to hit the return key. It will create a new paragraph only when I begin the tag with another one. <P>Here's the next paragraph. | 显示结果 | Here is the text for my paragraph. It does't matter how long it is, how many space are between the words or when I decide to hit the return key. It will create a new paragraph only when I begin the tag with another one. Here's the next paragraph. | ■ <BR> : <BR>称为换行标记。作用:令字、画、表格等显示于下一行。 由于浏览器会自动忽略原始码中空白和换行的部分,这令到<BR>成为最常用的标记之 一。因为无论你在原始码中编好了多漂亮的文章,若不适当地加上换行标记或段落标记, 浏览器只会将它显示成一大段。 错误示范:(邮局可不会接受一行过的地址) 原始码 | 566 E Boston Post RD Mamaroneck NY 10543-9982 United States of America | 结果 | 566 E Boston Post RD Mamaroneck NY 10543-9982 United States of America | |