HTM基本内容

 

 

什么是HTML

HTML是英文Hyper Text Mark-up Language(超文本标记语言)的缩写,它规定了自己的语法规则,用来表示比“文本”更丰富的意义,比如图片,表格,链接等。浏览器(IE,FireFox等)软件知道HTML语言的语法,可以用来查看HTML文档。目前互联网上的绝大部分网页都是使用HTML编写的。

 

HTML是什么样的

简单地来说,HTML的语法就是给文本加上表明文本含义的标签(Tag),让用户(人或程序)能对文本得到更好的理解。

 

下面是一个最简单的HTML文档:

 

点击查看效果

  

    <span style="font-family:宋体">第一个</span><span style="font-family:Times New Roman">Html</span><span style="font-family:宋体">文档</span><span style="font-family:Times New Roman">

  

  

    欢迎访问脚本之家!

  

所有的HTML文档都应该有一个标签,标签可以包含两个部分:

 

标签用于包含整个文档的一般信息,比如文档的标题(</span><span style="font-family:宋体">标签用于包含标题),对整个文档的描述,文档的关键字等等。文档的具体内容就要放在</span><span style="font-family:Times New Roman"><body></span><span style="font-family:宋体">标签里了。</span></p> <p> </p> <p><a><span style="font-family:宋体">标签用于表示链接,在浏览器(如</span><span style="font-family:Times New Roman">IE,Firefox</span><span style="font-family:宋体">等)中查看</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">文档时,点击</span><span style="font-family:Times New Roman"><a></span><span style="font-family:宋体">标签括起来的内容时,通常会跳转到另一个页面。这个要跳转到的页面的地址由</span><span style="font-family:Times New Roman"><a></span><span style="font-family:宋体">标签的</span><span style="font-family:Times New Roman">href</span><span style="font-family:宋体">属性指定。上面的</span><span style="font-family:Times New Roman"><a href="http://deerchao.net"></span><span style="font-family:宋体">中,</span><span style="font-family:Times New Roman">href</span><span style="font-family:宋体">属性的值就是</span><span style="font-family:Times New Roman">http://deerchao.net</span><span style="font-family:宋体">。</span></p> <p> </p> <p>HTML<span style="font-family:宋体">文档可以包含的内容</span></p> <p><span style="font-family:宋体">通过不同的标签,</span>HTML<span style="font-family:宋体">文档可以包含不同的内容,比如文本,链接,图片,列表,表格,表单,框架等。</span></p> <p> </p> <p><span style="font-family:宋体">文本</span> </p> <p>HTML<span style="font-family:宋体">对文本的支持是最丰富的,你可以设置不同级别的标题,分段和换行,可以指定文本的语义和外观,可以说明文本是引用自其它的地方,等等等等。</span></p> <p><span style="font-family:宋体">链接</span> </p> <p><span style="font-family:宋体">链接用来指出内容与另一个页面或当前页面某个地方有关。</span> </p> <p><span style="font-family:宋体">图片</span> </p> <p><span style="font-family:宋体">图片用于使页面更加美观,或提供更多的信息。</span> </p> <p><span style="font-family:宋体">列表</span> </p> <p><span style="font-family:宋体">列表用于说明一系列条目是彼此相关的。</span> </p> <p><span style="font-family:宋体">表格</span> </p> <p><span style="font-family:宋体">表格是按行与列将数据组织在一起的形式。也有不少人使用表格进行页面布局。</span> </p> <p><span style="font-family:宋体">表单</span> </p> <p><span style="font-family:宋体">表单通常由文本输入框,按钮,多选框,单选框,下拉列表等组成,使</span>HTML<span style="font-family:宋体">页面更有交互性。</span></p> <p><span style="font-family:宋体">框架</span> </p> <p><span style="font-family:宋体">框架使页面里能包含其它的页面。</span> </p> <p>HTML<span style="font-family:宋体">文档格式详细说明</span></p> <p><span style="font-family:宋体">前面介绍了</span>HTML<span style="font-family:宋体">文档的基本格式,下面再做一个详细说明。</span></p> <p> </p> <p>HTML<span style="font-family:宋体">文档可以用任何文本编辑器(比如记事本,</span><span style="font-family:Times New Roman">UltraEdit</span><span style="font-family:宋体">等)创建,编辑,因为它的内容在本质也只是一些文本。</span></p> <p> </p> <p><span style="font-family:宋体">在</span>HTML<span style="font-family:宋体">文本中,用尖括号括起来的部分称为标签。如果想在正文里使用尖括号(或者大与号小与号,总之是同一个东西),必须使用字符转义,也就是说转换字符的原有意义。</span><span style="font-family:Times New Roman"><</span><span style="font-family:宋体">应该使用</span><span style="font-family:Times New Roman"><</span><span style="font-family:宋体">代替,</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">则使用</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">,至于</span><span style="font-family:Times New Roman">&</span><span style="font-family:宋体">符号本身</span><span style="font-family:Times New Roman">,</span><span style="font-family:宋体">则应该使用</span><span style="font-family:Times New Roman">&</span><span style="font-family:宋体">替代(不得不说的是有很多</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">文档没有遵循这个规则,常用的浏览器也都能够分析出</span><span style="font-family:Times New Roman">&</span><span style="font-family:宋体">到底是一个转义的开始,还是一个符号,但是这样做是不推荐的)。</span></p> <p> </p> <p><span style="font-family:宋体">标签本质上是对它所包含的内容的说明,可能会有属性,来给出更多的信息。比如</span><img><span style="font-family:宋体">(图片)标签有</span><span style="font-family:Times New Roman">src</span><span style="font-family:宋体">属性(用于指明图片的地址),</span><span style="font-family:Times New Roman">width</span><span style="font-family:宋体">和</span><span style="font-family:Times New Roman">height</span><span style="font-family:宋体">属性(用于说明图片的宽度和高度)。</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">里能使用哪些标签,这些标签分别可以拥有哪些属性,这些都是有规定的,知道了这里说的基本知识之后,学习</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">其实也就是学习这些标签了。本文后面会对常用的</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">标签做出简短的介绍。</span></p> <p> </p> <p><span style="font-family:宋体">标签通常有开始部分和结束部分(也被称为开始标签和结束标签),它们一起限定了这个标签所包含的内容。属性只能在开始标签中指定,属性值可以用单引号或双引号括起来。结束标签都以</span>/<span style="font-family:宋体">加上标签名来表示。有时候,有些标签并不包含其它内容(只包括自己的属性,甚至连属性都没有),这种情况下,可以写成类似这样:</span><span style="font-family:Times New Roman"><img src="logo.gif" /></span><span style="font-family:宋体">。注意最后的一个空格和一个反斜杠,它说明这个标签已经结束,不需要单独的结束标签了。</span></p> <p> </p> <p>某些标签包含的内容中还可以有新的标签,新的标签名甚至可能还可以与包含它的标签的名称相同(哪些标签可以包含标签,可以包含哪些标签也是有规定的)。比如:</p> <p> </p> <p>点击查看效果</p> <p><div></p> <p>  <div><span style="font-family:宋体">分类目录</span><span style="font-family:Times New Roman">...</div></span></p> <p>  <div><span style="font-family:宋体">当前分类内容列表</span><span style="font-family:Times New Roman">...</div></span></p> <p></div> </p> <p>在这种情况下,最后出现的标签应该最先结束。</p> <p> </p> <p>HTML<span style="font-family:宋体">文档里所有的空白符(空格,</span><span style="font-family:Times New Roman">Tab</span><span style="font-family:宋体">,换行,回车)会被浏览器忽略,唯一的例外是空格,对空格的处理方式是所有连续的空格被当成一个空格,不管有一个,还是两个,还是</span><span style="font-family:Times New Roman">100</span><span style="font-family:宋体">个。之所以有这样的规则是因为忽略空白符能让使用</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">的作者以他觉得最方便的格式来排列内容,比如可以在每个标签开始后增加缩进,标签结束后减少缩进。由于英语文本中空格用得很普遍(用于分隔单词),所以对空格做了这样的特殊处理。如果要显示连续的空格(比如为了缩进),应该用</span><span style="font-family:Times New Roman"> </span><span style="font-family:宋体">来代表空格。</span></p> <p> </p> <p>常用标签介绍</p> <p>文本</p> <p><span style="font-family:宋体">最常用的标签可能是</span><font><span style="font-family:宋体">了,它用于改变字体,字号,文字颜色。</span></p> <p> </p> <p>点击查看效果</p> <p><font size="6">6</font></p> <p><font size="4">4</font></p> <p><font color="red" size="5"><span style="font-family:宋体">红色的</span><span style="font-family:Times New Roman">5</font></span></p> <p><font face="<span style="font-family:宋体">黑体</span><span style="font-family:Times New Roman">"></span><span style="font-family:宋体">黑体的字</span><span style="font-family:Times New Roman"></font></span></p> <p><span style="font-family:宋体">加粗,下划线,斜体字也是常用的文字效果,它们分别用</span><b>,<u>,<i><span style="font-family:宋体">表示:</span></p> <p> </p> <p>点击查看效果</p> <p><b>Bold</b></p> <p><i>italic</i></p> <p><u>underline</u> </p> <p><span style="font-family:宋体">还有一些标签,用来指出包含的文本有特殊的意义,比如</span><abbr><span style="font-family:宋体">(表示缩写),</span><span style="font-family:Times New Roman"><em></span><span style="font-family:宋体">(表示强调),</span><span style="font-family:Times New Roman"><strong></span><span style="font-family:宋体">(表示更强地强调)</span><span style="font-family:Times New Roman">,<cite></span><span style="font-family:宋体">(表示引用),</span><span style="font-family:Times New Roman"><address></span><span style="font-family:宋体">(表示地址)等等。这些标签不是为了定义显示效果而存在的,所以从浏览器里看它们可能没有任何效果,也可能不同的浏览器对这些标签的显示效果完全不同。</span></p> <p> </p> <p><span style="font-family:宋体">一篇很长的文章,如果有合适的小标题的话,就可以快速地对它的内容进行大致的了解。在</span>HTML<span style="font-family:宋体">里,用来表示标题的标签有:</span><span style="font-family:Times New Roman"><h1>,<h2>,<h3>,<h4>,<h5>,<h6></span><span style="font-family:宋体">,它们分别表示一级标题,二级标题,三级标题</span><span style="font-family:Times New Roman">...</span></p> <p> </p> <p>点击查看效果</p> <p><h1>HTML 30<span style="font-family:宋体">分钟教程</span><span style="font-family:Times New Roman"></h1></span></p> <p><h2><span style="font-family:宋体">什么是</span><span style="font-family:Times New Roman">HTML</h2></span></p> <p>...</p> <p><h2>HTML<span style="font-family:宋体">是什么样的</span><span style="font-family:Times New Roman"></h2></span></p> <p>... </p> <p>图片</p> <p><hr><span style="font-family:宋体">标签用于在页面上添加横线。可以通过指定</span><span style="font-family:Times New Roman">width</span><span style="font-family:宋体">和</span><span style="font-family:Times New Roman">color</span><span style="font-family:宋体">属性来控制横线的长度和颜色。</span></p> <p> </p> <p>点击查看效果</p> <p><hr width="90%" color="red" /> </p> <p><img><span style="font-family:宋体">标签用于在页面上添加图片,</span><span style="font-family:Times New Roman">src</span><span style="font-family:宋体">属性指定图片的地址,如果无法打开</span><span style="font-family:Times New Roman">src</span><span style="font-family:宋体">指定的图片,浏览器通常会在页面上需要显示图片的地方显示</span><span style="font-family:Times New Roman">alt</span><span style="font-family:宋体">属性定义的文本。</span></p> <p> </p> <p>点击查看效果</p> <p><img src="http://www.w3.org/Icons/valid-xhtml10" alt="<span style="font-family:宋体">图片简介</span><span style="font-family:Times New Roman">" /></span></p> <p>链接</p> <p><span style="font-family:宋体">超级链接用</span><a><span style="font-family:宋体">标签表示,</span><span style="font-family:Times New Roman">href</span><span style="font-family:宋体">属性指定了链接到的地址。</span><span style="font-family:Times New Roman"><a></span><span style="font-family:宋体">标签可以包含文本,也可以包含图片。</span></p> <p> </p> <p>点击查看效果</p> <p><a href="http://deerchao.net">Unibetter<span style="font-family:宋体">大学生论坛</span><span style="font-family:Times New Roman"></a></span></p> <p><a href="http://validator.w3.org"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="<span style="font-family:宋体">验证</span><span style="font-family:Times New Roman">HTML" /></a></span></p> <p>分段与换行</p> <p><span style="font-family:宋体">由于</span>HTML<span style="font-family:宋体">文档会忽略空白符,所以要想保证正常的分段换行的话,必须指出哪些文字是属于同一段落的,这就用到了标签</span><span style="font-family:Times New Roman"><p></span><span style="font-family:宋体">。</span></p> <p> </p> <p>点击查看效果</p> <p><p><span style="font-family:宋体">这是第一段。</span><span style="font-family:Times New Roman"></p></span></p> <p><p><span style="font-family:宋体">这是第二段。</span><span style="font-family:Times New Roman"></p></span></p> <p><span style="font-family:宋体">也有人不用</span><p><span style="font-family:宋体">,而用</span><span style="font-family:Times New Roman"><br></span><span style="font-family:宋体">。</span><span style="font-family:Times New Roman"><br></span><span style="font-family:宋体">只表示换行,不表示段落的开始或结束,所以通常没有结束标签。</span></p> <p> </p> <p>点击查看效果</p> <p><span style="font-family:宋体">这是第一段。</span><br></p> <p><span style="font-family:宋体">这是第二段。</span><br /></p> <p><span style="font-family:宋体">这是第三段。</span> </p> <p><span style="font-family:宋体">有时,要把文档看作不同的部分组合起来的,比如一个典型的页面可能包括三个部分:页头,主体,页脚。</span><div><span style="font-family:宋体">标签专门用于标明不同的部分:</span></p> <p> </p> <p>点击查看效果</p> <p><div><span style="font-family:宋体">页头内容</span><span style="font-family:Times New Roman"></div></span></p> <p><div><span style="font-family:宋体">主体内容</span><span style="font-family:Times New Roman"></div></span></p> <p><div><span style="font-family:宋体">页脚内容</span><span style="font-family:Times New Roman"></div></span></p> <p>表格</p> <p>HTML<span style="font-family:宋体">文档在浏览器里通常是从左到右,从上到下地显示的,到了窗口右边就自动换行。为了实现分栏的效果,很多人使用表格(</span><span style="font-family:Times New Roman"><table></span><span style="font-family:宋体">)进行页面排版(虽然</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">里提供表格的本意不是为了排版)。</span></p> <p> </p> <p><table><span style="font-family:宋体">标签里通常会包含几个</span><span style="font-family:Times New Roman"><tr></span><span style="font-family:宋体">标签,</span><span style="font-family:Times New Roman"><tr></span><span style="font-family:宋体">代表表格里的一行。</span><span style="font-family:Times New Roman"><tr></span><span style="font-family:宋体">标签又会包含</span><span style="font-family:Times New Roman"><td></span><span style="font-family:宋体">标签,每个</span><span style="font-family:Times New Roman"><td></span><span style="font-family:宋体">代表一个单元格。</span></p> <p> </p> <p>点击查看效果</p> <p><table></p> <p>  <tr></p> <p>    <td>2000</td><td><span style="font-family:宋体">悉尼</span><span style="font-family:Times New Roman"></td></span></p> <p>  </tr></p> <p>  <tr></p> <p>    <td>2004</td><td><span style="font-family:宋体">雅典</span><span style="font-family:Times New Roman"></td></span></p> <p>  </tr></p> <p>  <tr></p> <p>    <td>2008</td><td><span style="font-family:宋体">北京</span><span style="font-family:Times New Roman"></td></span></p> <p>  </tr></p> <p></table> </p> <p><tr><span style="font-family:宋体">标签还可以被</span><span style="font-family:Times New Roman"><table></span><span style="font-family:宋体">里的</span><span style="font-family:Times New Roman"><thead></span><span style="font-family:宋体">或</span><span style="font-family:Times New Roman"><tbody></span><span style="font-family:宋体">或</span><span style="font-family:Times New Roman"><tfoot></span><span style="font-family:宋体">包含。它们分别代表表头,表正文,表脚。在打印网页的时候,如果表格很大,一页打印不完,</span><span style="font-family:Times New Roman"><thead></span><span style="font-family:宋体">和</span><span style="font-family:Times New Roman"><tfoot></span><span style="font-family:宋体">将在每一页出现。</span></p> <p> </p> <p><th><span style="font-family:宋体">和</span><span style="font-family:Times New Roman"><td></span><span style="font-family:宋体">非常相似,也用在</span><span style="font-family:Times New Roman"><tr></span><span style="font-family:宋体">里边,不同的是</span><span style="font-family:Times New Roman"><th></span><span style="font-family:宋体">代表这个单元格是它所在的行或列的标题。</span></p> <p> </p> <p>点击查看效果</p> <p><table></p> <p>  <thead></p> <p>    <tr><th><span style="font-family:宋体">时间</span><span style="font-family:Times New Roman"></th><th></span><span style="font-family:宋体">地点</span><span style="font-family:Times New Roman"></th></tr></span></p> <p>  </thead></p> <p>  <tbody></p> <p>    <tr><td>2000</td><td><span style="font-family:宋体">悉尼</span><span style="font-family:Times New Roman"></td></tr></span></p> <p>    <tr><td>2004</td><td><span style="font-family:宋体">雅典</span><span style="font-family:Times New Roman"></td></tr></span></p> <p>    <tr><td>2000</td><td><span style="font-family:宋体">北京</span><span style="font-family:Times New Roman"></td></tr></span></p> <p>  </tbody></p> <p></table> </p> <p>列表</p> <p><span style="font-family:宋体">表格用于表示二维数据(行,列),一维数据则用列表表示。列表可以分为无序列表(</span><ul><span style="font-family:宋体">),有序列表(</span><span style="font-family:Times New Roman"><ol></span><span style="font-family:宋体">)和定义列表(</span><span style="font-family:Times New Roman"><dl></span><span style="font-family:宋体">)。前两种列表更常见一些,都用</span><span style="font-family:Times New Roman"><li></span><span style="font-family:宋体">标签包含列表项目。</span></p> <p> </p> <p>无序列表表示一系列类似的项目,它们之间没有先后顺序。</p> <p> </p> <p>点击查看效果</p> <p><ul></p> <p>  <li><span style="font-family:宋体">苹果</span><span style="font-family:Times New Roman"></li></span></p> <p>  <li><span style="font-family:宋体">桔子</span><span style="font-family:Times New Roman"></li></span></p> <p>  <li><span style="font-family:宋体">桃</span><span style="font-family:Times New Roman"></li></span></p> <p></ul> </p> <p>有序列表中各个项目间的顺序是很重要的,浏览器通常会自动给它们产生编号。</p> <p> </p> <p>点击查看效果</p> <p><ol></p> <p>  <li><span style="font-family:宋体">打开冰箱门</span><span style="font-family:Times New Roman"></li></span></p> <p>  <li><span style="font-family:宋体">把大象赶进去</span><span style="font-family:Times New Roman"></li></span></p> <p>  <li><span style="font-family:宋体">关上冰箱门</span><span style="font-family:Times New Roman"></li></span></p> <p></ol> </p> <p>框架</p> <p><span style="font-family:宋体">最后谈一下框架,曾经非常流行的技术,框架使一个窗口里能同时显示多个文档。主框架页里面没有</span><body><span style="font-family:宋体">标签,取代它的是</span><span style="font-family:Times New Roman"><frameset></span><span style="font-family:宋体">。</span></p> <p> </p> <p><frameset><span style="font-family:宋体">标签的属性</span><span style="font-family:Times New Roman">Rows</span><span style="font-family:宋体">和</span><span style="font-family:Times New Roman">Cols</span><span style="font-family:宋体">用于指定框架集</span><span style="font-family:Times New Roman">(frameset)</span><span style="font-family:宋体">里有多少行(列),以及每行(列)的高度(宽度)。</span></p> <p> </p> <p><frameset><span style="font-family:宋体">标签可以包含</span><span style="font-family:Times New Roman"><frame></span><span style="font-family:宋体">标签,每个</span><span style="font-family:Times New Roman"><frame></span><span style="font-family:宋体">标签代表一个文档(</span><span style="font-family:Times New Roman">src</span><span style="font-family:宋体">属性指定文档的地址)。</span></p> <p> </p> <p><span style="font-family:宋体">如果觉得这样的页面还不够复杂的话,还可以在</span><frameset><span style="font-family:宋体">标签里包含</span><span style="font-family:Times New Roman"><frameset></span><span style="font-family:宋体">标签。</span></p> <p> </p> <p>点击查看效果</p> <p><frameset rows="15%,*"></p> <p>     <frame src="top.html" name=title scrolling=no></p> <p>     <frameset cols="20%,*"></p> <p>          <frame src="left.html" name=sidebar></p> <p>          <frame src="right.html" name=recipes></p> <p>     </frameset></p> <p></frameset> </p> <p>30<span style="font-family:宋体">分钟以后怎么办</span></p> <p><span style="font-family:宋体">这篇文章只是让从没有接触过</span>HTML<span style="font-family:宋体">的人对</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">有个初步的印象,所以很多东西都没有谈到。本文并没有列出</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">中所有的标签,对于列出的标签也没有介绍它们的全部属性。另外,没有提到的东西里还包括我觉得非常重要的</span><span style="font-family:Times New Roman">CSS, JavaScript, XHTML, XML, Web Standards</span><span style="font-family:宋体">,以及它们与</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">的关系。不过这些也不太可能在</span><span style="font-family:Times New Roman">30</span><span style="font-family:宋体">分钟内学会,好在只要入了门,就能利用网上很多资源继续学习。当然,如果有一本纸质书,就更好了,这方面我推荐</span><span style="font-family:Times New Roman"><<HTML</span><span style="font-family:宋体">与</span><span style="font-family:Times New Roman">XHTML</span><span style="font-family:宋体">权威指南</span><span style="font-family:Times New Roman">>></span><span style="font-family:宋体">。下面是一些我觉得不错的网上资源:</span></p> <p> </p> <p>HTML<span style="font-family:宋体">语言参考(英文) </span></p> <p>HTML<span style="font-family:宋体">教程 </span></p> <p>一些我认为你可能已经知道的术语的参考</p> <p><span style="font-family:宋体">文本</span> </p> <p><span style="font-family:宋体">文字</span> </p> <p><span style="font-family:宋体">文档</span> </p> <p>文件,通常指内容是数据(而不是程序)的文件</p> <p> </p> <p> </p> <p>HTML<span style="font-family:宋体">指令详解</span></p> <p><span style="font-family:宋体">结构</span> <br> <span style="font-family:宋体"><</span>html<span style="font-family:宋体">> </span><br> <span style="font-family:宋体"><</span>head<span style="font-family:宋体">> </span><br> <span style="font-family:宋体"><</span>title<span style="font-family:宋体">>标题<</span><span style="font-family:Times New Roman">title</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体"><</span>/head<span style="font-family:宋体">> </span><br> <span style="font-family:宋体"><</span>body<span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体">文件内容</span><span style="font-family:Times New Roman">..........</span><br> <span style="font-family:宋体"><</span>/body<span style="font-family:宋体">> </span><br> <span style="font-family:宋体"><</span>/html<span style="font-family:宋体">> </span><br> 1.<span style="font-family:宋体">文件标题 </span><br> <span style="font-family:宋体"><</span>title<span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/title</span><span style="font-family:宋体">></span><br> 2.<span style="font-family:宋体">文件更新</span><span style="font-family:Times New Roman">--</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">meta</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】</span><span style="font-family:Times New Roman">10</span><span style="font-family:宋体">秒后自动更新一次</span><br> <span style="font-family:宋体"><</span>meta http-equiv="refresh" content=10<span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】</span><span style="font-family:Times New Roman">10</span><span style="font-family:宋体">秒后自动连结到另一文件</span><br> <span style="font-family:宋体"><</span>meta http-equiv="refresh" content="10<span style="font-family:宋体">;</span><span style="font-family:Times New Roman">URL=</span><span style="font-family:宋体">欲连结文件之</span><span style="font-family:Times New Roman">URL"</span><span style="font-family:宋体">></span><br> 3.<span style="font-family:宋体">查询用表单</span><span style="font-family:Times New Roman">--</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">isindex></span><br> <span style="font-family:宋体">若欲设定查询栏位前的提示文字:</span> <br> <span style="font-family:宋体"><</span>isindex prompt="<span style="font-family:宋体">提示文字</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> 4.<span style="font-family:宋体">预设的基准路径</span><span style="font-family:Times New Roman">--</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">base></span><br> <span style="font-family:宋体"><</span>base href="<span style="font-family:宋体">放置文件的主机之</span><span style="font-family:Times New Roman">URL"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">版面</span> <br> 1.<span style="font-family:宋体">标题文字 <</span><span style="font-family:Times New Roman">h#</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/h#</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#=1~6</span><span style="font-family:宋体">;</span><span style="font-family:Times New Roman">h1</span><span style="font-family:宋体">为最大字,</span><span style="font-family:Times New Roman">h6</span><span style="font-family:宋体">为最小字</span><br> 2.<span style="font-family:宋体">字体变化 <</span><span style="font-family:Times New Roman">font</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/font</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】字体大小 <</span><span style="font-family:Times New Roman">font size=#</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/font</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#=1~7</span><span style="font-family:宋体">;数字愈大字也愈大</span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】指定字型 <</span><span style="font-family:Times New Roman">font face="</span><span style="font-family:宋体">字型名称</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/font</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】文字颜色 <</span><span style="font-family:Times New Roman">font color=#rrggbb</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/font</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">rr</span><span style="font-family:宋体">:表红色(</span><span style="font-family:Times New Roman">red</span><span style="font-family:宋体">)色码</span><span style="font-family:Times New Roman">gg</span><span style="font-family:宋体">:表绿色(</span><span style="font-family:Times New Roman">green</span><span style="font-family:宋体">)色码</span><span style="font-family:Times New Roman">bb</span><span style="font-family:宋体">:表蓝色(</span><span style="font-family:Times New Roman">blue</span><span style="font-family:宋体">)色码</span><br> 3.<span style="font-family:宋体">显示小字体 <</span><span style="font-family:Times New Roman">small</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/small</span><span style="font-family:宋体">></span><br> 4.<span style="font-family:宋体">显示大字体 <</span><span style="font-family:Times New Roman">big</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/big</span><span style="font-family:宋体">></span><br> 5.<span style="font-family:宋体">粗体字 <</span><span style="font-family:Times New Roman">b</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/b</span><span style="font-family:宋体">></span><br> 6.<span style="font-family:宋体">斜体字 <</span><span style="font-family:Times New Roman">i</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/i</span><span style="font-family:宋体">></span><br> 7.<span style="font-family:宋体">打字机字体 <</span><span style="font-family:Times New Roman">tt</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/tt</span><span style="font-family:宋体">></span><br> 8.<span style="font-family:宋体">底线 <</span><span style="font-family:Times New Roman">u</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/u</span><span style="font-family:宋体">></span><br> 9.<span style="font-family:宋体">删除线 <</span><span style="font-family:Times New Roman">strike</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/strike</span><span style="font-family:宋体">></span><br> 10.<span style="font-family:宋体">下标字 <</span><span style="font-family:Times New Roman">sub</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/sub</span><span style="font-family:宋体">></span><br> 11.<span style="font-family:宋体">上标字 <</span><span style="font-family:Times New Roman">sup>..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/sup</span><span style="font-family:宋体">></span><br> 12.<span style="font-family:宋体">文字闪烁效果 <</span><span style="font-family:Times New Roman">blink</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/blink</span><span style="font-family:宋体">></span><br> 13.<span style="font-family:宋体">换行 <</span><span style="font-family:Times New Roman">br</span><span style="font-family:宋体">></span><br> 14.<span style="font-family:宋体">分段 <</span><span style="font-family:Times New Roman">p</span><span style="font-family:宋体">></span><br> 15.<span style="font-family:宋体">文字的对齐方向 <</span><span style="font-family:Times New Roman">p align="#"</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><span style="font-family:Times New Roman">left</span><span style="font-family:宋体">:表向左对齐(预设值)</span><span style="font-family:Times New Roman">center</span><span style="font-family:宋体">:表向中对齐</span><span style="font-family:Times New Roman">right</span><span style="font-family:宋体">:表向右对齐</span><span style="font-family:Times New Roman">P.S.</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">p align="#"</span><span style="font-family:宋体">>之后的文字都会以所设的对齐方式显示, 直到出现另一个<</span><span style="font-family:Times New Roman">p align="#"</span><span style="font-family:宋体">>改变其对齐方向,或遇到 <</span><span style="font-family:Times New Roman">hr</span><span style="font-family:宋体">></span>ⅱ<span style="font-family:宋体"><</span>h#<span style="font-family:宋体">>标签时会自动设回预设的向左对齐。</span><br> 16.<span style="font-family:宋体">分隔线 <</span><span style="font-family:Times New Roman">hr</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】分隔线的粗细 <</span><span style="font-family:Times New Roman">hr size=</span><span style="font-family:宋体">点数></span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】分隔线的宽度 <</span><span style="font-family:Times New Roman">hr size=</span><span style="font-family:宋体">点数或百分比></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】分隔线对齐方向 <</span><span style="font-family:Times New Roman">hr align="#"</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><span style="font-family:Times New Roman">left</span><span style="font-family:宋体">:表向左对齐(预设值)</span><span style="font-family:Times New Roman">center</span><span style="font-family:宋体">:表向中对齐</span><span style="font-family:Times New Roman">right</span><span style="font-family:宋体">:表向右对齐</span><br> <span style="font-family:宋体">【</span>4<span style="font-family:宋体">】分隔线的颜色 <</span><span style="font-family:Times New Roman">hr color=#rrggbb</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>5<span style="font-family:宋体">】实心分隔线 <</span><span style="font-family:Times New Roman">hr noshade</span><span style="font-family:宋体">></span><br> 17.<span style="font-family:宋体">向中对齐 <</span><span style="font-family:Times New Roman">center</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/center</span><span style="font-family:宋体">></span><br> 18.<span style="font-family:宋体">依原始样式显示 <</span><span style="font-family:Times New Roman">pre</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/pre</span><span style="font-family:宋体">></span><br> 19.<span style="font-family:宋体"><</span><span style="font-family:Times New Roman">body</span><span style="font-family:宋体">>指令的属性</span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】背景颜色 </span><span style="font-family:Times New Roman">-- bgcolor</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">body bgcolor=#rrggbb</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】背景图案 </span><span style="font-family:Times New Roman">-- background</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">body background="</span><span style="font-family:宋体">图形文件名</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】设定背景图案不会卷动 </span> <span style="font-family:Times New Roman">-- bgproperties </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">body bgproperties=fixed</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>4<span style="font-family:宋体">】文件内容文字的颜色 </span> <span style="font-family:Times New Roman">-- text </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">body text=#rrggbb</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>5<span style="font-family:宋体">】超连结文字颜色 </span> <span style="font-family:Times New Roman">-- link </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">body link=#rrggbb</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>6<span style="font-family:宋体">】正被选取的超连结文字颜色 </span> <span style="font-family:Times New Roman">-- vlink </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">body vlink=#rrggbb</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>7<span style="font-family:宋体">】已连结过的超连结文字颜色 </span> <span style="font-family:Times New Roman">-- alink </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">body alink=#rrggbb</span><span style="font-family:宋体">></span><br> 20.<span style="font-family:宋体">注解 <</span><span style="font-family:Times New Roman">!--..........--</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">21.</span><span style="font-family:宋体">特殊字元表示法</span><br> <span style="font-family:宋体">符</span> <span style="font-family:宋体">号</span> <span style="font-family:宋体"> 语</span> <span style="font-family:宋体">法</span> <br> <span style="font-family:宋体"><</span> <span style="font-family:宋体">&</span>lt <br> <span style="font-family:宋体">></span> <span style="font-family:宋体">&</span>gt <br> & <span style="font-family:宋体">&</span><span style="font-family:Times New Roman">amp</span><br> " <span style="font-family:宋体">&</span><span style="font-family:Times New Roman">quot</span><br> <span style="font-family:宋体">空白</span> <span style="font-family:宋体">&</span>nbsp <br> <br> <br> <span style="font-family:宋体">图片</span> <br> 1.<span style="font-family:宋体">插入图片 <</span><span style="font-family:Times New Roman">img src="</span><span style="font-family:宋体">图形文件名</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> 2.<span style="font-family:宋体">设定图框 </span><span style="font-family:Times New Roman">-- border</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">img src="</span><span style="font-family:宋体">图形文件名</span><span style="font-family:Times New Roman">" border=</span><span style="font-family:宋体">点数></span><br> 3.<span style="font-family:宋体">设定图形大小 </span><span style="font-family:Times New Roman">-- width</span>ⅱheight<span style="font-family:宋体"><</span>img src="<span style="font-family:宋体">图形文件名</span><span style="font-family:Times New Roman">" width=</span><span style="font-family:宋体">宽度点数</span><span style="font-family:Times New Roman">height=</span><span style="font-family:宋体">高度点数></span><br> 4.<span style="font-family:宋体">设定图形上下左右留空 </span><span style="font-family:Times New Roman">-- vspace</span>ⅱhspace<span style="font-family:宋体"><</span>img src="<span style="font-family:宋体">图形文件名</span><span style="font-family:Times New Roman">" vspace=</span><span style="font-family:宋体">上下留空点数</span><span style="font-family:Times New Roman">hspace=</span><span style="font-family:宋体">左右留空点数></span><br> 5.<span style="font-family:宋体">图形附注 <</span><span style="font-family:Times New Roman">img src="</span><span style="font-family:宋体">图形文件名</span><span style="font-family:Times New Roman">" alt="</span><span style="font-family:宋体">说明文字</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> 6.<span style="font-family:宋体">预载图片 </span><br> <span style="font-family:宋体"><</span>img src="<span style="font-family:宋体">高解析度图形文件名</span><span style="font-family:Times New Roman">" lowsrc="</span><span style="font-family:宋体">低解析度图形文件名</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">P.S.</span><span style="font-family:宋体">两个图的图形大小最好一致</span><br> 7.<span style="font-family:宋体">影像地图(</span><span style="font-family:Times New Roman">Image Map</span><span style="font-family:宋体">) <</span><span style="font-family:Times New Roman">img src="</span><span style="font-family:宋体">图形文件名</span><span style="font-family:Times New Roman">" usemap="#</span><span style="font-family:宋体">图的名称</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">map name="</span><span style="font-family:宋体">图的名称</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体"><</span>area shape=<span style="font-family:宋体">形状 </span> <span style="font-family:Times New Roman">coords=</span><span style="font-family:宋体">区域座标列表</span><span style="font-family:Times New Roman">href="</span><span style="font-family:宋体">连结点之</span><span style="font-family:Times New Roman">URL"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体"><</span>area shape=<span style="font-family:宋体">形状 </span> <span style="font-family:Times New Roman">coords=</span><span style="font-family:宋体">区域座标列表</span><span style="font-family:Times New Roman">href="</span><span style="font-family:宋体">连结点之</span><span style="font-family:Times New Roman">URL"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体"><</span>area shape=<span style="font-family:宋体">形状 </span> <span style="font-family:Times New Roman">coords=</span><span style="font-family:宋体">区域座标列表</span><span style="font-family:Times New Roman">href="</span><span style="font-family:宋体">连结点之</span><span style="font-family:Times New Roman">URL"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体"><</span>area shape=<span style="font-family:宋体">形状 </span> <span style="font-family:Times New Roman">coords=</span><span style="font-family:宋体">区域座标列表</span><span style="font-family:Times New Roman">href="</span><span style="font-family:宋体">连结点之</span><span style="font-family:Times New Roman">URL"</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">/map</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】定义形状 </span><span style="font-family:Times New Roman">-- shape</span><br> shape=rect<span style="font-family:宋体">:矩形 </span><span style="font-family:Times New Roman">shape=circle</span><span style="font-family:宋体">:圆形</span><span style="font-family:Times New Roman">shape=poly</span><span style="font-family:宋体">:多边形</span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】定义区域 </span><span style="font-family:Times New Roman">-- coords</span><br> a.<span style="font-family:宋体">矩形:必须使用四个数字,前两个数字为左上角座标,后两个数字为右下角座标 </span><br> <span style="font-family:宋体">例:<</span>area shape=rect coords=100,50,200,75 href="URL"<span style="font-family:宋体">></span><br> b.<span style="font-family:宋体">圆形:必须使用三个数字,前两个数字为圆心的座标,最后一个数字为半径长度 </span><br> <span style="font-family:宋体">例:<</span>area shape=circle coords=85,155,30 href="URL"<span style="font-family:宋体">></span><br> c.<span style="font-family:宋体">任意图形(多边形):将图形之每一转折点座标依序填入 </span><br> <span style="font-family:宋体">例:<</span>area shape=poly coords=232,70,285,70,300,90,250,90,200,78 href="URL"<span style="font-family:宋体">></span><br> <span style="font-family:宋体">表格</span> <br> 1.<span style="font-family:宋体">定义表格 <</span><span style="font-family:Times New Roman">table</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/table</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】设定边框的厚度 </span> <span style="font-family:Times New Roman">-- border </span><br> <span style="font-family:宋体"><</span>table border=<span style="font-family:宋体">点数></span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】设定格线的宽度 </span> <span style="font-family:Times New Roman">-- cellspacing </span><br> <span style="font-family:宋体"><</span>table cellspacing=<span style="font-family:宋体">点数></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】设定资料与格线的距离 </span> <span style="font-family:Times New Roman">-- cellpadding </span><br> <span style="font-family:宋体"><</span>table cellpadding=<span style="font-family:宋体">点数></span><br> <span style="font-family:宋体">【</span>4<span style="font-family:宋体">】调整表格宽度 </span> <span style="font-family:Times New Roman">-- width </span><br> <span style="font-family:宋体"><</span>table width=<span style="font-family:宋体">点数或百分比></span><br> <span style="font-family:宋体">【</span>5<span style="font-family:宋体">】调整表格高度 </span> <span style="font-family:Times New Roman">-- height </span><br> <span style="font-family:宋体"><</span>table height=<span style="font-family:宋体">点数或百分比></span><br> <span style="font-family:宋体">【</span>6<span style="font-family:宋体">】设定表格背景色彩 </span> <span style="font-family:Times New Roman">-- bgcolor </span><br> <span style="font-family:宋体"><</span>table bgcolor=#rrggbb<span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>7<span style="font-family:宋体">】设定表格边框色彩 </span> <span style="font-family:Times New Roman">-- bordercolor </span><br> <span style="font-family:宋体"><</span>table bordercolor=#rrggbb<span style="font-family:宋体">></span><br> 2.<span style="font-family:宋体">显示格线 <</span><span style="font-family:Times New Roman">table border</span><span style="font-family:宋体">></span><br> 3.<span style="font-family:宋体">表格标题 </span><br> <span style="font-family:宋体"><</span>caption<span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/caption</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">表格标题位置</span> -- align <br> <span style="font-family:宋体"><</span>caption align="#"<span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><span style="font-family:Times New Roman">top</span><span style="font-family:宋体">:表标题置于表格上方(预设值)</span><br> bottom<span style="font-family:宋体">:表标题置于表格下方 </span><br> 4.<span style="font-family:宋体">定义列 <</span><span style="font-family:Times New Roman">tr</span><span style="font-family:宋体">></span><br> 5.<span style="font-family:宋体">定义栏位 《</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体">》<</span><span style="font-family:Times New Roman">td</span><span style="font-family:宋体">>:靠左对齐</span><br> <span style="font-family:宋体">《</span>2<span style="font-family:宋体">》<</span><span style="font-family:Times New Roman">th</span><span style="font-family:宋体">>:靠中对齐</span>ⅱ<span style="font-family:宋体">粗体</span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】水平位置 </span><span style="font-family:Times New Roman">-- align</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">th align="#"</span><span style="font-family:宋体">></span><br> #<span style="font-family:宋体">号可为 </span><span style="font-family:Times New Roman">left</span><span style="font-family:宋体">:向左对齐</span><br> center<span style="font-family:宋体">:向中对齐 </span><span style="font-family:Times New Roman">right</span><span style="font-family:宋体">:向右对齐</span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】垂直位置 </span><span style="font-family:Times New Roman">-- align</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">th align="#"</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><br> top<span style="font-family:宋体">:向上对齐 </span><span style="font-family:Times New Roman">middle</span><span style="font-family:宋体">:向中对齐</span><br> bottom<span style="font-family:宋体">:向下对齐 </span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】栏位宽度 </span><span style="font-family:Times New Roman">-- width</span><br> <span style="font-family:宋体"><</span>th width=<span style="font-family:宋体">点数或百分比></span><br> <span style="font-family:宋体">【</span>4<span style="font-family:宋体">】栏位垂直合并 </span> <span style="font-family:Times New Roman">-- rowspan </span><br> <span style="font-family:宋体"><</span>th rowspan=<span style="font-family:宋体">欲合并栏位数></span><br> <span style="font-family:宋体">【</span>5<span style="font-family:宋体">】栏位横向合并 </span> <span style="font-family:Times New Roman">-- colspan </span><br> <span style="font-family:宋体"><</span>th colspan=<span style="font-family:宋体">欲合并栏位数></span><br> <span style="font-family:宋体">清单</span> <br> <span style="font-family:宋体">一、目录式清单</span> <br> <span style="font-family:宋体"><</span>dir<span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">2</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">3</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/dir</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">P.S.</span><span style="font-family:宋体">目录式清单每一个项目不能超过</span><span style="font-family:Times New Roman">20</span><span style="font-family:宋体">个字元(即</span><span style="font-family:Times New Roman">10</span><span style="font-family:宋体">个中文字)</span><br> <span style="font-family:宋体">二、选项式清单</span> <span style="font-family:宋体"><</span>menu<span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">2</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">3</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/menu</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">三、有序号的清单</span> <span style="font-family:宋体"><</span>ol<span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">2</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">3</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/ol</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】序号形式 </span><span style="font-family:Times New Roman">-- type</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">ol type=#</span><span style="font-family:宋体">>或<</span><span style="font-family:Times New Roman">li type=#</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><span style="font-family:Times New Roman">A</span><span style="font-family:宋体">:表以大写英文字母</span><span style="font-family:Times New Roman">A</span>ⅱBⅱCⅱD...<span style="font-family:宋体">做为项目编号</span> a<span style="font-family:宋体">:表以小写英文字母</span><span style="font-family:Times New Roman">a</span>ⅱbⅱcⅱd...<span style="font-family:宋体">做为项目编号</span> I<span style="font-family:宋体">:表以大写罗马数字做为项目编号 </span><span style="font-family:Times New Roman">i</span><span style="font-family:宋体">:表以小写罗马数字做为项目编号</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体">:表以阿拉伯数字做为项目编号(预设值)</span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】起始数字 </span><span style="font-family:Times New Roman">-- start</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">ol start=</span><span style="font-family:宋体">欲开始计数的序数></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】指定编号 </span><span style="font-family:Times New Roman">-- value</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">li value=</span><span style="font-family:宋体">欲指定的序数></span><br> <span style="font-family:宋体">四、无序号的清单</span> <span style="font-family:宋体"><</span>ul<span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">2</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">li</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">3</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/ul</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】项目符号形式 </span> <span style="font-family:Times New Roman">-- type </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">ul type=#</span><span style="font-family:宋体">>或<</span><span style="font-family:Times New Roman">li type=#</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><span style="font-family:Times New Roman">disc</span><span style="font-family:宋体">:实心圆点(预设值)</span><span style="font-family:Times New Roman">circle</span><span style="font-family:宋体">:空心圆点</span><span style="font-family:Times New Roman">square</span><span style="font-family:宋体">:实心方块</span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】原始清单 </span><span style="font-family:Times New Roman">-- plain</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">ul plain</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】清单排列方式 </span> <span style="font-family:Times New Roman">-- warp </span><span style="font-family:宋体">《</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体">》清单垂直排列 <</span><span style="font-family:Times New Roman">ul warp = vert</span><span style="font-family:宋体">> 《</span><span style="font-family:Times New Roman">2</span><span style="font-family:宋体">》清单水平排列 <</span><span style="font-family:Times New Roman">ul warp = horiz</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">五、定义式清单</span> <span style="font-family:宋体"><</span>dl<span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">dt</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">dd</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体">说明 <</span><span style="font-family:Times New Roman">dt</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">2</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">dd</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">2</span><span style="font-family:宋体">说明 <</span><span style="font-family:Times New Roman">dt</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">3</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">dd</span><span style="font-family:宋体">>项目</span><span style="font-family:Times New Roman">3</span><span style="font-family:宋体">说明 <</span><span style="font-family:Times New Roman">/dl</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">紧密排列</span> -- compact <span style="font-family:宋体"> <</span><span style="font-family:Times New Roman">dl compact</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">P.S.</span><span style="font-family:宋体">如此可使<</span><span style="font-family:Times New Roman">dt</span><span style="font-family:宋体">>的内容与<</span><span style="font-family:Times New Roman">dd</span><span style="font-family:宋体">>的内容在同一行,仅 以数格空白相隔而不换行,但若<</span><span style="font-family:Times New Roman">dt</span><span style="font-family:宋体">>的文字超过一 定的长度后,</span><span style="font-family:Times New Roman">compact</span><span style="font-family:宋体">的作用就消失了!</span><br> <span style="font-family:宋体">表单</span> <br> <span style="font-family:宋体">一、基本架构</span> <span style="font-family:宋体"><</span>form action="<span style="font-family:宋体">处理资料用的</span><span style="font-family:Times New Roman">CGI</span><span style="font-family:宋体">程式之</span><span style="font-family:Times New Roman">URL"</span><span style="font-family:宋体">或</span><span style="font-family:Times New Roman">"mailto:</span><span style="font-family:宋体">电子信箱的</span><span style="font-family:Times New Roman">URL" method="get</span><span style="font-family:宋体">或</span><span style="font-family:Times New Roman">post"</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">.......... .......... ..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/form</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">二、输入文件型表单</span> <span style="font-family:宋体"><</span>form action="URL" method="post"<span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">input</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">input</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">.......... .......... </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/form</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】栏位类型 </span><span style="font-family:Times New Roman">-- type</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">input type=#</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><span style="font-family:Times New Roman">text</span><span style="font-family:宋体">:文字输入</span><span style="font-family:Times New Roman">password</span><span style="font-family:宋体">:密码</span><span style="font-family:Times New Roman">checkbox</span><span style="font-family:宋体">:多选钮</span><span style="font-family:Times New Roman">radio</span><span style="font-family:宋体">:单选钮</span><span style="font-family:Times New Roman">submit</span><span style="font-family:宋体">:接受按钮</span><span style="font-family:Times New Roman">reset</span><span style="font-family:宋体">:重设按钮</span><span style="font-family:Times New Roman">image</span><span style="font-family:宋体">:图形钮</span><span style="font-family:Times New Roman">hidden</span><span style="font-family:宋体">:隐藏栏位</span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】栏位名称 </span><span style="font-family:Times New Roman">-- name</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">input name="</span><span style="font-family:宋体">资料栏名</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">P.S.</span><span style="font-family:宋体">若</span><span style="font-family:Times New Roman">type</span><span style="font-family:宋体">为</span><span style="font-family:Times New Roman">submit</span>ⅱreset<span style="font-family:宋体">则</span>name<span style="font-family:宋体">不必设定</span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】文件上的预设值 </span> <span style="font-family:Times New Roman">-- value </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">input value="</span><span style="font-family:宋体">预设之字串</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>4<span style="font-family:宋体">】设定栏位的宽度 </span> <span style="font-family:Times New Roman">-- size </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">input size=</span><span style="font-family:宋体">字元数></span><br> <span style="font-family:宋体">【</span>5<span style="font-family:宋体">】限制最大输入字串的长度 </span> <span style="font-family:Times New Roman">-- maxlength </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">input maxlength=</span><span style="font-family:宋体">字元数></span><br> <span style="font-family:宋体">【</span>6<span style="font-family:宋体">】预设</span><span style="font-family:Times New Roman">checkbox</span><span style="font-family:宋体">或</span><span style="font-family:Times New Roman">radio</span><span style="font-family:宋体">的初值</span><span style="font-family:Times New Roman">-- checked </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">input type=checkbox checked</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">input type=radio checked</span><span style="font-family:宋体">> </span><br> <span style="font-family:宋体">【</span>7<span style="font-family:宋体">】指定图形的</span><span style="font-family:Times New Roman">URL -- src</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">input type=image src="</span><span style="font-family:宋体">图档名</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>8<span style="font-family:宋体">】图文对齐 </span><span style="font-family:Times New Roman">-- align</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">input type=image align="#"</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><span style="font-family:Times New Roman">top</span><span style="font-family:宋体">:文字对齐图片之顶端</span><span style="font-family:Times New Roman">middle</span><span style="font-family:宋体">:文字对齐图片之中间</span><span style="font-family:Times New Roman">buttom</span><span style="font-family:宋体">:文字对齐图片之底部</span><br> <span style="font-family:宋体">三、选择式表单</span> <span style="font-family:宋体"><</span>form action="URL" method="post"<span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">select</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">option</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">option</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">.......... .......... </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/select</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">/form</span><span style="font-family:宋体">></span><br> A<span style="font-family:宋体">、<</span><span style="font-family:Times New Roman">select</span><span style="font-family:宋体">>的属性</span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】栏位名称 </span><span style="font-family:Times New Roman">-- name</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">select name="</span><span style="font-family:宋体">资料栏位名</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】设定显示的选项数 </span> <span style="font-family:Times New Roman">-- size </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">select size=</span><span style="font-family:宋体">个数></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】多重选项 </span><span style="font-family:Times New Roman">-- multiple</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">select multiple</span><span style="font-family:宋体">></span><br> B<span style="font-family:宋体">、<</span><span style="font-family:Times New Roman">option</span><span style="font-family:宋体">>的属性</span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】定义选项的传回值 </span> <span style="font-family:Times New Roman">-- value </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">option value="</span><span style="font-family:宋体">传回值</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】预先选取的选项 </span> <span style="font-family:Times New Roman">-- selected </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">option selected</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">四、多列输入文字区表单</span> <span style="font-family:宋体"><</span>form action="URL" method="post"<span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">textarea</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">.......... .......... </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/textarea</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">/form</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】文字区的变数名称 </span> <span style="font-family:Times New Roman">-- name </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">textarea name=</span><span style="font-family:宋体">变数名称></span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】设定文字输入区宽度 </span> <span style="font-family:Times New Roman">-- cols </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">textarea cols=</span><span style="font-family:宋体">字元数></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】设定文字输入区高度 </span> <span style="font-family:Times New Roman">-- rows </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">textarea rows=</span><span style="font-family:宋体">列数></span><br> <span style="font-family:宋体">【</span>4<span style="font-family:宋体">】输入区设定预设字串 <</span><span style="font-family:Times New Roman">textarea</span><span style="font-family:宋体">> 预设文字 <</span><span style="font-family:Times New Roman">/textarea</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>5<span style="font-family:宋体">】自动换行与否 </span> <span style="font-family:Times New Roman">-- wrap </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">textarea wrap=#</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><span style="font-family:Times New Roman">off</span><span style="font-family:宋体">:表输入的文字超过栏宽时,不会自动换行(预设值)</span><span style="font-family:Times New Roman">virtual</span><span style="font-family:宋体">:表输入的文字在超过栏宽时会自动换行</span><br> <span style="font-family:宋体">链接</span> <br> <span style="font-family:宋体">一、连结至其他文件</span> <span style="font-family:宋体"><</span>a href="URL"<span style="font-family:宋体">>说明文字或图片<</span><span style="font-family:Times New Roman">/a</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">二、连结至文件内之某一处(外部连结)</span> <br> <span style="font-family:宋体">《</span>1<span style="font-family:宋体">》起点 </span><br> <span style="font-family:宋体"><</span>a href="<span style="font-family:宋体">档名</span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">名称</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/a</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">《</span>2<span style="font-family:宋体">》终点 <</span><span style="font-family:Times New Roman">a name="</span><span style="font-family:宋体">名称</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">三、</span>frame<span style="font-family:宋体">的超连结 </span> <br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】开启新的浏览器来显示连结文件</span><span style="font-family:Times New Roman">-- _blank </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">a href="URL" target=_blank</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】显示连结文件於目前的</span><span style="font-family:Times New Roman">frame -- _self</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">a href="URL" target=_self</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】以上一层的分割视窗显示连结文件</span><span style="font-family:Times New Roman">-- _parent </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">a href="URL" target=_parent</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>4<span style="font-family:宋体">】以全视窗显示连结文件 </span> <span style="font-family:Times New Roman">-- _top </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">a href="URL" target=_top</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>5<span style="font-family:宋体">】以特定视窗显示连结文件 </span> <span style="font-family:Times New Roman">--</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">a href="URL" target="</span><span style="font-family:宋体">特定视窗名称</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">></span><br> FRAME <br> <span style="font-family:宋体">一、分割视窗指令</span> <span style="font-family:宋体"><</span>frameset<span style="font-family:宋体">></span><span style="font-family:Times New Roman">..........</span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">/frameset</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】垂直(上下)分割 </span> <span style="font-family:Times New Roman">-- rows </span><br> <span style="font-family:宋体"><</span>frameset rows=#<span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为点数:如欲分割为</span><span style="font-family:Times New Roman">100,200,300</span><span style="font-family:宋体">三个视窗,则</span><br> <span style="font-family:宋体"><</span>frameset rows=100,200,300<span style="font-family:宋体">>;亦可以</span><span style="font-family:Times New Roman">*</span><span style="font-family:宋体">号代表,如<</span><span style="font-family:Times New Roman">frameset rows=*,500,*</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">百分比:如<</span>frameset rows=30%,70%<span style="font-family:宋体">>,各 项总和最好为</span><span style="font-family:Times New Roman">100%</span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】水平(左右)分割 </span> <span style="font-family:Times New Roman">-- cols </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">frameset cols=</span><span style="font-family:宋体">点数或百分比></span><br> <span style="font-family:宋体">二</span>ⅱ<span style="font-family:宋体">指定视窗内容</span> --<span style="font-family:宋体"><</span><span style="font-family:Times New Roman">frame</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体"><</span>frameset cols=30%,70%<span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">frame</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">frame</span><span style="font-family:宋体">> <</span><span style="font-family:Times New Roman">/frameset</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">【</span>1<span style="font-family:宋体">】指定视窗的文件名称 </span> <span style="font-family:Times New Roman">-- src </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">frame src=HTML</span><span style="font-family:宋体">档名></span><br> <span style="font-family:宋体">【</span>2<span style="font-family:宋体">】定义视窗的名称 </span> <span style="font-family:Times New Roman">-- name </span><br> <span style="font-family:宋体"><</span>frame name=<span style="font-family:宋体">视窗名称></span><br> <span style="font-family:宋体">【</span>3<span style="font-family:宋体">】设定文件与上下边框的距离 </span> <span style="font-family:Times New Roman">-- marginheight </span><br> <span style="font-family:宋体"><</span>frame marginheight=<span style="font-family:宋体">点数></span><br> <span style="font-family:宋体">【</span>4<span style="font-family:宋体">】设定文件与左右边框的距离 </span> <span style="font-family:Times New Roman">-- marginwidth </span><br> <span style="font-family:宋体"><</span>frame marginwidth=<span style="font-family:宋体">点数></span><br> <span style="font-family:宋体">【</span>5<span style="font-family:宋体">】设定分割视窗卷轴 </span> <span style="font-family:Times New Roman">-- scrolling </span><br> <span style="font-family:宋体"><</span>frame scrolling=#<span style="font-family:宋体">></span><span style="font-family:Times New Roman">#</span><span style="font-family:宋体">号可为</span><span style="font-family:Times New Roman">yes</span><span style="font-family:宋体">:固定出现卷轴</span><br> no<span style="font-family:宋体">:不出现卷轴 </span><span style="font-family:Times New Roman">auto</span><span style="font-family:宋体">:自动判断文件大小需不需要卷轴(预设值)</span><br> <span style="font-family:宋体">【</span>6<span style="font-family:宋体">】锁住分割视窗的大小 </span> <span style="font-family:Times New Roman">-- noresize </span><span style="font-family:宋体"><</span><span style="font-family:Times New Roman">frame noresize</span><span style="font-family:宋体">></span><br> <span style="font-family:宋体">近年来,超文本标识语言</span>(HTML)<span style="font-family:宋体">得到了迅速拓展,为满足更多的需要,它增加了许多扩展功能。设计新颖、吸引人的网页已经越来越依赖</span><span style="font-family:Times New Roman">Java Applet(</span><span style="font-family:宋体">小程序</span><span style="font-family:Times New Roman">)</span><span style="font-family:宋体">、内嵌脚本、图文框、插件和其它扩展的</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">功能。这些扩展的</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">功能不仅可以对文本作进一步的格式化,而且可以嵌入程序、 动画和其它交互式操作元素,将曾经是静态的主页转换成一幅新的美妙绝伦的画面。它可以任主页制作者充分发挥自己的想像力,设计出充满魅力的主页来。下面我 就介绍几个用于增强</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">页面功能的超文本标记,这些标记正越来越多地用于网页设计中。</span><br> <br> 1<span style="font-family:宋体">、</span><span style="font-family:Times New Roman"><script></span><span style="font-family:宋体">标记</span><br> <script><span style="font-family:宋体">是用来标志</span><span style="font-family:Times New Roman">Javascript</span><span style="font-family:宋体">和</span><span style="font-family:Times New Roman">VBscript</span><span style="font-family:宋体">编程的</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">标记,它的格式如下:</span><br> <script <span style="font-family:宋体">属性</span><span style="font-family:Times New Roman">=</span><span style="font-family:宋体">属性值</span><span style="font-family:Times New Roman">>Javascript</span><span style="font-family:宋体">或者</span><span style="font-family:Times New Roman">VBscript</span><span style="font-family:宋体">程序源代码</span><span style="font-family:Times New Roman"></script></span><br> <span style="font-family:宋体">你可以在页面中插入任意多的</span><script>……</script><span style="font-family:宋体">标记块。</span><span style="font-family:Times New Roman"><script></span><span style="font-family:宋体">标记有多种属性</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">如</span><span style="font-family:Times New Roman">event</span><span style="font-family:宋体">、</span><span style="font-family:Times New Roman">for</span><span style="font-family:宋体">、</span><span style="font-family:Times New Roman">language</span><span style="font-family:宋体">、</span><span style="font-family:Times New Roman">src</span><span style="font-family:宋体">等</span><span style="font-family:Times New Roman">)</span><span style="font-family:宋体">,其中最常用的是</span><span style="font-family:Times New Roman">language</span><span style="font-family:宋体">属性,它用来指定脚本的语言类型,如</span><span style="font-family:Times New Roman">“Javascript”</span><span style="font-family:宋体">或</span><span style="font-family:Times New Roman">“VBscript”</span><span style="font-family:宋体">。</span><br> 2<span style="font-family:宋体">、</span><span style="font-family:Times New Roman"><applet></span><span style="font-family:宋体">标记</span><br> <applet><span style="font-family:宋体">标记是用来在页面中插入</span><span style="font-family:Times New Roman">Java</span><span style="font-family:宋体">小程序的专用标记,它有多种属性。</span><span style="font-family:Times New Roman"><applet></span><span style="font-family:宋体">标记的一般属性格式如下:</span><br> <applet <span style="font-family:宋体">属性</span><span style="font-family:Times New Roman">=</span><span style="font-family:宋体">属性值</span><span style="font-family:Times New Roman">></applet></span><br> <span style="font-family:宋体">它的各种属性分别用来定义</span>Java<span style="font-family:宋体">小程序的路径、文件名、</span><span style="font-family:Times New Roman">Java applet</span><span style="font-family:宋体">小程序在页面中的位置、大小及运行参数等。</span><br> <br> 3<span style="font-family:宋体">、</span><span style="font-family:Times New Roman"><object></span><span style="font-family:宋体">标记</span><br> <object><span style="font-family:宋体">标记不仅可以用来在页面中插入</span><span style="font-family:Times New Roman">ActiveX</span><span style="font-family:宋体">控件,还可以插入其他的</span><span style="font-family:Times New Roman">OLE</span><span style="font-family:宋体">对象,如图像、文档、动画、小程序等等,它的格式 为: </span><br> <object <span style="font-family:宋体">属性</span><span style="font-family:Times New Roman">=</span><span style="font-family:宋体">属性值</span><span style="font-family:Times New Roman">></object></span><br> <span style="font-family:宋体">它的各种属性分别用来设定插入对象的类型、路径,在页面中显示的大小、位置等。</span> <br> <br> 4<span style="font-family:宋体">、</span><span style="font-family:Times New Roman"><param></span><span style="font-family:宋体">标记</span><br> <span style="font-family:宋体">用</span><object><span style="font-family:宋体">标记在页面中插入</span><span style="font-family:Times New Roman">ActiveX</span><span style="font-family:宋体">控件或其它对象之后,有时候需要向该对象或者控件传递参数,这就要使 用</span><span style="font-family:Times New Roman"><param></span><span style="font-family:宋体">标记。该标记没有相应的结束标志</span><span style="font-family:Times New Roman"></param></span><span style="font-family:宋体">,并且该标记仅在</span><span style="font-family:Times New Roman"><object></span><span style="font-family:宋体">标记中有效,它 的一般格式为: </span><br> <param name=<span style="font-family:宋体">* </span><span style="font-family:Times New Roman">value=</span><span style="font-family:宋体">*</span><span style="font-family:Times New Roman">valuetype=</span><span style="font-family:宋体">*</span><span style="font-family:Times New Roman">type=</span><span style="font-family:宋体">*</span><span style="font-family:Times New Roman">></span><br> <span style="font-family:宋体">各属性的含义是:</span>“name”<span style="font-family:宋体">是参数的名字;</span><span style="font-family:Times New Roman">“value”</span><span style="font-family:宋体">指定参数的值;</span><span style="font-family:Times New Roman">“valuetype”</span><span style="font-family:宋体">指定怎样表示参数的值;</span><span style="font-family:Times New Roman">“type”</span><span style="font-family:宋体">指定媒体类型。</span><br> <br> 5<span style="font-family:宋体">、</span><span style="font-family:Times New Roman"><embed></span><span style="font-family:宋体">标记</span><br> <span style="font-family:宋体">该标记可以用来在主页中嵌入多媒体文件,如电影</span>(movie)<span style="font-family:宋体">、声音、虚拟现实语言</span><span style="font-family:Times New Roman">(vrml)</span><span style="font-family:宋体">等,但此时需要在浏览器中安装播放相应多媒体文件的插 件。</span><span style="font-family:Times New Roman"><embed></span><span style="font-family:宋体">标记在各个插件中表现不同,它的一般格式为:</span><br> <embed src=<span style="font-family:宋体">〃</span><span style="font-family:Times New Roman">url</span><span style="font-family:宋体">〃</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">。</span><br> <br> 6<span style="font-family:宋体">、</span><span style="font-family:Times New Roman"><bgsound></span><span style="font-family:宋体">标记</span><br> <span style="font-family:宋体">该标记用来在页面中插入背景音乐,它的格式为:</span> <br> <bgsound src=<span style="font-family:宋体">〃</span><span style="font-family:Times New Roman">url</span><span style="font-family:宋体">〃</span><span style="font-family:Times New Roman">loop=</span><span style="font-family:宋体">〃*〃</span><span style="font-family:Times New Roman">></span><br> <span style="font-family:宋体">其中</span>src<span style="font-family:宋体">用来指定</span><span style="font-family:Times New Roman">wav</span><span style="font-family:宋体">文件的地址,</span><span style="font-family:Times New Roman">loop</span><span style="font-family:宋体">设定循环播放次数。</span></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p><! - - ... - -> <span style="font-family:宋体">注解 </span></p> <p><!> <span style="font-family:宋体">跑马灯 </span></p> <p><marquee>...</marquee><span style="font-family:宋体">普通卷动 </span></p> <p><marquee behavior=slide>...</marquee><span style="font-family:宋体">滑动 </span></p> <p><marquee behavior=scroll>...</marquee><span style="font-family:宋体">预设卷动 </span> </p> <p><marquee behavior=alternate>...</marquee><span style="font-family:宋体">来回卷动  </span></p> <p><marquee direction=down>...</marquee><span style="font-family:宋体">向下卷动 </span> </p> <p><marquee direction=up>...</marquee><span style="font-family:宋体">向上卷动 </span></p> <p><marquee direction=right></marquee><span style="font-family:宋体">向右卷动 </span></p> <p><marquee direction=<span style="font-family:宋体">’</span><span style="font-family:Times New Roman">left</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">></marquee></span><span style="font-family:宋体">向左卷动</span></p> <p><marquee loop=2>...</marquee><span style="font-family:宋体">卷动次数 </span></p> <p><marquee width=180>...</marquee><span style="font-family:宋体">设定宽度 </span></p> <p><marquee height=30>...</marquee><span style="font-family:宋体">设定高度 </span></p> <p><marquee bgcolor=FF0000>...</marquee><span style="font-family:宋体">设定背景颜色 </span> </p> <p><marquee scrollamount=30>...</marquee><span style="font-family:宋体">设定滚动速度</span></p> <p><marquee scrolldelay=300>...</marquee><span style="font-family:宋体">设定卷动时间 </span> </p> <p><marquee οnmοuseοver="this.stop()">...</marquee><span style="font-family:宋体">鼠标经过上面时停止滚动</span></p> <p><marquee οnmοuseοver="this.start()">...</marquee><span style="font-family:宋体">鼠标离开时开始滚动</span></p> <p> </p> <p><!><span style="font-family:宋体">字体效果 </span></p> <p><h1>...</h1><span style="font-family:宋体">标题字</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">最大</span><span style="font-family:Times New Roman">)</span></p> <p><h6>...</h6><span style="font-family:宋体">标题字</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">最小</span><span style="font-family:Times New Roman">)</span></p> <p><b>...</b><span style="font-family:宋体">粗体字 </span></p> <p><strong>...</strong><span style="font-family:宋体">粗体字</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">强调</span><span style="font-family:Times New Roman">)</span><span style="font-family:宋体">(同上效果略同)</span></p> <p><i>...</i><span style="font-family:宋体">斜体字 </span></p> <p><em>...</em><span style="font-family:宋体">斜体字</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">强调</span><span style="font-family:Times New Roman">)</span></p> <p><dfn>...</dfn><span style="font-family:宋体">斜体字</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">表示定义</span><span style="font-family:Times New Roman">)</span></p> <p><u>...</u><span style="font-family:宋体">底线 </span></p> <p><ins>...</ins><span style="font-family:宋体">底线</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">表示插入文字</span><span style="font-family:Times New Roman">)</span></p> <p><strike>...</strike><span style="font-family:宋体">横线 </span></p> <p><s>...</s><span style="font-family:宋体">删除线 </span></p> <p><del>...</del><span style="font-family:宋体">删除线</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">表示删除</span><span style="font-family:Times New Roman">)</span></p> <p><kbd>...</kbd><span style="font-family:宋体">键盘文字 </span></p> <p><tt>...</tt> <span style="font-family:宋体">打字体 </span></p> <p><xmp>...</xmp><span style="font-family:宋体">固定宽度字体</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">在文件中空白、换行、定位功能有效</span><span style="font-family:Times New Roman">)</span></p> <p><plaintext>...</plaintext><span style="font-family:宋体">固定宽度字体</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">不执行标记符号</span><span style="font-family:Times New Roman">)</span></p> <p><listing>...</listing> <span style="font-family:宋体">固定宽度小字体 </span></p> <p> </p> <p><font color=00ff00>...</font><span style="font-family:宋体">字体颜色 </span></p> <p><font size=1>...</font><span style="font-family:宋体">最小字体 </span></p> <p><font style =<span style="font-family:宋体">’</span><span style="font-family:Times New Roman">font-size:100 px</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">>...</font></span><span style="font-family:宋体">无限增大</span></p> <p><!><span style="font-family:宋体">区断标记 </span></p> <p><hr><span style="font-family:宋体">水平线 </span></p> <p><hr size=<span style="font-family:宋体">’</span><span style="font-family:Times New Roman">9</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">水平线</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">设定大小</span><span style="font-family:Times New Roman">)</span></p> <p><hr width=<span style="font-family:宋体">’</span><span style="font-family:Times New Roman">80%</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">水平线</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">设定宽度</span><span style="font-family:Times New Roman">)</span></p> <p><hr color=<span style="font-family:宋体">’</span><span style="font-family:Times New Roman">ff0000</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">水平线</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">设定颜色</span><span style="font-family:Times New Roman">)</span></p> <p><br>(<span style="font-family:宋体">换行</span><span style="font-family:Times New Roman">)</span></p> <p><nobr>...</nobr><span style="font-family:宋体">水域</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">不换行</span><span style="font-family:Times New Roman">)</span></p> <p><p>...</p><span style="font-family:宋体">水域</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">段落</span><span style="font-family:Times New Roman">)</span></p> <p><center>...</center><span style="font-family:宋体">置中 </span></p> <p><!><span style="font-family:宋体">连结格式 </span></p> <p><base href=<span style="font-family:宋体">位址</span><span style="font-family:Times New Roman">>(</span><span style="font-family:宋体">预设好连结路径</span><span style="font-family:Times New Roman">)</span></p> <p><a href=<span style="font-family:宋体">位址</span><span style="font-family:Times New Roman">></a></span><span style="font-family:宋体">外部连结</span></p> <p><a href=<span style="font-family:宋体">位址 </span><span style="font-family:Times New Roman">target=</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">_blank</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">></a></span><span style="font-family:宋体">外部连结</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">另开新视窗</span><span style="font-family:Times New Roman">)</span></p> <p><a href=<span style="font-family:宋体">位址 </span><span style="font-family:Times New Roman">target=</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">_top</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">></a></span><span style="font-family:宋体">外部连结</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">全视窗连结</span><span style="font-family:Times New Roman">)</span></p> <p><a href=<span style="font-family:宋体">位址 </span><span style="font-family:Times New Roman">target=</span><span style="font-family:宋体">’页框名’</span><span style="font-family:Times New Roman">></a></span><span style="font-family:宋体">外部连结</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">在指定页框连结</span><span style="font-family:Times New Roman">)</span></p> <p><!><span style="font-family:宋体">贴图</span><span style="font-family:Times New Roman">/</span><span style="font-family:宋体">音乐</span></p> <p><img src=<span style="font-family:宋体">图片位址</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">贴图</span></p> <p><img src=<span style="font-family:宋体">图片位址 </span><span style="font-family:Times New Roman">width=</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">180</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">设定图片宽度</span></p> <p><img src=<span style="font-family:宋体">图片位址 </span><span style="font-family:Times New Roman">height=</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">30</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">设定图片高度</span></p> <p><img src=<span style="font-family:宋体">图片位址 </span><span style="font-family:Times New Roman">alt=</span><span style="font-family:宋体">’提示文字’</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">设定图片提示文字</span></p> <p><img src=<span style="font-family:宋体">图片位址’ </span><span style="font-family:Times New Roman">border=</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体">’</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">设定图片边框</span></p> <p><bgsound src=MID<span style="font-family:宋体">音乐档位址</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">背景音乐设定</span></p> <p><!><span style="font-family:宋体">表格语法 </span></p> <p><table aling=left>...</table><span style="font-family:宋体">表格位置</span><span style="font-family:Times New Roman">,</span><span style="font-family:宋体">置左</span></p> <p><table aling=center>...</table><span style="font-family:宋体">表格位置</span><span style="font-family:Times New Roman">,</span><span style="font-family:宋体">置中</span></p> <p><table background=<span style="font-family:宋体">图片路径</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">背景图片的</span><span style="font-family:Times New Roman">URL=</span><span style="font-family:宋体">就是路径网址</span></p> <p><table border=<span style="font-family:宋体">边框大小</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">设定表格边框大小</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">使用数字</span><span style="font-family:Times New Roman">)</span></p> <p><table bgcolor=<span style="font-family:宋体">颜色码</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">设定表格的背景颜色</span></p> <p><table borderclor=<span style="font-family:宋体">颜色码</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">设定表格边框的颜色</span></p> <p><table borderclordark=<span style="font-family:宋体">颜色码</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">设定表格暗边框的颜色</span></p> <p><table borderclorlight=<span style="font-family:宋体">颜色码</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">设定表格亮边框的颜色</span></p> <p><table cellpadding=<span style="font-family:宋体">参数</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">指定内容与格线之间的间距</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">使用数字</span><span style="font-family:Times New Roman">)</span></p> <p><table cellspacing=<span style="font-family:宋体">参数</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">指定格线与格线之间的距离</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">使用数字</span><span style="font-family:Times New Roman">)</span></p> <p><table cols=<span style="font-family:宋体">参数</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">指定表格的栏数</span></p> <p><table frame=<span style="font-family:宋体">参数</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">设定表格外框线的显示方式</span></p> <p><table width=<span style="font-family:宋体">宽度</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">指定表格的宽度大小</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">使用数字</span><span style="font-family:Times New Roman">)</span></p> <p><table height=<span style="font-family:宋体">高度</span><span style="font-family:Times New Roman">>...</table></span><span style="font-family:宋体">指定表格的高度大小</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">使用数字</span><span style="font-family:Times New Roman">)</span></p> <p><td colspan=<span style="font-family:宋体">参数</span><span style="font-family:Times New Roman">>...</td></span><span style="font-family:宋体">指定储存格合并栏的栏数</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">使用数字</span><span style="font-family:Times New Roman">)</span></p> <p><td rowspan=<span style="font-family:宋体">参数</span><span style="font-family:Times New Roman">>...</td></span><span style="font-family:宋体">指定储存格合并列的列数</span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">使用数字</span><span style="font-family:Times New Roman">)</span></p> <p><!><span style="font-family:宋体">分割视窗 </span></p> <p><frameset cols="20%,*"><span style="font-family:宋体">左右分割</span><span style="font-family:Times New Roman">,</span><span style="font-family:宋体">将左边框架分割大小为</span><span style="font-family:Times New Roman">20%</span><span style="font-family:宋体">右边框架的大小浏览器会自动调整</span></p> <p><frameset rows="20%,*"><span style="font-family:宋体">上下分割</span><span style="font-family:Times New Roman">,</span><span style="font-family:宋体">将上面框架分割大小为</span><span style="font-family:Times New Roman">20%</span><span style="font-family:宋体">下面框架的大小浏览器会自动调整</span></p> <p><frameset cols="20%,*"><span style="font-family:宋体">分割左右两个框架 </span></p> <p><frameset cols="20%,*,20%"><span style="font-family:宋体">分割左中右三个框架 </span></p> <p><<span style="font-family:宋体">分割上下两个框架 </span></p> <p><frameset rows="20%,*,20%"><span style="font-family:宋体">分割上中下三个框架 </span></p> <p><! - - ... - -> <span style="font-family:宋体">注解 </span></p> <p><A HREF TARGET> <span style="font-family:宋体">指定超连结的分割视窗 </span></p> <p><A HREF=#<span style="font-family:宋体">锚的名称</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">指定锚名称的超连结 </span></p> <p><A HREF> <span style="font-family:宋体">指定超连结 </span></p> <p><A NAME=<span style="font-family:宋体">锚的名称</span><span style="font-family:Times New Roman">></span><span style="font-family:宋体">被连结点的名称 </span></p> <p><ADDRESS>....</ADDRESS> <span style="font-family:宋体">用来显示电子邮箱地址 </span></p> <p><B> <span style="font-family:宋体">粗体字 </span></p> <p><BASE TARGET> <span style="font-family:宋体">指定超连结的分割视窗 </span></p> <p><BASEFONT SIZE> <span style="font-family:宋体">更改预设字形大小 </span></p> <p><BGSOUND SRC> <span style="font-family:宋体">加入背景音乐 </span></p> <p><BIG> <span style="font-family:宋体">显示大字体 </span></p> <p><BLINK> <span style="font-family:宋体">闪烁的文字 </span></p> <p><BODY TEXT LINK VLINK> <span style="font-family:宋体">设定文字颜色 </span></p> <p><BODY> <span style="font-family:宋体">显示本文 </span></p> <p><BR> <span style="font-family:宋体">换行 </span></p> <p><CAPTION ALIGN> <span style="font-family:宋体">设定表格标题位置 </span></p> <p><CAPTION>...</CAPTION> <span style="font-family:宋体">为表格加上标题 </span></p> <p><CENTER> <span style="font-family:宋体">向中对齐 </span></p> <p><CITE>...<CITE> <span style="font-family:宋体">用於引经据典的文字 </span></p> <p><CODE>...</CODE> <span style="font-family:宋体">用於列出一段程式码 </span></p> <p><COMMENT>...</COMMENT> <span style="font-family:宋体">加上注解 </span></p> <p><DD> <span style="font-family:宋体">设定定义列表的项目解说 </span></p> <p><DFN>...</DFN> <span style="font-family:宋体">显示</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">定义</span><span style="font-family:Times New Roman">"</span><span style="font-family:宋体">文字</span></p> <p><DIR>...</DIR> <span style="font-family:宋体">列表文字标签 </span></p> <p><DL>...</DL> <span style="font-family:宋体">设定定义列表的标签 </span></p> <p><DT> <span style="font-family:宋体">设定定义列表的项目 </span></p> <p><EM> <span style="font-family:宋体">强调之用 </span></p> <p><FONT FACE> <span style="font-family:宋体">任意指定所用的字形 </span></p> <p><FONT SIZE> <span style="font-family:宋体">设定字体大小 </span></p> <p><FORM ACTION> <span style="font-family:宋体">设定户动式表单的处理方式 </span></p> <p><FORM METHOD> <span style="font-family:宋体">设定户动式表单之资料传送方式 </span></p> <p><FRame MARGINHEIGHT> <span style="font-family:宋体">设定视窗的上下边界 </span></p> <p><FRame MARGINWIDTH> <span style="font-family:宋体">设定视窗的左右边界 </span></p> <p><FRame NAME> <span style="font-family:宋体">为分割视窗命名 </span></p> <p><FRame NORESIZE> <span style="font-family:宋体">锁住分割视窗的大小 </span></p> <p><FRame SCROLLING> <span style="font-family:宋体">设定分割视窗的卷轴 </span></p> <p><FRame SRC> <span style="font-family:宋体">将</span><span style="font-family:Times New Roman">HTML</span><span style="font-family:宋体">档加入视窗</span></p> <p><FRameSET COLS> <span style="font-family:宋体">将视窗分割成左右的子视窗 </span></p> <p><FRameSET ROWS> <span style="font-family:宋体">将视窗分割成上下的子视窗 </span></p> <p><FRameSET>...</FRameSET> <span style="font-family:宋体">划分分割视窗 </span></p> <p><H1>~<H6> <span style="font-family:宋体">设定文字大小 </span></p> <p><HEAD> <span style="font-family:宋体">标示文件资讯 </span></p> <p><HR> <span style="font-family:宋体">加上分格线 </span></p> <p><HTML> <span style="font-family:宋体">文件的开始与结束 </span></p> <p><I> <span style="font-family:宋体">斜体字 </span></p> <p><IMG ALIGN> <span style="font-family:宋体">调整图形影像的位置 </span></p> <p><IMG ALT> <span style="font-family:宋体">为你的图形影像加注 </span></p> <p><IMG DYNSRC LOOP> <span style="font-family:宋体">加入影片 </span></p> <p><IMG HEIGHT WIDTH> <span style="font-family:宋体">插入图片并预设图形大小 </span></p> <p><IMG HSPACE> <span style="font-family:宋体">插入图片并预设图形的左右边界 </span></p> <p><IMG LOWSRC> <span style="font-family:宋体">预载图片功能 </span></p> <p><IMG SRC BORDER> <span style="font-family:宋体">设定图片边界 </span></p> <p><IMG SRC> <span style="font-family:宋体">插入图片 </span></p> <p><IMG VSPACE> <span style="font-family:宋体">插入图片并预设图形的上下边界 </span></p> <p><INPUT TYPE NAME value> <span style="font-family:宋体">在表单中加入输入栏位 </span></p> <p><ISINDEX> <span style="font-family:宋体">定义查询用表单 </span></p> <p><KBD>...</KBD> <span style="font-family:宋体">表示使用者输入文字 </span></p> <p><LI TYPE>...</LI> <span style="font-family:宋体">列表的项目 </span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">可指定符号 </span><span style="font-family:Times New Roman">)</span></p> <p><MARQUEE> <span style="font-family:宋体">跑马灯效果 </span></p> <p><MENU>...</MENU> <span style="font-family:宋体">条列文字标签 </span></p> <p><meta NAME="REFRESH" CONTENT URL> <span style="font-family:宋体">自动更新文件内容 </span> </p> <p><MULTIPLE> <span style="font-family:宋体">可同时选择多项的列表栏 </span></p> <p><NOFRame> <span style="font-family:宋体">定义不出现分割视窗的文字 </span></p> <p><OL>...</OL> <span style="font-family:宋体">有序号的列表 </span></p> <p><OPTION> <span style="font-family:宋体">定义表单中列表栏的项目 </span></p> <p><P ALIGN> <span style="font-family:宋体">设定对齐方向 </span></p> <p><P> <span style="font-family:宋体">分段 </span></p> <p><PERSON>...</PERSON> <span style="font-family:宋体">显示人名 </span></p> <p><PRE> <span style="font-family:宋体">使用原有排列 </span></p> <p><SAMP>...</SAMP> <span style="font-family:宋体">用於引用字 </span></p> <p><select >...</select > <span style="font-family:宋体">在表单中定义列表栏 </span></p> <p><SMALL> <span style="font-family:宋体">显示小字体 </span></p> <p><STRIKE> <span style="font-family:宋体">文字加横线 </span></p> <p><STRONG> <span style="font-family:宋体">用於加强语气 </span></p> <p><SUB> <span style="font-family:宋体">下标字 </span></p> <p><SUP> <span style="font-family:宋体">上标字 </span></p> <p><TABLE BORDER=n> <span style="font-family:宋体">调整表格的宽线高度 </span></p> <p><TABLE CELLPADDING> <span style="font-family:宋体">调整资料栏位之边界 </span></p> <p><TABLE CELLSPACING> <span style="font-family:宋体">调整表格线的宽度 </span></p> <p><TABLE HEIGHT> <span style="font-family:宋体">调整表格的高度 </span></p> <p><TABLE WIDTH> <span style="font-family:宋体">调整表格的宽度 </span></p> <p><TABLE>...</TABLE> <span style="font-family:宋体">产生表格的标签 </span></p> <p><TD ALIGN> <span style="font-family:宋体">调整表格栏位之左右对齐 </span></p> <p><TD BGCOLOR> <span style="font-family:宋体">设定表格栏位之背景颜色 </span></p> <p><TD COLSPAN ROWSPAN> <span style="font-family:宋体">表格栏位的合并 </span></p> <p><TD NOWRAP> <span style="font-family:宋体">设定表格栏位不换行 </span></p> <p><TD VALIGN> <span style="font-family:宋体">调整表格栏位之上下对齐 </span></p> <p><TD WIDTH> <span style="font-family:宋体">调整表格栏位宽度 </span></p> <p><TD>...</TD> <span style="font-family:宋体">定义表格的资料栏位 </span></p> <p><TEXTAREA NAME ROWS COLS> <span style="font-family:宋体">表单中加入多少列的文字输入栏 </span></p> <p><TEXTAREA WRAP> <span style="font-family:宋体">决定文字输入栏是自动否换行 </span></p> <p><TH>...</TH> <span style="font-family:宋体">定义表格的标头栏位 </span></p> <p><TITLE> <span style="font-family:宋体">文件标题 </span></p> <p><TR>...</TR> <span style="font-family:宋体">定义表格美一行 </span></p> <p><TT> <span style="font-family:宋体">打字机字体 </span></p> <p><U> <span style="font-family:宋体">文字加底线 </span></p> <p><UL TYPE>...</UL> <span style="font-family:宋体">无序号的列表 </span><span style="font-family:Times New Roman">(</span><span style="font-family:宋体">可指定符号 </span><span style="font-family:Times New Roman">)</span></p> <p><var>...</var> <span style="font-family:宋体">用於显示变数 </span></p> <p>BlockQuotc<span style="font-family:宋体">文本缩进</span></p> <p> </p> <p>表示颜色的有三种方式;</p> <p>1<span style="font-family:宋体">,</span><span style="font-family:Times New Roman">16</span><span style="font-family:宋体">进制颜色代码</span></p> <p><span style="font-family:宋体">语法:</span>#RRGGBB</p> <p><span style="font-family:宋体">例:</span><font color="#ff0000"><span style="font-family:宋体">红色</span><span style="font-family:Times New Roman"></font></span></p> <p>2<span style="font-family:宋体">,</span><span style="font-family:Times New Roman">10</span><span style="font-family:宋体">进制</span><span style="font-family:Times New Roman">RGB</span><span style="font-family:宋体">码</span></p> <p><span style="font-family:宋体">语法:</span>RGB<span style="font-family:宋体">(</span><span style="font-family:Times New Roman">RRR</span><span style="font-family:宋体">,</span><span style="font-family:Times New Roman">GGG</span><span style="font-family:宋体">,</span><span style="font-family:Times New Roman">BBB</span><span style="font-family:宋体">)</span></p> <p><span style="font-family:宋体">例:</span><font color="rgb(255,000,000)"><span style="font-family:宋体">红色</span><span style="font-family:Times New Roman"></font></span></p> <p>3,<span style="font-family:宋体">直接用颜色的英文名称</span></p> <p> <span style="font-family:宋体">例:</span><font color="red"><span style="font-family:宋体">红色</span><span style="font-family:Times New Roman"></font></span></p> <p> </p> <p> </p> <p>      <body>.....</body><span style="font-family:宋体">属性可分为三种:</span></p> <p>1<span style="font-family:宋体">,背景属性</span></p> <p>   <span style="font-family:宋体">包括:</span>bgcolor,background</p> <p>2,<span style="font-family:宋体">文字属性:</span></p> <p>   <span style="font-family:宋体">包括:</span>text,link,alink,vlink,</p> <p>3,<span style="font-family:宋体">留白属性:</span></p> <p>   <span style="font-family:宋体">其中分为:</span>leftmargin,topmargin</p> <p>   .bgcolor<span style="font-family:宋体">背景色</span></p> <p>    <span style="font-family:宋体">语法格式:</span><body bgcolor="#ff0000"></p> <p>   .background<span style="font-family:宋体">背景图案。</span></p> <p>    <span style="font-family:宋体">语法格式:</span><body background="url"></p> <p>   .text<span style="font-family:宋体">文本颜色(非连接文字颜色)</span></p> <p>   .link<span style="font-family:宋体">连接文字颜色(可连接文字颜色)</span></p> <p>   .alink<span style="font-family:宋体">活动连接文字颜色(正被点击的可连接文字的颜色)</span></p> <p>   .vlink<span style="font-family:宋体">已访问连接文字颜色)(已经点击访问过的可连接文字的颜色)</span></p> <p>      <span style="font-family:宋体">语法格式:</span><body text="color" link="color" alink="color" vlink="color"></p> <p>   .leftmargin <span style="font-family:宋体">页面左侧的留白距离</span></p> <p>   .topmargin <span style="font-family:宋体">页面顶部的留白距离</span></p> <p>    <span style="font-family:宋体">语法格式:</span><body leftmargin="value" topmargin="value"></p> <p>          <span style="font-family:宋体">注:</span>value<span style="font-family:宋体">为长度值为数字</span></p> <p> </p> <p>align <span style="font-family:宋体">属性</span></p> <p><span style="font-family:宋体">语法:</span><h2 align="?"><span style="font-family:宋体">文字</span><span style="font-family:Times New Roman"></h2></span></p> <p><span style="font-family:宋体">其属性有三种:</span>left<span style="font-family:宋体">靠左</span><span style="font-family:Times New Roman">,center</span><span style="font-family:宋体">居中</span><span style="font-family:Times New Roman">,right</span><span style="font-family:宋体">靠右</span></p> <p> </p> <p><span style="font-family:宋体">〈</span>p<span style="font-family:宋体">〉</span><span style="font-family:Times New Roman"></p></span><span style="font-family:宋体">为段落标记,可利用以上属性对整个段落进行设置</span></p> <p><span style="font-family:宋体">〈</span>br><span style="font-family:宋体">为换行标记</span></p> <p> <nobr></nobr><span style="font-family:宋体">为不换行标记 放在文字两边即可</span></p> <p>  <span style="font-family:宋体">例:</span><body></p> <p>      <h3><span style="font-family:宋体">江南逢李龟年</span><span style="font-family:Times New Roman"></h3></span></p> <p><p><span style="font-family:宋体">歧王宅里寻常见</span><span style="font-family:Times New Roman"><br></span></p> <p><span style="font-family:宋体">催九堂前几度闻</span><br></p> <p><span style="font-family:宋体">正是江南好风景</span><br></p> <p><span style="font-family:宋体">落花时节又逢君</span></p></p> <p></body></p> <p>  </p> <p>预格式化:</p> <p><pre>......</pre> <span style="font-family:宋体">浏览是效果和编写是效果格式一样</span></p> <p> </p> <p>  <span style="font-family:宋体">列表分为</span></p> <p>1<span style="font-family:宋体">无序列表又称符号列表</span></p> <p>语法格式:</p> <p><ul type="">type<span style="font-family:宋体">的属性可选直</span><span style="font-family:Times New Roman">disc</span><span style="font-family:宋体">实心圆点</span><span style="font-family:Times New Roman">,clrcle</span><span style="font-family:宋体">空心圆点</span><span style="font-family:Times New Roman">,square</span><span style="font-family:宋体">实心方框</span></p> <p><li><span style="font-family:宋体">文字</span><span style="font-family:Times New Roman"></li></span></p> <p><li><span style="font-family:宋体">文字</span><span style="font-family:Times New Roman"></li></span></p> <p></ul></p> <p> </p> <p>2<span style="font-family:宋体">有序列表</span></p> <p>语法格式:</p> <p><ol type="?" start"?"></p> <p><li><span style="font-family:宋体">文字</span><span style="font-family:Times New Roman"></li></span></p> <p><li><span style="font-family:宋体">文字</span><span style="font-family:Times New Roman"></li></span></p> <p></ol></p> <p>type<span style="font-family:宋体">的值是编号字符可选的有</span><span style="font-family:Times New Roman">1...,a...,A...,i... ,I...</span></p> <p>start<span style="font-family:宋体">为起始值例:如果</span><span style="font-family:Times New Roman">start</span><span style="font-family:宋体">为</span><span style="font-family:Times New Roman">3</span><span style="font-family:宋体">是那么将从</span><span style="font-family:Times New Roman">3</span><span style="font-family:宋体">开始,而且必须是数字。</span></p> <p> </p> <p>3<span style="font-family:宋体">定义列表</span></p> <p><dl><span style="font-family:宋体">定义列表标记</span></p> <p><dt><span style="font-family:宋体">标示定义条目</span></p> <p><dd><span style="font-family:宋体">标示定义内容</span></p> <p>语法格式:</p> <p><dl></p> <p><dt><span style="font-family:宋体">文字</span><span style="font-family:Times New Roman"></dt></span></p> <p><dd><span style="font-family:宋体">文字内容</span><span style="font-family:Times New Roman"></dd></span></p> <p></dl></p> <p> </p> <p> </p> <p>连接和图像</p> <p>语法格式:</p> <p><a href="url" name="?" target="?" title="?">....</a></p> <p><span style="font-family:宋体">属性:</span>href <span style="font-family:宋体">连接目标 值可以是</span><span style="font-family:Times New Roman">url</span><span style="font-family:宋体">地址也可以是连接锚点</span></p> <p><a href="url">...</a><span style="font-family:宋体">或者</span></p> <p><a href="<span style="font-family:宋体">锚点</span><span style="font-family:Times New Roman">">...</a></span></p> <p> </p> <p>name <span style="font-family:宋体">连接名称</span></p> <p><span style="font-family:宋体">语法格式:</span><a name="<span style="font-family:宋体">锚点名称</span><span style="font-family:Times New Roman">">...</a></span></p> <p><span style="font-family:宋体">例:</span><a name="abcdcf">...</a></p> <p>连接到该锚点的连接则应是:</p> <p><a name="#abcdef">....</a></p> <p> </p> <p>target<span style="font-family:宋体">目标窗口</span></p> <p>语法格式:</p> <p><a href="url" target="_blank|_self|_farent|_top|windowname">....</a></p> <p>-blank<span style="font-family:宋体">打开新窗口</span></p> <p>_self<span style="font-family:宋体">当前窗口打开</span></p> <p>一下两个仅在框架叶面中应用</p> <p>_parent<span style="font-family:宋体">当前窗口的父级窗口(上一级)打开</span></p> <p>_top<span style="font-family:宋体">在最高一级的窗口打开</span></p> <p> </p> <p>windowname<span style="font-family:宋体">已命名的窗口或框架中打开连接</span></p> <p>title<span style="font-family:宋体">连接提示</span></p> <p><a href="http://www.crazytribe.net" title="<span style="font-family:宋体">打开狂人部落的首页</span><span style="font-family:Times New Roman">"></span><span style="font-family:宋体">狂人部落</span><span style="font-family:Times New Roman"></a></span></p> <p> </p> <p><span style="font-family:宋体">图像</span><img></p> <p><span style="font-family:宋体">语法格式:</span><img src="url" alt="?" width="?" height="?" border="?" align="?"></p> <p>border<span style="font-family:宋体">属性定义图片边框的宽度,默认值为</span><span style="font-family:Times New Roman">0</span></p> <p>align<span style="font-family:宋体">属性设置图片旁边文字的位置</span></p> <p><span style="font-family:宋体">语法格式:</span><img src="" align""></p> <p>可选值有:</p> <p>top<span style="font-family:宋体">图片和文字顶部对齐</span></p> <p>middle<span style="font-family:宋体">图片和文字居中对齐</span></p> <p>bottom<span style="font-family:宋体">图片和文字底边对齐(默认)</span></p> <p>left<span style="font-family:宋体">图片居左对齐,文字沿图片绕排</span></p> <p>right<span style="font-family:宋体">图片居右对齐,文字沿图片绕排</span></p> <p>absmiddle<span style="font-family:宋体">图片对齐到目前文字行绝对中央</span></p> <p>absbottom<span style="font-family:宋体">图片对齐到目前文字行绝对底部</span></p> <p> </p> <p>文字的排版</p> <p><span style="font-family:宋体">不换行空白标记</span> </p> <p>font<span style="font-family:宋体">元素</span></p> <p>语法格式:</p> <p><font face="<span style="font-family:宋体">字体名称</span><span style="font-family:Times New Roman">" size="</span><span style="font-family:宋体">字体大小</span><span style="font-family:Times New Roman">" color="</span><span style="font-family:宋体">字体颜色</span><span style="font-family:Times New Roman">"></span></p> <p><span style="font-family:宋体">字体大小可选值为</span>1<span style="font-family:宋体">——</span><span style="font-family:Times New Roman">7</span><span style="font-family:宋体">,默认为</span><span style="font-family:Times New Roman">3</span></p> <p><span style="font-family:宋体">例:〈</span>font face="<span style="font-family:宋体">黑体</span><span style="font-family:Times New Roman">" size="4" color="#ff00ff">....</font></span></p> <p> </p> <p><span style="font-family:宋体">水平线</span><hr></p> <p><span style="font-family:宋体">语法格式:</span><hr width="<span style="font-family:宋体">宽度</span><span style="font-family:Times New Roman">" align="</span><span style="font-family:宋体">对齐方式默认居中</span><span style="font-family:Times New Roman">center" size="</span><span style="font-family:宋体">水平线厚度默认为</span><span style="font-family:Times New Roman">2" color="</span><span style="font-family:宋体">颜色</span><span style="font-family:Times New Roman">" noshade></span></p> <p>noshade<span style="font-family:宋体">无阴影,既实线</span></p> <p> </p> <p><span style="font-family:宋体">层〈</span>div><span><span style="font-family:宋体">两种元素</span></p> <p><div><span style="font-family:宋体">是块级元素,和段落元素</span><span style="font-family:Times New Roman"><p></span><span style="font-family:宋体">相似,不同的是两个</span><span style="font-family:Times New Roman"><div></span><span style="font-family:宋体">元素之间不会产生两个</span><span style="font-family:Times New Roman"><p></span><span style="font-family:宋体">元素之间的空行,</span></p> <p><span><span style="font-family:宋体">是行内元素,可以定义段落中部分文字的属性</span></p> <p>语法格式:</p> <p><div align="" style="">...</div></p> <p>align<span style="font-family:宋体">设置层中元素的水平对齐方式</span></p> <p>stule<span style="font-family:宋体">设置元素应用</span><span style="font-family:Times New Roman">css</span><span style="font-family:宋体">规范的属性</span></p> <p><div><span style="font-family:宋体">兼容性比</span><span style="font-family:Times New Roman"><span></span><span style="font-family:宋体">要好一点,最好使用</span><span style="font-family:Times New Roman"><div></span></p> <p> </p> <p>表格</p> <p>语法格式:</p> <p><table width="" bgcolor="" background="" border="" cellspacing="" cellpadding=""></p> <p><tr>...<td>....</td>....</tr></p> <p></table></p> <p>border<span style="font-family:宋体">边框宽度默认值为</span><span style="font-family:Times New Roman">0</span><span style="font-family:宋体">,既没有边框</span></p> <p>cellspacing<span style="font-family:宋体">表格中单元格的边距大小,默认值为两个像素</span></p> <p>cellpadding<span style="font-family:宋体">表格中单元格之间的间距大小,默认值为两个像素</span></p> <p> </p> <p>tr<span style="font-family:宋体">元素</span></p> <p>语法格式:</p> <p><tr align="" bgcolor="">....</tr></p> <p>align<span style="font-family:宋体">属性对齐方式可选值如下:</span><span style="font-family:Times New Roman">left,center,tight,</span><span style="font-family:宋体">默认为</span><span style="font-family:Times New Roman">left</span></p> <p>bgcolor<span style="font-family:宋体">指定该行的背景颜色</span></p> <p> </p> <p>td<span style="font-family:宋体">元素</span></p> <p>语法格式:</p> <p><td width="<span style="font-family:宋体">宽度</span><span style="font-family:Times New Roman">" height="</span><span style="font-family:宋体">高度</span><span style="font-family:Times New Roman">" align="</span><span style="font-family:宋体">水平对齐方式</span><span style="font-family:Times New Roman">" valign="</span><span style="font-family:宋体">垂直对齐方式</span><span style="font-family:Times New Roman">" bgcolor="" background="" rowspan="</span><span style="font-family:宋体">单元格的行跨度</span><span style="font-family:Times New Roman">" colapan="</span><span style="font-family:宋体">单元格的列跨度</span><span style="font-family:Times New Roman">">.....</td></span></p> <p>align<span style="font-family:宋体">属性的可选值有:</span><span style="font-family:Times New Roman">left,center,right</span></p> <p>valign<span style="font-family:宋体">属性的可选值有:</span><span style="font-family:Times New Roman">top,middle,bottom</span></p> <p>rowspan<span style="font-family:宋体">和</span><span style="font-family:Times New Roman">colapan</span><span style="font-family:宋体">跨行和跨列的数量,默认为</span><span style="font-family:Times New Roman">1</span></p> <p> </p> <p>框架</p> <p><frameset></framset><span style="font-family:宋体">框架组标记</span></p> <p><frame></frame><span style="font-family:宋体">框架标记</span></p> <p>语法格式:</p> <p><frameset></p> <p><frame></frame></p> <p><frame></frame></p> <p></franeset></p> <p> </p> <p><frameset></frameset><span style="font-family:宋体">元素(双标签)</span></p> <p>语法格式:</p> <p><frameset cols="" rows="" frameborder="" border="" framespacing=""></p> <p>.......</p> <p></frameset></p> <p>属性:</p> <p>cols <span style="font-family:宋体">垂直切割窗口(如左右分割两个窗口)接受整数值,百分数,</span><span style="font-family:Times New Roman">*</span><span style="font-family:宋体">(</span><span style="font-family:Times New Roman">*</span><span style="font-family:宋体">代表占用余下空间)数值的个数代表分成的部分数目,要以逗号分隔。例:</span><span style="font-family:Times New Roman">cols="30,*,50%"</span><span style="font-family:宋体">可以 切成三个视窗,第一部分是</span><span style="font-family:Times New Roman">30</span><span style="font-family:宋体">像素(</span><span style="font-family:Times New Roman">pixels</span><span style="font-family:宋体">)为绝对分割,第二部分是当分配完第一和第三视图后剩下的空间,第三部分则占整个窗口的</span><span style="font-family:Times New Roman">50%</span><span style="font-family:宋体">宽度,为相对分割。</span></p> <p>rows <span style="font-family:宋体">就是横向切割,将窗口上下分开,数值设置同上。</span></p> <p>      <span style="font-family:宋体">以上两属性尽量不要在同一个</span><frameset><span style="font-family:宋体">标记中,因为王井(</span><span style="font-family:Times New Roman">netscape</span><span style="font-family:宋体">)不支持,尽量采用多重分割。</span></p> <p>frameborder <span style="font-family:宋体">设置框架的边框,其值有</span><span style="font-family:Times New Roman">0</span><span style="font-family:宋体">不要边框,</span><span style="font-family:Times New Roman">1</span><span style="font-family:宋体">要边框。</span></p> <p>border <span style="font-family:宋体">设置框架边框厚度</span></p> <p>framespacing <span style="font-family:宋体">表示框架与框架间保留空白的距离</span></p> <p> </p> <p>frame <span style="font-family:宋体">元素(单标签)</span></p> <p>语法格式:</p> <p><frame name="" src="url" scrolling="yes/no" noresize></p> <p>属性:</p> <p>name <span style="font-family:宋体">框架名称,指定框架来做连接的目标窗口。</span></p> <p>src  <span style="font-family:宋体">框架中要显示的网页文当</span><span style="font-family:Times New Roman">url</span><span style="font-family:宋体">地址,每个个框架要对应一个</span><span style="font-family:Times New Roman">html</span><span style="font-family:宋体">文挡。</span></p> <p>scrolling <span style="font-family:宋体">是否显示滚动条,</span><span style="font-family:Times New Roman">yes/no,auto</span><span style="font-family:宋体">是自动。</span></p> <p>noresize <span style="font-family:宋体">设置不让使用者改变这个框架的大小,</span></p> <p> </p> <p>noframe<span style="font-family:宋体">元素</span></p> <p>指定当使用了框架的页面在不支持框架的浏览器中打开时显示的信息</p> <p>语法格式:</p> <p><noframe></p> <p>......</p> <p></noframe></p> <p> </p> <p><span style="font-family:宋体">表单</span><form></form></p> <p>语法格式:</p> <p><form action="url" method="get/post"></p> <p>....</p> <p><input type=submit><input type=reset></p> <p></form></p> <p>method<span style="font-family:宋体">有两种提交方式</span><span style="font-family:Times New Roman">get,post</span></p> <p>action <span style="font-family:宋体">是指明处理该表单的程序位置,这样表单所填的资料才能传给</span><span style="font-family:Times New Roman">cgi</span><span style="font-family:宋体">做处里,可设定此参数为</span><span style="font-family:Times New Roman">action="mailto:lwr8494@163.com"</span><span style="font-family:宋体">这样此表单所填的资料将会发送到这个邮箱地址。</span></p> <p>method <span style="font-family:宋体">是指传送信息给</span><span style="font-family:Times New Roman">cgi</span><span style="font-family:宋体">等网络程序的方式。可选</span><span style="font-family:Times New Roman">post</span><span style="font-family:宋体">方法,</span><span style="font-family:Times New Roman">get</span><span style="font-family:宋体">方法,</span><span style="font-family:Times New Roman">post</span><span style="font-family:宋体">方法容许传送大量信息。</span><span style="font-family:Times New Roman">get</span><span style="font-family:宋体">方法只接受低于</span><span style="font-family:Times New Roman">1k</span><span style="font-family:宋体">的信息。</span></p> <p><span style="font-family:宋体">申请表单用的是</span>post<span style="font-family:宋体">搜索引擎用的是</span><span style="font-family:Times New Roman">get</span></p> <p> </p> <p>input<span style="font-family:宋体">元素</span></p> <p><span style="font-family:宋体">语法格式:</span><input type=""></p> <p>type<span style="font-family:宋体">属性的可选值有:</span></p> <p>  text <span style="font-family:宋体">单行文本框</span></p> <p><span style="font-family:宋体">属性:</span>name <span style="font-family:宋体">文本框名称</span></p> <p>      value <span style="font-family:宋体">文本框的初始值</span></p> <p>      size <span style="font-family:宋体">文本框的长度</span></p> <p>      maxlength <span style="font-family:宋体">可输入字符串最大的长度</span></p> <p>  radio <span style="font-family:宋体">单选框</span></p> <p><span style="font-family:宋体">属性:</span>name <span style="font-family:宋体">单选框名称</span></p> <p>      value <span style="font-family:宋体">内部值</span></p> <p>      checked <span style="font-family:宋体">默认选定</span></p> <p>  checkbox <span style="font-family:宋体">复选框</span></p> <p><span style="font-family:宋体">属性:</span>name <span style="font-family:宋体">复选框名称</span></p> <p>      value <span style="font-family:宋体">内部值</span></p> <p>      checked <span style="font-family:宋体">默认选定</span></p> <p>  reset <span style="font-family:宋体">重置按钮</span></p> <p>  submit <span style="font-family:宋体">确定按钮</span></p> <p><span style="font-family:宋体">属性:</span>name <span style="font-family:宋体">按钮名称</span></p> <p>      value <span style="font-family:宋体">显示在按钮上的文字</span></p> <p>  password <span style="font-family:宋体">密码框</span></p> <p>属性与文本框的属性完全相同</p> <p>file <span style="font-family:宋体">文件域</span></p> <p><span style="font-family:宋体">属性:</span>name<span style="font-family:宋体">文件域名称</span></p> <p>      size <span style="font-family:宋体">文件域的长度</span></p> <p>      maxlength <span style="font-family:宋体">文件域可接受的字符数量的上限</span></p> <p>hidden <span style="font-family:宋体">隐藏域</span></p> <p><span style="font-family:宋体">属性:</span>name <span style="font-family:宋体">隐藏域名称</span></p> <p>      value <span style="font-family:宋体">内定值</span></p> <p>image <span style="font-family:宋体">图片域</span></p> <p><span style="font-family:宋体">属性:</span>name <span style="font-family:宋体">所要代表的按钮,可以是</span><span style="font-family:Times New Roman">submit,reset,</span><span style="font-family:宋体">或其他</span><span style="font-family:Times New Roman">.</span></p> <p>      src <span style="font-family:宋体">按钮图片的</span><span style="font-family:Times New Roman">url</span><span style="font-family:宋体">地址</span></p> <p> </p> <p><span style="font-family:宋体">列表框</span><select></p> <p>语法格式:</p> <p><select></p> <p>.....</p> <p><option>....</option></p> <p>.....</p> <p></select></p> <p> </p> <p>select<span style="font-family:宋体">元素</span></p> <p><span style="font-family:宋体">语法格式:</span><select name="" size=""multiple></select></p> <p>name <span style="font-family:宋体">指定列表框的名字</span></p> <p>size <span style="font-family:宋体">指定列表框显示列表项的条数,如果指定了该参数,</span><span style="font-family:Times New Roman">select</span><span style="font-family:宋体">元素是个列表,否则是一个下拉列表框</span></p> <p>multiple <span style="font-family:宋体">指定了这个参数,则表示该列表框可选择多项,否则只可选择一项</span></p> <p> </p> <p>option<span style="font-family:宋体">属性</span></p> <p><span style="font-family:宋体">语法格式:</span><option value="" selected></option></p> <p>value <span style="font-family:宋体">该列表项的值</span></p> <p>selected <span style="font-family:宋体">如果设定了这个参数,默认为选定这一项</span></p> <p> </p> <p><span style="font-family:宋体">多行文本框</span><textarea></p> <p><textarea name="" cols="" rows="" wrap="off/physical/virtual"></textarea></p> <p>属性:</p> <p>name<span style="font-family:宋体">文本框的名称</span></p> <p>cols<span style="font-family:宋体">文本框的宽度</span></p> <p>rows<span style="font-family:宋体">文本框的高度</span></p> <p>wrap<span style="font-family:宋体">文本框的折行方式可选值有:</span></p> <p>   off<span style="font-family:宋体">不保存换行信息</span></p> <p>   physical<span style="font-family:宋体">强迫浏览器在发送信息到</span><span style="font-family:Times New Roman">web</span><span style="font-family:宋体">服务器端时必须将多行文本框的文字一行一行的送出,</span></p> <p>   virtual<span style="font-family:宋体">送出连续成串的字除非使用者按回车。</span></p> <p> </p> <p>css <span style="font-family:宋体">层叠样式表 </span></p> <p>引入层叠样式表的方法包括:</p> <p>1<span style="font-family:宋体">,外联式样式表</span></p> <p>2<span style="font-family:宋体">,内嵌样式表</span></p> <p>3<span style="font-family:宋体">,元素内定</span></p> <p>4<span style="font-family:宋体">,导入样式表</span></p> <p> </p> <p>外联式样式表</p> <p><span style="font-family:宋体">例:</span><head></p> <p><link rel="stylesheet" href="/css/default.css"></p> <p></head></p> <p><body></p> <p>....</p> <p></body></p> <p></html></p> <p><span style="font-family:宋体">属性:</span>rel <span style="font-family:宋体">用来说明</span><span style="font-family:Times New Roman"><link></span><span style="font-family:宋体">元素在这里要完成的任务是连接一个独立的</span><span style="font-family:Times New Roman">css</span><span style="font-family:宋体">文件。而</span><span style="font-family:Times New Roman">href</span><span style="font-family:宋体">属性给出了所要连接</span><span style="font-family:Times New Roman">css</span><span style="font-family:宋体">文件的</span><span style="font-family:Times New Roman">url</span><span style="font-family:宋体">地址</span></p> <p>内嵌式样式表:</p> <p><span style="font-family:宋体">例:</span><html></p> <p><head></p> <p><style type="text/css"></p> <p><!--</p> <p>td{font:9pt;color:red}     </p> <p>.font105{font:10.5pt;color:blue}</p> <p>--></p> <p></style></p> <p></head></p> <p><body>....</body></p> <p></html></p> <p> </p> <p>元素内定</p> <p><span style="font-family:宋体">格式:</span><p style="font-size:10.5pt"></p> <p> </p> <p>导入式样式表</p> <p><span style="font-family:宋体">〈</span>html></p> <p><head></p> <p><style type="text/css"></p> <p><!--</p> <p>@import url(css/home.css);</p> <p>--></p> <p></style></p> <p><body></p> <p>....</p> <p></body></p> <p></html></p> <p> </p> <p>css<span style="font-family:宋体">的优先级</span></p> <p>越接近目标的样式定义优先级越高,高优先级样式将继承低优先级样式的未重叠定义但覆盖重叠的定义</p> <p><span style="font-family:宋体">如果</span>4<span style="font-family:宋体">种样式表对同一元素定义了不同的样式,那么他们的优先级顺序从高到低是,元素内定,内嵌样式表,导入样式表,外联样式表。</span></p> <p> </p> <p>css<span style="font-family:宋体">结构</span></p> <p><span style="font-family:宋体">例:</span>td{font-size:10.5pt;color:#666666}</p> <p>css<span style="font-family:宋体">样式包含两个基础部分,</span></p> <p><span style="font-family:宋体">选择符</span><td><span style="font-family:宋体">和声明</span><span style="font-family:Times New Roman">{font-size:10.5pt;color:#666666}</span></p> <p>声明也有两部分组成:</p> <p><span style="font-family:宋体">属性</span>font-size,color<span style="font-family:宋体">和值</span><span style="font-family:Times New Roman">10.5pt,#666666</span></p> <p> </p> <p><span style="font-family:宋体">选择符分为</span>6<span style="font-family:宋体">种</span></p> <p>1<span style="font-family:宋体">元素选择符</span></p> <p><span style="font-family:宋体">当页面上多个元素的样式相同时,可以将多个元素放在一起定义,中间以逗号分开</span>  <span style="font-family:宋体">例:</span>td,p,li,input,select{font-size:12px;}</p> <p>2class(<span style="font-family:宋体">类</span><span style="font-family:Times New Roman">)</span><span style="font-family:宋体">选择符</span></p> <p><span style="font-family:宋体">例:〈</span>head></p> <p><title>.....

士大夫井冈山地方官

九连环离开计划

还有一种方法就是限定可以应用它的页面元素

例:〈head>

.....

士大夫井冈山地方官

九连环离开计划

3 id选择符

class选择附类似,只是把'.'换成'#'

例:

id选择符

我们看到在调用ID选择附时与CLASS选择附类似,只是将class=""换成了id="",方便页面脚本语言的调用

4 关联选择符

关联选择符

关联选择符

我们设定了在元素中的元素

所包含文字的样式,只有在两个条件都满足是,样式在会起作用,

5伪类选择符

是只能用在css选择符里,而不能用在html代码中的选择符

例:

html>

关联选择符

关联选择符

关联选择符

关联选择符

/body>

正确的顺序是a:link\a:visited\a:hover否则会引起页面上连接颜色混乱

6伪元素选择符

与伪类选择符定义类似,目前被大多数浏览器支持的有两个:首行伪元素(first-line)和首字符伪元素(first-letter)是用来实现首行大写和首行下沉效果的

例:首行

dfgsadfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdf...

长度随浏览器窗口大小而改变

首字

dfgsadfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdf...

以上两种都只能应用于块状元素上

 

css规则

一继承

例:

css规则

为最高级次一级两种css用在一个属性元素上,相同的覆盖,不同的继承,

 

