【参加讨论】
;
;
;
;
; ; ;
; ;
■:
像很多电脑语言一样,html 文件亦提供注解功能。浏览器会忽略此标记中的文字(可以 是很多行)而不作显示,一般使用目的: 称为段落标记。作用:为字、画、表格等之间留一空白行。
本来
是一围堵标记,标于一段落的头尾,但从 html 2.0 开始己不需要
作结尾。
例子:
| 原始码 | 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. |
| 显示结果 | 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. |
■
:
称为换行标记。作用:令字、画、表格等显示于下一行。
由于浏览器会自动忽略原始码中空白和换行的部分,这令到
成为最常用的标记之 一。因为无论你在原始码中编好了多漂亮的文章,若不适当地加上换行标记或段落标记, 浏览器只会将它显示成一大段。
错误示范:(邮局可不会接受一行过的地址)
| 原始码 | 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 |
正确例子:
| 原始码 | 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 |
为文中不同部份加上说明,方便日后修改。
这对较复杂或非私人网页尤其重要,它不单是提醒自已,亦提醒你的同事这部分 做什么、那部分做什么。
例子:
用作版权声明。
假如你不希望别人使用或复制你的网页,可加上警告字眼。
例子:
■ :
的常用参数: 如:
align="center"
可选值:right, left, center。
内定值: align="left"