HTML-头标签的使用

头标签的使用

html由两部分组成 head和body

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

        <title></title>:表示在标签上显示的内容

        <meta></meta>:设置页面的相关内容

            <!-- 页面的定时跳转 -->

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

        <base></base> 设置超链接的基本信息,可以统一设置超链接的打开方式

            <base target = "_blank"/>

        <link></link>:引入外部文件 

代码:

<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <!-- 页面的定时跳转 -->
  <!--<meta http-equiv = "refresh" content = "3,url = hello.html"/>-->
  <base target = "_blank"/>
  <title>Document</title>
 </head>
 <body>
	<h1>演示头标签</h1>
	<a href = "hello.html" target = "_blank">超链接1</a>
	<a href = "hello.html">超链接2</a>
	<a href = "hello.html">超链接3</a>
 </body>
</html>

猜你喜欢

转载自blog.csdn.net/tommy5553/article/details/80785710