二组合

:td{font-size:12pt}

   p1{font-size:12pt}

组合后

td,.p1{font-size:12pt}

 

 

三层叠

在样式里定义过后,在表格属性中又定义一次

决撒地方官

 

css单位

分四大类:

1 长度单位

数值可以是整数,小数,正数,负数,0,后加单位(负值不要轻易使用)

换算关系:

1in(英寸)=6pc()

1in(英寸)=72pt()

1in(英寸)=2.54(厘米)

1cm(厘米)=10mm(毫米)

1cm(厘米)=0.3937(英寸)

1pt()=1/72in(英寸)=0.2478mm(毫米)

1pc()=1/6in(英寸)=我国新四号铅字的尺寸

2 百分比单位

3 颜色单位

4 url单位

 

 

 

 

 

 

 

 

 

学习课程内容

(一) html语言基础

(二) Dreamever的使用

(三) CSS(级联样式表)

(四) Javascript(语法)

(五) DOM对象模型编程


html的基本知识:

1. html表示超文本标记语言(Hyper Text Markup language)xmlxhtmldhtmlDynamic

2. html文件是一个包含标记的文本文件

3. 这些标记保浏览器怎样显示这个页面

4. html文件必须以html或者shtmlhtm等扩展名,文件保存不能有中文和空格之类

