HTML文档的结构

作者:孙丽超
日期:2012/10/29 14:21:28

      HTML文档分为两部分:文档头和文档体。文档头:用来对文档进行一些必要的定义,比如定义标题等。文档体:文档体中的内容就是要显示的各种文档信息。 其中<html>在最外层,表示这对标记之间的内容是HTML文档。 <head>标记用来定义文档头。 <body>标记用来定义文档体。

如下所示:<html>

               <head>

               <title>HTML文档的结构</title>

              </head>

             <body>

            <h3>这是一个完整的HTML文档</h3>

            </body>

            </html>

文本框<input type="text" size=10 maxlength=6><br>

密码框<input type="passworo" size=10 maxlength=6><br>

提交<input type="submit" value="提交"><br>

重置<input type="reset"><br>

普通按钮<input type="button"><br>

多选<input type="checkbox" checked><br>

单选<input type="radio" name=11><br>

代替<input type="image" src="1.jpg"><br></body>

背景音也:bgsound src="2.mp3"

表格背景:<td  background/bgcolor= "1.jpg" olive >

分享</td>d打右通行数:colspan向下 rowspan

分享