HTML手册.doc

上传人:仙人指路1688 文档编号:2881000 上传时间:2023-03-01 格式:DOC 页数:81 大小:363.50KB
返回 下载 相关 举报
HTML手册.doc_第1页
第1页 / 共81页
HTML手册.doc_第2页
第2页 / 共81页
HTML手册.doc_第3页
第3页 / 共81页
HTML手册.doc_第4页
第4页 / 共81页
HTML手册.doc_第5页
第5页 / 共81页
点击查看更多>>
资源描述

《HTML手册.doc》由会员分享,可在线阅读,更多相关《HTML手册.doc(81页珍藏版)》请在三一办公上搜索。

1、HTML手册Basic tags 基 本 标 签Creates an HTML document创 建 一 个HTML 文 档Sets off the title and other information that isnt displayed on the Web page itself设 置 文 档 标 题 以 及 其 他 不 在WEB 网 页 上 显 示 的 信 息Sets off the visible portion of the document 设 置 文 档 的 可 见 部 分Header tags标 题 标 签Puts the name of the document in

2、 the title bar 将 文 档 的 题 目 放 在 标 题 栏 中Body attributes文 档 整 体 属 性Sets the background color, using name or hex value设 置 背 景 颜 色, 使 用 名 字 或 十 六 进 制 值Sets the text color, using name or hex value设 置 文 本 文 字 颜 色, 使 用 名 字 或 十 六 进 制 值Sets the color of links, using name or hex value设 置 链 接 颜 色, 使 用 名 字 或 十 六

3、 进 制 值Sets the color of followed links, using name or hex value设 置 已 使 用 的 链 接 的 颜 色, 使 用 名 字 或 十 六 进 制 值Sets the color of links on click设 置 正 在 被 击 中 的 链 接 的 颜 色, 使 用 名 字 或 十 六 进 制 值Text tags文 本 标 签Creates preformatted text创 建 预 格 式 化 文 本Creates the largest headline创 建 最 大 的 标 题Creates the smallest

4、 headline创 建 最 小 的 标 题Creates bold text创 建 黑 体 字Creates italic text创 建 斜 体 字Creates teletype, or typewriter-style text创 建 打 字 机 风 格 的 字 体Creates a citation, usually italic创 建 一 个 引 用, 通 常 是 斜 体Emphasizes a word (with italic or bold)加 重 一 个 单 词( 通 常 是 斜 体 加 黑 体)Emphasizes a word (with italic or bold)

5、加 重 一 个 单 词( 通 常 是 斜 体 加 黑 体)Sets size of font, from 1 to 7设 置 字 体 大 小, 从 1 到 7Sets font color, using name or hex value设 置 字 体 的 颜 色, 使 用 名 字 或 十 六 进 制 值Links链 接Creates a hyperlink创 建 一 个 超 链 接Creates a mailto link创 建 一 个 自 动 发 送 电 子 邮 件 的 链 接Creates a target location within a document创 建 一 个 位 于 文

6、档 内 部 的 靶 位Links to that target location from elsewhere in the document创 建 一 个 指 向 位 于 文 档 内 部 靶 位 的 链 接Formatting格 式 排 版Creates a new paragraph创 建 一 个 新 的 段 落Aligns a paragraph to the left, right, or center将 段 落 按 左、 中、 右 对 齐Inserts a line break插 入 一 个 回 车 换 行 符 Indents text from both sides从 两 边 缩

7、进 文 本Creates a definition list创 建 一 个 定 义 列 表Precedes each definition term放 在 每 个 定 义 术 语 词 之 前Precedes each definition放 在 每 个 定 义 之 前Creates a numbered list创 建 一 个 标 有 数 字 的 列 表Precedes each list item, and adds a number放 在 每 个 数 字 列 表 项 之 前, 并 加 上 一 个 数 字Creates a bulleted list创 建 一 个 标 有 圆 点 的 列 表

8、Precedes each list item, and adds the bullet放 在 每 个 圆 点 列 表 项 之 前, 并 加 上 一 个 圆 点A generic tag used to format large blocks of HTML, also used for stylesheets一 个 用 来 排 版 大 块HTML 段 落 的 标 签, 也 用 于 格 式 化 表Graphical elements图 形 元 素Adds an image添 加 一 个 图 像Aligns an image: left, right, center; bottom, top,

9、middle排 列 对 齐 一 个 图 像: 左 中 右 或 上 中 下Sets size of border around an image设 置 围 绕 一 个 图 像 的 边 框 的 大 小Inserts a horizontal rule加 入 一 条 水 平 线Sets size (height) of rule设 置 水 平 线 的 大 小( 高 度)Sets width of rule, in percentage or absolute value设 置 水 平 线 的 宽 度( 百 分 比 或 绝 对 像 素 点)Creates a rule without a shadow

10、创 建 一 个 没 有 阴 影 的 水 平 线Tables表 格Creates a table创 建 一 个 表 格Sets off each row in a table开 始 表 格 中 的 每 一 行Sets off each cell in a row开 始 一 行 中 的 每 一 个 格 子Sets off the table header (a normal cell with bold, centered text)设 置 表 格 头: 一 个 通 常 使 用 黑 体 居 中 文 字 的 格 子Table attributes表 格 属 性Sets width of border

11、 around table cells设 置 围 绕 表 格 的 边 框 的 宽 度Sets amount of space between table cells设 置 表 格 格 子 之 间 空 间 的 大 小Sets amount of space between a cells border and its contents设 置 表 格 格 子 边 框 与 其 内 部 内 容 之 间 空 间 的 大 小Sets width of table - in pixelsor as a percentage of document width设 置 表 格 的 宽 度 用 绝 对 像 素 值

12、 或 文 档 总 宽 度 的 百 分 比 or Sets alignment for cell(s) (left, center, or right)设 置 表 格 格 子 的 水 平 对 齐( 左 中 右) or Sets vertical alignment for cell(s)(top, middle, or bottom)设 置 表 格 格 子 的 垂 直 对 齐( 上 中 下)Sets number of columns a cell should span (default=1)设 置 一 个 表 格 格 子 应 跨 占 的 列 数( 缺 省 为 1)Sets number of

13、 rows a cell should span (default=1)设 置 一 个 表 格 格 子 应 跨 占 的 行 数( 缺 省 为 1)Prevents the lines within a cell from being broken to fit禁 止 表 格 格 子 内 的 内 容 自 动 断 行 回 卷Frames窗 框Precedes the tag in a frames document; can also be nested in other framesets放 在 一 个 窗 框 文 档 的 标 签 之 前,也 可 以 嵌 在 其 他 窗 框 文 档 中 Defi

14、nes the rows within a frameset, using number in pixels, or percentage of width定 义 一 个 窗 框 内 的 行 数, 可 以 使 用 绝 对 像 素 值 或 高 度 的 百 分 比 Defines the columns within a frameset, using number in pixels, or percentage of width定 义 一 个 窗 框 内 的 列 数, 可 以 使 用 绝 对 像 素 值 或 宽 度 的 百 分 比Defines a single frame - or regi

15、on - within a frameset定 义 一 个 窗 框 内 的 单 一 窗 或 窗 区 域 Defines what will appear on browsers that dont support frames定 义 在 不 支 持 窗 框 的 浏 览 器 中 显 示 什 么 提 示 Frames attributes窗 框 属 性Specifies which HTML document should be displayed规 定 窗 框 内 显 示 什 么HTML 文 档 Names the frame, or region, so it may be targeted

16、by other frames命 名 窗 框 或 区 域 以 便 别 的 窗 框 可 以 指 向 它Defines the left and right margins for the frame; must be equal to or greater than 1定 义 窗 框 左 右 边 缘 的 空 白 大 小, 必 须 大 于 等 于1 Defines the top and bottom margins for the frame; must be equal to or greater than 1定 义 窗 框 上 下 边 缘 的 空 白 大 小, 必 须 大 于 等 于1 Se

17、ts whether the frame has a scrollbar; value may equal yes, no, or auto. The default, as in ordinary documents, is auto.设 置 窗 框 是 否 有 滚 动 栏, 其 值 可 以 是 yes, no, auto, 缺 省 时 一 般 为 autoPrevents the user from resizing a frame禁 止 用 户 调 整 一 个 窗 框 的 大 小Forms表 单For functional forms, youll have to run a CGI s

18、cript. The HTML just creates the appearance of a form.对 于 功 能 性 的 表 单,一 般 需 要 运 行 一 个 CGI 小 程 序,HTML仅 仅 是产 生 表 单 的 表 面 样 子。Creates all forms创 建 所 有 表 单Creates a scrolling menu. Size sets the number of menu items visible before you need to scroll.创 建 一 个 滚 动 菜 单,size 设 置 在 需 要 滚 动 前 可 以 看 到 的 表 单 项 数

19、 目Sets off each menu item设 置 每 个 表 单 项 的 内 容Creates a pulldown menu创 建 一 个 下 拉 菜 单Sets off each menu item设 置 每 个 菜 单 项 的 内 容Creates a text box area. Columns set the width; rows set the height.创 建 一 个 文 本 框 区 域,列 的 数 目 设 置 宽 度,行 的 数 目 设 置 高 度Creates a checkbox. Text follows tag.创 建 一 个 复 选 框,文 字 在 标

20、签 后 面Creates a radio button. Text follows tag创 建 一 个 单 选 框,文 字 在 标 签 后 面Creates a one-line text area. Size sets length, in characters.创 建 一 个 单 行 文 本 输 入 区 域,size 设 置 以 字 符 计 的 宽 度Creates a Submit button创 建 一 个 submit(提 交)按 钮Creates a Submit button using an image创 建 一 个 使 用 图 象 的 submit(提 交)按 钮Creat

21、es a Reset button创 建 一 个 reset(重 置)按 钮页面(PAGE)标记(TAGS)HTML 文件结构(Document Structures). , , , , HTML 文件的正文写在这里. . 语言字符集(Charsets)的信息 #= us-ascii, iso-8859-1, x-mac-roman, iso-8859-2, x-mac-ce,iso-2022-jp, x-sjis, x-euc-jp,euc-kr, iso-2022-kr,gb2312, gb_2312-80,x-euc-tw, x-cns11643-1, x-cns11643-2, big

22、5 可在 HTML 文件中设置 MIME 字符集信息。您在浏览主页时,最好自己在浏览器的选项菜单内选择相应的语言(language encoding)。但是如果 HTML 文件里写明了设置,浏览器就会自动设置语言选项。尤其是主页里用到了字符实体(entities),则该主页就应该写明字符集信息。否则,您在浏览该主页时,若未正确设置语言选项,显示将可能混乱。背景色彩和文字色彩bgcolor - 背景色彩 text - 非可链接文字的色彩 link - 可链接文字的色彩 alink - 正被点击的可链接文字的色彩 vlink - 已经点击(访问)过的可链接文字的色彩 #=rrggbb色彩是用 16

23、 进制的 红绿蓝(red-green-blue, RGB) 值来表示。16 进制的数码有: 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f. 背景图象 Non Scrolling Background 页面空白(Margin) 页面左边的空白 页面上方的空白(天头) #=margin amount链接(Link)基本语法 . 这是一个链接的例子。 点一下带下划线的文字!这是一个链接的例子。 点一下带下划线的文字!跳转到页面的另外一个地方 . . 跳转到下一个链接点下一个链接点 跳转到下一个链接点下一个链接点跳转到另一个页面的某个地方 . . 跳转到另一个页面的某个地方。跳转到另

