HTML常用标签

198 阅读1分钟

1. a 标签的用法

    a标签的属性 
    href        全称hyper ref,超级引用/超级链接
    target      指定窗口打开页面
    download    下载网页(有些浏览器不支持)
    
    a标签的href取值
        网址取值方式
        例:
            https://Google.com
            http://Google.com
            //Google.com        (建议使用该种方式,报错几率降低)
            
        路径
        绝对路径相对路径都是可以使用的
        例:
            /a/b/c  以及 a/b/c
        文件名称
        例:
            index.html 以及 ./index.html
            
        以上这几种都是路径的引用方式
        
     a标签的伪协议
     javascript:代码;
     mailto:邮箱
     tal:手机
     #id
     
     a的target取值
     _blank        在新的页面打开
     _top          在当前页面的最上级打开
     _parent       在父级打开页面
     _self         在自己页面打开
         

2. img 标签的用法

    img标签的属性
    scr      图片链接
    alt      图片描述
    widthheightimg的事件
    onload/onerror
    
    响应式
    max-width:100%

3. table 标签的用法

    table 标签主要包含
    <thead>
    <tbody>
    <tfoot>
    <tr>
    <th>
    <td>

4. 其他感想

重新学习了form表单的提交方式和使用方法使我受益匪浅。