Home >Web Front-end >HTML Tutorial >Summary of head tags in html

Summary of head tags in html

黄舟
黄舟Original
2017-10-23 10:03:081732browse

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


Tags describe the basic Link address/link target, this tag serves as the default link for all link tags in the HTML document.

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

2cdf5bf648cf2f33323966d7f58a7f3f

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


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

c9ccee2e6ea535a969eb3f532ad9fe89

The tag defines the reference address of the style file of the HTML document. The content specifies the style to render the HTML document

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

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 element is usually used to specify the "description" of a web page ", "Keywords", "Last modified time of 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. ##
    1   eg:
    2     //定义关键字
    3     <meta name="keywords content="HTML, CSS, XML, XHTML, JavaScript"">
    4     //定义描述内容
    5     <meta name="description" content="Free Web tutorials on HTML and CSS">
    6     //定义作者
    7     <meta name="author" content="Hege Refsnes">
    8     //定义每30秒刷新当前页面
    9     <meta http-equiv="refresh" content="30">
  5. 27835793f4768f4164d1421d99e293bc

  6. tag defines the JS file reference address of the HTML document.


##
eg: <script src="loading.js"></script>

The above is the detailed content of Summary of 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