5. html文件可以用一个简单的文本编辑器创建(记事本、Editplus等等)
两个组织:IETF(Internet Engineering Task Force)Internet工程任务组,由网络设计人员、操作员、厂商、专家组成的民间组织,主要负责有关internet的各种技术标准及接口规范的制定。IETFRFCRequests for comments,请求注解文档)定名所发布的各类标准与协议,例如:RFC2616(HTTP /1.1)

html历史:html1.0---html2.0(IETF制定)---html4.0(w3c)---html5.0(w3c)
学习html要经常去的网站

http://www.w3school.com.cn/

     http://www.w3c.com

     http://www.ietf.org/

 

HTML标记:
HTML标记是HTML文档的控制语言,用来告诉浏览器应该如何显示一页文档。它用”<”和”>”括起来。例如:

HTML标记的写法:

 单标记------只需要单独使用就能完整的表达意思。

写法:<标记名>
例如:

 双标记------由“开始标记”和“结束标记”两部分组成

写法:<标记>内容标记>

例如:

第一

 标记属性------一个标记,为了明确它的功能,往往用一些属性参数来描述。属性是标记的选项,在标记中修饰,用于进一步控制网页内容的显示效果。例如:颜色、对齐方式、高度、宽度和字体等。

写法:<标记名 属性1=属性值1  属性2=属性值2属性3=属性值3>

