Home  >  Article  >  Web Front-end  >  How to use head tags in HTML

How to use head tags in HTML

一个新手
一个新手Original
2017-10-23 10:20:562396browse

1aa9e5d373740b65a0cc8f0a02150c53

## The head element contains all head tag elements and can be added The element tags in the head area are:

## b2386ffb911b14667cb8f0f91ea547a7, c9ccee2e6ea535a969eb3f532ad9fe89, e8e496c15ba93d81f6ea4fe5f55a2244, 2cdf5bf648cf2f33323966d7f58a7f3f, d77577bf2a9e22f086427bdbd63c48a6, dde6fb694e6711ae5e6f381704c04ae4

## The following will explain the functions of each tag one by one

b2386ffb911b14667cb8f0f91ea547a7

    ##Used to define the titles of different documents
  1. Define the title of the browser toolbar
  2. ##When a web page is added to favorites, the title displayed in the favorites
  3. ##The title displayed on the search engine results page

  4. ##

      eg: <title> 我是标题 </title>

    dde6fb694e6711ae5e6f381704c04ae4
<span style="font-size: 15px;"><span style="font-family: &#39;Microsoft YaHei&#39;;">  标签描述了基本的链接地址/链接目标,该标签作为HTML文档中所有的链接标签的默认链接。</span><br/></span>


 eg: <base href="www.beck.ren/images/" target="_blank"></base>

2cdf5bf648cf2f33323966d7f58a7f3f

  标签定义了文档与外部资源之间的关系,通常用于链接样式表。


  eg: <link type="text/css" href="../index.css">

c9ccee2e6ea535a969eb3f532ad9fe89

  标签定义了HTML文档的样式文件引用地址.内容指定样式渲染HTML文档


eg: <style> *{ margin:0; padding: 0; } <style>   //css写法
rrree

meta tag describes basic metadata


  1. ##The browser will parse the metadata provided by the tag, but the metadata will not be displayed on the page

  2. meta elements are usually used to specify the "description", "keywords", "last modification time of the file", "author",...

  3. Metadata can tell the browser (how to display content or reload the page) and search engines (keywords), and other web services

  4. <meta>
    3f1c4e4b6b16bbbd69b2ee476dc4f83a

  5. eg:
        //定义关键字
        <meta name="keywords content="HTML, CSS, XML, XHTML, JavaScript"">
        //定义描述内容
        <meta name="description" content="Free Web tutorials on HTML and CSS">
        //定义作者
        <meta name="author" content="Hege Refsnes">
        //定义每30秒刷新当前页面
        <meta http-equiv="refresh" content="30">


  标签定义了 HTML 文档的 JS 文件引用地址.

The above is the detailed content of How to use head tags in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn