详解html头head标签的使用

2019-10-19,,,,

 HTML两部分组成 head和body

    ** 在head里面的标签就是头标签

      ** title标签:表示在标签上显示的内容

      ** meta标签:设置页面的一些相关内容(用的比较少)

        <meta name="keywords" content="熊猫,金丝猴,恐龙"/>

        <meta http-equiv="refresh" content="3;url=01-hello.html"/>

      ** base标签:设置超链接的基本设置

        - 可以统一设置超链接的打开方式

        <base target="_blank"/>

      ** link标签:引入外部文件

         ** css中使用到,可以使用link标签引入css文件

  完整代码:

<html>
    <head>
        <title>World</title>
        <meta name="keywords" content="熊猫,金丝猴,恐龙"/>
        <!--<meta http-equiv="refresh" content="3;url=01-hello.html"/>-->
        <base target="_blank"/>
    </head>
    <body>
        <h3>头标签</h3>
        <a href="01-hello.html">超链接1</a>
        <a href="01-hello.html">超链接2</a>
        <a href="01-hello.html">超链接3</a>
    </body>
</html>

《详解html头head标签的使用.doc》

下载本文的Word格式文档,以方便收藏与打印。