HTML 属性 | |
---|---|
class | 为html元素定义一个或多个类名(classname) |
id | 定义元素的唯一id |
style | 规定元素的行内样式 |
value | |
name | |
type | |
字符 | < < > > & & " " x × 除号 ÷; |
HTML 标签 | ||
---|---|---|
<meta> | 描述了一些基本的元数据 一般放在head区域 | |
<meta http-equiv="refresh>" content="30" | 每30秒刷新页面 | |
<meta name="keywords" content="HTML , CSS , XML" | 为搜索引擎定义关键词 | |
<meta name="description"content="免费 web" | 为网页定义描述内容 | |
<meta http-equiv="author" content="run" | 定义网页作者 | |
<base> | 定义了页面链接标签的默认链接地址 | |
标题 | <h1 >-<h6 > | |
段落 | <p ></p > | |
超链接 | <a href= "index." ><a > | |
图像 | <img src="1.jpg" width="100" heigth="50" > | 在同一级目录:直接写 在下一级目录 : images/1.jpg |
换行 | <br/ > | |
下行线 | <hr/ > | |
链接 | <link rel="stylesheet" type="text/css" type="mystyle.css"> | 定义了文档与外部资源之间的关系 通常用于链接到样式表 |
表格 | <table><tr><td></td></tr></table> | td 可用 th 替换 其中后者有字体加粗的效用 |
table 有 border 边框粗细 cellspacing 单元格之间的距离 | ||
tr 表格的行 td 表个单元 | ||
列表 | <dl><dt></dt><dd></dd></dl> | dl 定义列表 dt 自定义列表项目 dd 自定列表项的描述 |
<ol><li></li></ol> | 有序 | |
<ul><li></li></ul> | 无序 | |
表单 | <form>内容</form> | 是一个包含表单元素的区域 表单元素是允许用户在表单中输入内容 如: 文本域 下拉表单 复选框 |
form中的action属性 可以把sumbit提交的信息通过他(action定义的路径)来传递到所要到达的页面 | ||
文本域 | <input type="text" name="name"/> | |
密码字段 | <input type="password" name="pwd"/> | |
单选按钮 | <input type="radio" name="sex" value="nv"/>女<input type="radio" name="sex" value="nan"/>男 | |
多选框 | <input type="checkbox" name="love" value="bike"/>bike<input ...>..<input...>.. | 等等按照这种格式来写 多选框的格式 |
提交按钮 | <input type="submit" value="value"/> |