例如:


 标记的书写规则:标记字母大小写都可以的,但为便于阅读,通常采用小写
例如:  

HTML的基本标记:看实例1.html











html标签之文本格式:

1) 标题标签:看实例hn.html
n的取值范围从1-6.每个标题标记所标示的字句将独占一行且上下留一空白行

2) 换行标签

:看实例br.html

标签是令其后的内容换一行,浏览器会自动忽略源代码中的空白和换行的部分,因此对需要换行的地方加上
标签就可以了.

是段落标签,使用该标签来进行段落划分,不同的段落之间会自动换行并有一定的距离。
是不换行

3) 预定义格式

:例如:pre.html
作用:使浏览器将按照编辑文档时
标记之间字符的位置将内容毫无变化的显示出来

4) 文本格式标签:内容看实例font.html
属性有facesizecolor

5) 常用文字标签: font_ziti.html

6) 定位标签

:
可以让文字表格图片等摆放在任意的位置

7) Html注释语句
基本格式: 注释语言  - - ->

8) 特殊字符(更多字符见html支持的符号.doc): teshu_fuhao.html
< (<)  >  (>)  ® (注册商标)  & (&)    (空格)
© (copyright)   ™(商标TM)  &quto; (“)

9) 鼠标的形状:shubiao.html

Html列表格式:

