@Tean
2016-12-26T08:51:12.000000Z
字数 1574
阅读 933
html
超文本标记语言
<!DOCTYPE html><html><head><meta charset="UTF-8" ><title>网页标题</title><meta name="keywords" content="关键字1,关键字2"><meta name="description" content="描述信息"></head><body><!-- 网页主要内容 --></body></html>
a、span、strong、em、i、b、...div、p、h1、ul、ol、dl、...
<a href="url" target="">连接文本</a>
href: 连接地址(外网时候要加协议)target: 连接打开方式
_self: 当前窗口打开,缺省值_blank: 新窗口打开_parent: 父级窗口打开_top: 顶级窗口打开- 用处:
- 普通连接
- 锚点
- 功能性连接
<a href="mailto:xx@xx.com">发送邮箱</a>
<img src="图片路径" title="" alt="" width="" height="" border="">
注意: 超链接里的图片在IE下图片会有边框
- 无序列表
<ul type="disc circle square"><li></li></ul>
- 有序列表
<ol type="1 a A I i"><li></li></ol>
- 定义列表
<dl><dt></dt><dd></dd><dt></dt><dd></dd><dd></dd><dd></dd></dl>
<table width="宽度" border="边框宽度" cellspacing="单元格和单元格之间的距离" cellpadding="单元格和内容之间的距离" align="表格对齐方式"><tr><td rowspan="跨行数量" align="内容的水平对齐方式" valign="垂直对齐方式"></td><td></td><td></td></tr><tr><td colspan="2"></td></tr></table>
// method: get | post<form action="表单提交地址" method="表单提交方式"></form>// get:通过url传参,把数据暴露在地址栏里,所有不安全,但效率高,有大小限制。// post: 安全,数据承载量大,一般上传都是post
<form action="" method="post">普通文本框:<input type="text" value="默认值" placeholder="">密码框:<input type="password">单选框:<input type="radio" checked>复选框:<input type="checkbox" checked>普通按钮:<input type="button" value="按钮显示的文字">提交按钮:<input type="submit">重置按钮:<input type="reset">图片按钮:<input type="image" src="图片路径">文件选择框:<input type="file">隐藏文本框:<input type="hidden">多行文本域:<textarea></textarea>选择框:<select><option selected value="提交给后台的数据">用户看到的数据</option></select>按钮:<button type="button reset submit"></button></form>
<iframe src="引入的网页地址" name="名称" width="" height="" frameborder=""></iframe>