美文网首页
HTML标签使用总结

HTML标签使用总结

作者: Mr_Candy | 来源:发表于2017-03-07 17:18 被阅读7次

    1.head标签

    1. meta 标签

      a: <meta charset="UTF-8"> 主要用来设置编码格式 可以解决乱码问题
      b: <meta name="keywords" content="新浪,新浪网,SINA,sina,sina.com.cn,新浪首页,门户,资讯" />
      c: <meta name="description" content="新浪网为全球用户24小时提供全面及时的中文资讯" />
      
    2. title 标签 设置浏览标签的 标题的名称

    3. link 标签

       a:  设置域名预解析 有效的提高后续访问网站的效率 <link rel="dns-prefetch"  href="http://www.mimg.127.net">
       b: title 前引入图标 <link rel="shortcut icon" href="http://www.126.com/favicon.ico" />
       c: 引入CSS样式 
      
    4. image 的引用

       具体使用方法为:<img src="" alt="" title="">
       src 为图片的地址  alt 如果图片没有的话, 会显示这个文字 
       title 当鼠标移动到图片上时, 会显示这个title
      
    5. a 标签的作用

        <a target="_blank" href="http://www.baidu.com">按钮文字</a> href可以设置锚点 # + 需要跳转到的ID名称
        target 有两个属性:
        _blank 在新的链接中打开页面
        _self在当前页面中打开
      
    6. 表格标签

         <table border="1">
         <thead>
              <tr>
                   <td rowspan="2">武当</td> <td colspan="2">难</td>
              </tr>
          </thead>
           <tbody>
                 <tr>
                    <td>武当</td> <td>难</td> <td>45</td>
                 </tr>
           </tbody>
       </table>

    相关文章

      网友评论

          本文标题: HTML标签使用总结

          本文链接:https://www.haomeiwen.com/subject/bxmugttx.html