1) 有序列表

    :liebiao.html
    基本格式:

      称为有序列表标记
      其属性:
        type=”i”设定数字序列样式,其值有五种:1aAiI,默认为type=”1”
        start=”4”设定数字序列的起始值
      1. 用以标示列表项目
      2. 的属性:
                 例如:

      3. type=”4”设定数字序列样式,取值同oltype属性

        2) 无序列表:
        基本格式:


          的属性设定:例如
            ”square”>,type设定符号样式,
            其值有三种:disc(列项符号,通常是非嵌套列表默认值)
                        circle(列项符号,通常是嵌套列表默认值)
                        square(列项符号,实心或空心的方块取决浏览器)

            3) 定义列表
            定义列表是一种在表的各项前没有任何数字和符号的缩排列表
            基本格式:
                    


                       
            第一项
            .
            叙述第一项的定义

                       
            第二项
            .
            叙述第二项的定义

                     

            文件之间的链接:

            1) 超级链接标签:链接文字
            .href属性定义了链接指向的地方
            .target属性决定链接到的文件在哪个框架或窗口中显示
            .title属性设定在浏览器中鼠标指向链接时显示的提示文本

            2) URL资源地址可以分为:绝对URL和相对URL两类
            (1)绝对URL:包含标识internet上的文件所要的全部信息,包含协议、主机名、文件夹名和文件四项。例如:http://hi.baidu.com/baidu/.一般情况下,外部的资源使用绝对URL。
            (2)相对URL:可以分四种
            ①同一文件夹中的文件,直接写文件名即可.
                  
                ②下级文件夹中的文件,要加上文件夹名称
                  

                  ③上级或兄弟文件夹中的文件,使用”..”表示移到上一级目录,
                  例如:兄弟目录:”../ch/test.html”>
                       上级目录:

                  ④直接从服务器根目录开始指定文件夹和文件名;例如:
            ”/ch/test.html”>

            3) Target连接目标
            _blank_self_parsenttop、框架名

            4) 锚连接和邮件连接
            邮件连接:
            mailto:xszlt@21cn.>联系我们
            锚连接制作方法:
                (1)为被链接的部分做一个记号,为该记号起名(使用name属性).例如:”记号名称”>
                (2)在调用此链接部分的文件中定义连接.例如:
            文件名
            #记号名称”>连接的文字如果是在同一个文件内跳转,文件名可以省略

            5) 实例:1link.htmlshige.html或者a_href.htmla.html

            图像标签:实例img.html

                   图像标记:基本格式,是单独使用的标记,用于控制图像的显示.

            例如:

            align=”top”设置图像的对齐方式;

            水平方向的对齐方:leftright

            垂直方向的对齐方式(图文馄排时非常有用)
            top:表示文字与图像顶部对齐
            bottom:表示文字与图像底部对齐
            middle:表示文字与图像中不对齐

            hspace:设定图像与其水平方向相邻页面元素之间的距离

            vspace:设定图像与其垂直方向相邻页面元素之间的距离(使用pixels做为单位)
            图片链接:

            在网页中插入音频和视频

                     将音乐做成超链接:
            乐曲名
            例如:MIDI音乐
            自动载入音乐:

            autostart=true/false
            loop=true/false  

            startme=”:设定乐曲的开始播放时间,例如20秒后播放:startme=00:20
            volume=0-100  设定音量的大小
            width height  设定控制面板的大小
            hidden=true   隐藏控制面板
            视频格式同音频类似.

            marquee标签的使用

            1) 滚动字幕的使用可以增加网页的动感,让网页显得更有生气
            基本语法格式:

            2) align:设定滚动字幕的位置,除左、中、右三种位置外,还有靠上(top)和靠下(bottom)
            bgcolor:用于设定滚动字幕的背景颜色
            direction:用于设定滚动字幕的滚动方向
            behavior:用于设定滚动的方式:scroll表示由一端滚动到另一端
                   slide表示由一端快速滑动到另一端且不再重复
                   alternate表示在两端之间来回滚动
            hspacrevspace:分别用于设定滚动字幕的左右边框和上下边框的宽度
            scrollamount:设定滚动字幕的滚动距离
            scrolldelay设定滚动两次之间的延迟时间
            loop:用于设定滚动的次数

            metal元素:

            1) meta标签是一个非常常用的标签,它可以用于鉴别作者,设定页面格式,标注内容提要和关键字以及刷新页面等等

            2) 基本语法:

            3) 定义字符集

            4) 搜索引擎相关
            通过一下语句向搜索引擎说明你网页的关键词

            通过以下语句向搜索引擎说明你站点的主要内容:

            5) 禁用缓存
            缓存为零
            代理服务器上缓存
            设置页面过期时间

            6) 设置页面以改变url

            7) 设置一些版权信息

            8) 例子:

            我的地盘我做主,我的世界我的个性">

            我的地盘我做主,我的世界我的个性">

             

            表格标签的使用:

            基本格式:

                

                     

                     

                     

            表头

                     常用属性设置:bordercolorlight边框明亮部分的颜色
            bordercolordark边框昏暗部分的颜色

                                  cellspacing 单元格之间的间距
            cellpadding 单元格与内容之间的间距
            colspan=”5”该一单元格跨越的列数
            rowspan=”4”该一单元格跨越的行数

            例如:

            控制表格边框的显示:

            Frame=”void” 不显示表格边框

            Frame=”above” 只显示表格的上边框

            Frame=”below” 只显示表格的下边框

            Frame=”hsides” 只显示表格的上下边框

            Frame=”vsides” 只显示表格的左右边框

            Frame=”Ihs” 只显示表格的左边框

            Frame=”rhs” 只显示表格的右边框

            控制表格行与列之间的分割线:rules

            1) rules=”none” 表示不加内部边框;不显示任何分割线

            2) rules=”rows” 表示只显示水平方向的边框;只显示行与行之间的分割线

            3) rules=”cols”  表示只显示垂直方向上的边框;只显示列与列之间分割线

            4) rules=”all” 则是显示所有方向上的边框;显示所有分割线(默认)

            使用表单

                         每一个表单都有一个让用户提交表单的按钮,当用户单击该按钮时,表单中所填写的信息将发送到一个用于处理用户表单信息的服务器端应用程序。(动态脚本语言:PHPJSPASP、。NETCGI等等),从而完成信息的交互。
             一个表单有三部分组成:
             表单标记:提交给服务器端处理程序的提交方法
            表单域:包含了文本框、密码框、隐藏域、多行文本框、复选框、单选框、下拉选择框和文件上传框等等。
            表单按钮:包括提交按钮、复位按钮和一般按钮
            常用的表单标记:

            1) 
            type=text|password|checkbox|radio|submit|reset|image|file|button|hidden|….
            文本框
                文本框是一种让访问者自己输入内容的表单对象,通常被用来填写简短的回答,比如:姓名、地址等。
                代码格式:

            2)  密码框
            当输入信息时,文字被星号或者其他符号代替,从而将输入的信息隐蔽起来。
            代码格式:

            3) 隐藏域
            隐藏域是 用来收集或者发送信息的不可见元素,对于网页的访问者来说,隐藏域是看不见的,但有时候需要传递一些信息,来标记信息的不同
            代码格式:

            4) 单选框
            当访问者在一组选项中选择唯一的答案时,需用单选框。
            代码格式:

            5) 复选框
            复选框允许在待选项中选中一项以上的选项,每一个复选项框都是一个独立的元素,都必须有一个唯一的名称
            代码格式:

            6) 下拉选择框/滚动列表框
            下拉选择框允许你在一个有限的空间设置多种选项:
            代码格式:multiple属性可以进行多项选择
                    

            7) 多行文本框
            能让访问者填写文字较多的内容
            代码格式:

            warp:off用来避免文本换行,当输入的内容超过文本域右边界时,文本将向左滚动必须用return才能将插入点移到下一行
                 physical让文本换行,当数据被提交处理时换行符也将被一期提交处理

            8) 文件上传框
            代码格式:

            9) (image)图像提交按钮
            代码格式:

            框架的使用

            1) 框架是一种页面布局技术,通过使用框架结构的页面,可以在一个浏览器窗口中同时显示多个页面

            2) 框架的主要有两部分组成:框架集和单个框架组成。

            3) 基本标记:
            把主窗口换分成一组框架,每个框架显示一个独立的文档
            内定义单个框架
            在此标记中包含的文字将指出现在不支持frames的浏览器中

            4) 创建内嵌的框架标记: