| Basic tags |
基 本 标 签 |
| <html></html> |
Creates an HTML document |
创建一个HTML文档 |
| <head></head> |
Sets off the title and other
information that isn't displayed
on the Web page itself |
设置文档标题以及其他不在WEB网页上显示的信息 |
| <body></body> |
Sets off the visible portion of
the document |
设置文档的可见部分 |
| |
|
| Header tags
|
标题标签 |
| <title></title> |
Puts the name of the document
in the title bar |
将文档的题目放在标题栏中 |
| |
|
Body attributes |
文档整体属性 |
| <body bgcolor=?> |
Sets the background color,
using name or hex value |
设置背景颜色,使用名字或十六进制值 |
| <body text=?> |
Sets the text color, using
name or hex value |
设置文本文字颜色,使用名字或十六进制值 |
| <body link=?> |
Sets the color of links,
using name or hex value |
设置链接颜色,使用名字或十六进制值 |
| <body vlink=?> |
Sets the color of followed
links, using name or hex value |
设置已使用的链接的颜色,使用名字或十六进制值 |
| <body alink=?> |
Sets the color of links on click |
设置正在被击中的链接的颜色,使用名字或十六进制值 |
| |
|
Text tags |
文 本 标 签 |
| <pre></pre> |
Creates preformatted text |
创建预格式化文本 |
| <h1></h1> |
Creates the largest headline |
创建最大的标题 |
| <h6></h6> |
Creates the smallest headline |
创建最小的标题 |
| <b></b> |
Creates bold text |
创建黑体字 |
| <i></i> |
Creates italic text |
创建斜体字 |
| <tt></tt> |
Creates teletype, or
typewriter-style text |
创建打字机风格的字体 |
| <cite></cite> |
Creates a citation, usually
italic |
创建一个引用,通常是斜体 |
| <em></em> |
Emphasizes a word (with italic
or bold) |
加重一个单词(通常是斜体加黑体) |
| <strong></strong> |
Emphasizes a word (with italic
or bold) |
加重一个单词(通常是斜体加黑体) |
| <font size=?></font> |
Sets size of font, from 1 to 7 |
设置字体大小,从1到7 |
| <font color=?></font> |
Sets font color, using name or
hex value |
设置字体的颜色,使用名字或十六进制值 |
| |
|
Links |
链 接 |
| <a href="URL"></a> |
Creates a hyperlink |
创建一个超链接 |
<a href="mailto:EMAIL">
</a> |
Creates a mailto link |
创建一个自动发送电子邮件的链接 |
| <a name="NAME"></a> |
Creates a target location within
a document |
创建一个位于文档内部的靶位 |
| <a href="#NAME"></a> |
Links to that target location
from elsewhere in the document |
创建一个指向位于文档内部靶位的链接 |
| |
|
Formatting |
格 式 排 版 |
| <p> |
Creates a new paragraph |
创建一个新的段落 |
| <p align=?> |
Aligns a paragraph to the left,
right, or center |
将段落按左、中、右对齐 |
| <br> |
Inserts a line break |
插入一个回车换行符 |
<blockquote>
</blockquote> |
Indents text from both sides |
从两边缩进文本 |
| <dl></dl> |
Creates a definition list |
创建一个定义列表 |
| <dt> |
Precedes each definition term |
放在每个定义术语词之前 |
| <dd> |
Precedes each definition |
放在每个定义之前 |
| <ol></ol> |
Creates a numbered list |
创建一个标有数字的列表 |
| <li> |
Precedes each list item, and adds
a number |
放在每个数字列表项之前,并加上一个数字 |
| <ul></ul> |
Creates a bulleted list |
创建一个标有圆点的列表 |
| <li> |
Precedes each list item, and adds
the bullet |
放在每个圆点列表项之前,并加上一个圆点 |
| <div align=?> |
A generic tag used to format large
blocks of HTML, also used for
stylesheets |
一个用来排版大块HTML段落的标签,也用于格式化表 |
| |
|
Graphical elements |
图 形 元 素 |
| <img src="name"> |
Adds an image |
添加一个图像 |
| <img src="name" align=?> |
Aligns an image: left, right,
center; bottom, top, middle |
排列对齐一个图像:左中右或上中下 |
| <img src="name" border=?> |
Sets size of border around an
image |
设置围绕一个图像的边框的大小 |
| <hr> |
Inserts a horizontal rule |
加入一条水平线 |
| <hr size=?> |
Sets size (height) of rule |
设置水平线的大小(高度) |
| <hr width=?> |
Sets width of rule, in percentage
or absolute value |
设置水平线的宽度(百分比或绝对像素点) |
| <hr noshade> |
Creates a rule without a shadow |
创建一个没有阴影的水平线 |
| |
|
Tables |
表 格 |
| <table></table> |
Creates a table |
创建一个表格 |
| <tr></tr> |
Sets off each row in a table |
开始表格中的每一行 |
| <td></td> |
Sets off each cell in a row |
开始一行中的每一个格子 |
| <th></th> |
Sets off the table header (a
normal cell with bold, centered
text) |
设置表格头:一个通常使用黑体居中文字的格子 |
| Table attributes |
表 格 属 性 |
| <table border=#> |
Sets width of border around
table cells |
设置围绕表格的边框的宽度 |
| <table cellspacing=#> |
Sets amount of space between table
cells |
设置表格格子之间空间的大小 |
| <table cellpadding=#> |
Sets amount of space between a
cell's border and its contents |
设置表格格子边框与其内部内容之间空间的大小 |
| <table width=# or %> |
Sets width of table - in pixels
or as a percentage of document width |
设置表格的宽度-用绝对像素值或文档总宽度的百分比 |
| <tr align=?> or <td align=?> |
Sets alignment for cell(s) (left,
center, or right) |
设置表格格子的水平对齐(左中右) |
| <tr valign=?> or <td valign=?> |
Sets vertical alignment for cell(s)
(top, middle, or bottom) |
设置表格格子的垂直对齐(上中下) |
| <td colspan=#> |
Sets number of columns a cell should
span (default=1) |
设置一个表格格子应跨占的列数(缺省为1) |
| <td rowspan=#> |
Sets number of rows a cell should
span (default=1) |
设置一个表格格子应跨占的行数(缺省为1) |
| <td nowrap> |
Prevents the lines within a cell
from being broken to fit |
禁止表格格子内的内容自动断行回卷 |
| |
|
| Frames |
窗 框 |
| <frameset></frameset> |
Precedes the <body> tag in a frames document; can also be nested in other framesets |
放在一个窗框文档的<body>标签之前,也可以嵌在其他窗框文档中 |
| <frameset rows="value,value"> |
Defines the rows within a frameset,
using number in pixels, or percentage
of width |
定义一个窗框内的行数,可以使用绝对像素值或高度的百分比 |
| <frameset cols="value,value"> |
Defines the columns within a frameset, using number in pixels, or percentage
of width |
定义一个窗框内的列数,可以使用绝对像素值或宽度的百分比 |
| <frame> |
Defines a single frame - or region - within a frameset |
定义一个窗框内的单一窗或窗区域 |
| <noframes></noframes> |
Defines what will appear on browsers
that don't support frames |
定义在不支持窗框的浏览器中显示什么提示 |
| |
|
| Frames attributes |
窗 框 属 性 |
| <frame src="URL"> |
Specifies which HTML document should
be displayed |
规定窗框内显示什么HTML文档 |
| <frame name="name"> |
Names the frame, or region, so it may
be targeted by other frames |
命名窗框或区域以便别的窗框可以指向它 |
| <frame marginwidth=#> |
Defines the left and right margins for the frame; must be equal to or greater than 1 |
定义窗框左右边缘的空白大小,必须大于等于1 |
| <frame marginheight=#> |
Defines the top and bottom margins for the frame; must be equal to or greater than 1 |
定义窗框上下边缘的空白大小,必须大于等于1 |
| <frame scrolling=VALUE> |
Sets whether the frame has a scrollbar; value may equal "yes," "no," or "auto." The default, as in ordinary documents,
is auto. |
设置窗框是否有滚动栏,其值可以是"yes","no","auto",缺省时一般为"auto" |
| <frame noresize> |
Prevents the user from resizing a frame |
禁止用户调整一个窗框的大小 |
| |
|
| Forms |
表 单 |
| For functional forms, you'll have to run a CGI script. The HTML just creates the appearance of a form. |
对于功能性的表单,一般需要运行一个CGI小程序,HTML仅仅是产生表单的表面样子。 |
| <form></form> |
Creates all forms |
创建所有表单 |
| <select multiple name="NAME" size=?></select> |
Creates a scrolling menu. Size sets the number of menu items visible before you need to scroll. |
创建一个滚动菜单,size设置在需要滚动前可以看到的表单项数目 |
| <option> |
Sets off each menu item |
设置每个表单项的内容 |
| <select name="NAME"></select> |
Creates a pulldown menu |
创建一个下拉菜单 |
| <option> |
Sets off each menu item |
设置每个菜单项的内容 |
| <textarea name="NAME" cols=40 rows=8></textarea> |
Creates a text box area. Columns set the width; rows set the height. |
创建一个文本框区域,列的数目设置宽度,行的数目设置高度 |
| <input type="checkbox" name="NAME"> |
Creates a checkbox. Text follows tag. |
创建一个复选框,文字在标签后面 |
| <input type="radio" name="NAME" value="x"> |
Creates a radio button. Text follows
tag |
创建一个单选框,文字在标签后面 |
| <input type=text name="foo" size=20> |
Creates a one-line text area. Size
sets length, in characters. |
创建一个单行文本输入区域,size设置以字符计的宽度 |
| <input type="submit" value="NAME"> |
Creates a Submit button |
创建一个submit(提交)按钮 |
| <input type="image" border=0 name="NAME" src="name.gif"> |
Creates a Submit button using an image |
创建一个使用图象的submit(提交)按钮 |
| <input type="reset"> |
Creates a Reset button |
创建一个reset(重置)按钮 |