- a 标签的用法
-
属性:href、target、download
href取值:网址、路径、伪协议
target取值:_blank、_self、_top、_parent
- img 标签的用法
- 作用:发出get请求,展示一张图片
- 属性: alt/height/width/src
- 事件:onload/onerror
- 响应式:max-width:100%
- table 标签的用法
<table>
<thead></thead>
<tbody></tbody>
<tfoot></tfoot>
</table>
- form标签
- 作用:发出get或post请求,然后刷新页面
- 属性:action/autocomplete/method/target
- 事件:submit
- input标签
- 属性:类型type:button/checkbox/email/file/hidden/number/password/radio/seach/submit/tel/text
- 其他:name/autofocus/checked/disabled/maxlength/pattern/value/placeholder
- 事件:onchange/onfocus/onblur
- 注意事项
- 一般不监听input的click事件
- form里面的input要有name
- form里面要放一个type=submit才能触发submit事件