Basic tags | 基 本 标 签 |
<html></html> | Creates an HTML document | 创 建 一 个HTML 文 档 |
<head></head> | Sets off the title and other }rz%rj0information that isn't displayed51Testing软件测试网9Lc^'@/AJ4w4SA on the Web page itself | 设 置 文 档 标 题 以 及 其 他 不 在WEB 网 页 上 显 示 的 信 息 |
<body></body> | Sets off the visible portion of51Testing软件测试网3J,xfN-Q the document | 设 置 文 档 的 可 见 部 分 |
| |
Header tags | 标 题 标 签 |
<title></title> | Puts the name of the document51Testing软件测试网^fp*uD,\WKz in the title bar | 将 文 档 的 题 目 放 在 标 题 栏 中 |
| |
Body attributes | 文 档 整 体 属 性 |
<body bgcolor=?> | Sets the background color,51Testing软件测试网4bQ/@_3Vz using name or hex value | 设 置 背 景 颜 色, 使 用 名 字 或 十 六 进 制 值 |
<body text=?> | Sets the text color, using51Testing软件测试网i!`F&q8Va name or hex value | 设 置 文 本 文 字 颜 色, 使 用 名 字 或 十 六 进 制 值 |
<body link=?> | Sets the color of links, l Rm4sol |Jxac0using name or hex value | 设 置 链 接 颜 色, 使 用 名 字 或 十 六 进 制 值 |
<body vlink=?> | Sets the color of followed
W
I+t'\_9Cf
b&u&v`
f0links, 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 /Ez+hE!]ql1l/l0typewriter-style text | 创 建 打 字 机 风 格 的 字 体 |
<cite></cite> | Creates a citation, usually51Testing软件测试网!YW\O,F!d.q{ italic | 创 建 一 个 引 用, 通 常 是 斜 体 |
<em></em> | Emphasizes a word (with italic l8K8~u E,BW3W.G0or bold) | 加 重 一 个 单 词( 通 常 是 斜 体 加 黑 体) |
<strong></strong> | Emphasizes a word (with italic (ST?!Cd4U$mT&yx0or bold) | 加 重 一 个 单 词( 通 常 是 斜 体 加 黑 体) |
<font size=?></font> | Sets size of font, from 1 to 7 | 设 置 字 体 大 小, 从 1 到 7 |
<font color=?></font> | Sets font color, using name or51Testing软件测试网`c7Ygo-pyz hex value | 设 置 字 体 的 颜 色, 使 用 名 字 或 十 六 进 制 值 |
| |
Links | 链 接 |
<a href="URL"></a> | Creates a hyperlink | 创 建 一 个 超 链 接 |
<a href="mailto:EMAIL"> ?DoxQJ
i u0</a> | Creates a mailto link | 创 建 一 个 自 动 发 送 电 子 邮 件 的 链 接 |
<a name="NAME"></a> | Creates a target location within "RZ5RTJ8@0a document | 创 建 一 个 位 于 文 档 内 部 的 靶 位 |
<a href="#NAME"></a> | Links to that target location V6TS1S;J+C;S0from elsewhere in the document | 创 建 一 个 指 向 位 于 文 档 内 部 靶 位 的 链 接 |
| |
Formatting | 格 式 排 版 |
<p> | Creates a new paragraph | 创 建 一 个 新 的 段 落 |
<p align=?> | Aligns a paragraph to the left,51Testing软件测试网.eLN6s
b4[
I right, or center | 将 段 落 按 左、 中、 右 对 齐 |
<br> | Inserts a line break | 插 入 一 个 回 车 换 行 符 |
<blockquote>51Testing软件测试网&y6Fmo)X
?;Ob-s </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 I|nK;S$orX0a number | 放 在 每 个 数 字 列 表 项 之 前, 并 加 上 一 个 数 字 |
<ul></ul> | Creates a bulleted list | 创 建 一 个 标 有 圆 点 的 列 表 |
<li> | Precedes each list item, and adds51Testing软件测试网F \:b/J)a4[n the bullet | 放 在 每 个 圆 点 列 表 项 之 前, 并 加 上 一 个 圆 点 |
<div align=?> | A generic tag used to format large51Testing软件测试网`C\CJ%k
T UMSA#A blocks of HTML, also used for51Testing软件测试网K-O H0u;^ e stylesheets | 一 个 用 来 排 版 大 块HTML 段 落 的 标 签, 也 用 于 格 式 化 表 |
| |
Graphical elements | 图 形 元 素 |
<img src="name"> | Adds an image | 添 加 一 个 图 像 |
<img src="name" align=?> | Aligns an image: left, right,51Testing软件测试网b9wE-K/C center; bottom, top, middle | 排 列 对 齐 一 个 图 像: 左 中 右 或 上 中 下 |
<img src="name" border=?> | Sets size of border around an51Testing软件测试网*n X+aYd%G]G image | 设 置 围 绕 一 个 图 像 的 边 框 的 大 小 |
<hr> | Inserts a horizontal rule | 加 入 一 条 水 平 线 |
<hr size=?> | Sets size (height) of rule | 设 置 水 平 线 的 大 小( 高 度) |
<hr width=?> | Sets width of rule, in percentage51Testing软件测试网2ip(R"T.DF4p 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 (a51Testing软件测试网E#V#IR)dt normal cell with bold, centered (ycbnU)[
p0text) | 设 置 表 格 头: 一 个 通 常 使 用 黑 体 居 中 文 字 的 格 子 |
Table attributes | 表 格 属 性 |
<table border=#> | Sets width of border around $KTU(\V0table cells | 设 置 围 绕 表 格 的 边 框 的 宽 度 |
<table cellspacing=#> | Sets amount of space between table &Lr*I K2K_h0cells | 设 置 表 格 格 子 之 间 空 间 的 大 小 |
<table cellpadding=#> | Sets amount of space between a51Testing软件测试网8zEA C2Z:IX cell's border and its contents | 设 置 表 格 格 子 边 框 与 其 内 部 内 容 之 间 空 间 的 大 小 |
<table width=# or %> | Sets width of table - in pixels yjMUM0or as a percentage of document width | 设 置 表 格 的 宽 度- 用 绝 对 像 素 值 或 文 档 总 宽 度 的 百 分 比 |
<tr align=?> or <td align=?> | Sets alignment for cell(s) (left,
|