24、一个页面的某个地方。开一个新的(浏览器)窗口 (Target Window) . 开一个新窗口! 开一个新窗口! 标尺线 #=left, right #=rrggbb 16 进制 RGB 数码,或者是下列预定义色彩:Black, Olive,Teal, Red, Blue,Maroon, Navy,Gray, Lime, Fuchsia, ,Green, Purple,Silver, Yellow,Aqua 字体(FONT)标记(TAGS)标题字体(Header) . #=1, 2, 3, 4, 5, 6今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!

25、今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好! - 这些标记显示黑体字。 - 这些标记自动插入一个空行,不必用 标记再加空行。因此在一行中无法使用不同大小的字体。字体大小 . #=1, 2, 3, 4, 5, 6, 7 or +#,-# #=1, 2, 3, 4, 5, 6, 7今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!物理字体(Physical Style)今天天气真好! 今天天气真

26、好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!逻辑字体(Logical Style) 今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!今天天气真好! 今天天气真好!指定“字体大小”的标记和“指定字体”的标记的组

27、合使用 今天 天气 真好!今天 天气 真好!字体颜色 指定颜色 . #=rrggbb 16 进制数码,或者是下列预定义色彩:Black, Olive,Teal, Red, Blue,Maroon, Navy,Gray, Lime, Fuchsia, White,Green, Purple,Silver, Yellow,Aqua White & White White & White客户端字体(Font Face) . #=客户端可获得的字体 Hellow World!Hellow World! 客户端字体(Font Face)示例 字符实体(Entities) &#; #=字符实体名称 或者

28、ascii 值HTML2.0 的字符集& < " 文字布局(TEXT STYLE)标记(TAGS)行的控制 段(Paragraph) (可以看作是空行) 你好吗?很好。你好吗? 很好。换行 你好吗?很好。你好吗?很好。不换行 请改变您浏览器窗口的宽度, 使之小于这一行的宽度, 看看这个标记的作用! 请改变您浏览器窗口的宽度,使之小于这一行的宽度,看看这个标记的作用!文字的对齐(Alignment) . . #=left, center, rightHelloHello HelloHello. Hello Hello 文字的分区(Division)显示 . Can you

29、 feel happiness without unpleasant? Please show me your smile. Can you feel happiness without unpleasant?Please show me your smile. . Can you feel happiness without unpleasant?Please show me your smile. . Can you feel happiness without unpleasant?Please show me your smile. 列表 无序列表 .TodayTommorow Tod

30、ay Tommorow 有序列表 .TodayTommorow 1. Today 2. Tommorow 定义列表(Definition lists) .TodayToday is yesterday.TomorrowTomorrow is today. Today Today will be yesterday. Tomorrow Tomorrow will be today. Definition lists Compact .Today Today will be yesterday. Next Tomorrow will be today. TodayToday is yesterda

31、y.TomorrowTomorrow is today. 定制列表元素 定制表中的标记 #=disk, circle, squareONETWOTHREE ONE o TWO THREE 定制有序列表表中的序号 #=A, a, I, i, 1ONE-ONEONE-TWO A. ONE-ONE B. ONE-TWO ONE-ONEONE-TWO a. ONE-ONE b. ONE-TWO ONE-ONEONE-TWO I. ONE-ONE II. ONE-TWO ONE-ONEONE-TWO i. ONE-ONE ii. ONE-TWO ONE-ONEONE-TWO 1. ONE-ONE 2.

32、ONE-TWO 定制有序列表表中的序号的起始值 #=numberONE-ONEONE-TWO TWO-ONE TWO-TWOE. ONE-ONE F. ONE-TWO 10. TWO-ONE x. TWO-TWO 预格式化文本(Preformatted Text) .Please use your card.VISA MasterHere is an order form.FaxAir Mail Please use your cardVISA MasterHere is an order form. Fax Air Mail .Please use your card.VISA MasterHere is an order form.FaxAir Mail Please use your card.VISA MasterHere is order form. Fax Air Mail.Please use your card.VISA MasterHere is an order form.FaxAir Mail Please use your card.VISA MasterHere is order form.FaxAir Mail空白(Spacer) spacer type=horizontal size=

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号