基本框架
<!DOCTYPE html
<html> </html> 标签的起始
<head> </head> 头部信息
<meta charset="utf-8"> 规定使用utf-8编码
<title> </title> 标题的内容
<body> </body> 主体内容
属性值:bgcolor="颜色",background="图片地址"
常用标签
<a> </a>
属性:href="http://www.baidu.com/"网络连接
href="b.html"相对路径
href="e:\myweb\b.html"绝对路径
href="mailto:service@tencent.com"发送邮件
<h1> <h1> 标题分为1-6级分别h1,h2,h3,h4,h5,h6
属性:align="center"
<p> </p> 文章排版标签
属性:align
<br> 回车
<pre> </pre> 文章预排版标记
该标记不会被自动换行,写成什么样就会显示成什么样
<b> 黑体
<i> 斜体
<u> 下划线
<s> 删除线
<strong> 强调
<small> 较小
<big> 较大
<sup> 上标
<sub> 下标
<hr> 水平线
属性:align,size,width,color
<marquee> </marquee> 滚动字符
属性:direction,behavior,height,bgcolorwidth,hspace,vspace,scrollamount,scorlldelay,loop
<img> </img> 图像标记
属性:src,width,height,alt,border,align,top,middle,bottom,left,right
<ul> </ul> 无序清单
属性:type(square,disc,circle)
<ol> </ol> 有序清单
属性:type(square,disc,circle,a,1......)
HTML表格
<table> </table> 表格
属性:border,height,width,cellpadding,cellspacing,bordercolor,background
<tr> </tr> 行
<td> </td> 列
属性:colspan,rowspan,align,cellpadding,cellspacing,bgcolor
框架与布局
<frameset> </frameset>
属性:cols,border,rows
<frame> </frame>
属性:src,width,height,scrolling,noresize,name
<a> </a> 的target属性值:_blank 显示一个新窗口
_self 显示在同一个窗口
_parent 显示在frameset的前一个文件窗口
_top 显示在整个浏览器窗口
浮动窗口(内敛窗口)
<iframe> <iframe>
属性:src,width,height,scrolling,frameborder
表单与页面控制
<form> </form> 表单
<input> </input> 输入
属性:typpe=text,submit,button,reset,image,password,hidden,radio,checkbox
size,maxlenth,readonly,disable,value,style
<select> <select>
<select name="bmon">
<option value="0">星期一</option>
<option value="0">星期一</option>
<option value="0">星期一</option>
</select>
<textarea name="" cols="" rows="">默认内容</textarea>