What are the header tags of web page files?

王林
Release: 2020-05-12 11:48:15
Original
7863 people have browsed it

What are the header tags of web page files?

Head tag overview:

tag

In the head element of HTML language, generally It needs to include title, basic information, meta information, etc. Generally, CSS and JavaScript are defined in the head element, and the content defined in the HTML language header is often not displayed directly on the web page. It is used to contain information about the current document.

<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
Copy after login

tag

The title of an HTML file is displayed in the title bar of the browser to describe the purpose of the file. Every HTML document should have a title. In an HTML document, the title text is located between the

and tags. The and tags are located at the head of the HTML document, that is, between the and tags.

tag

The information provided by the meta element is invisible to the user. It is not displayed on the page. It is generally used to define the name of the page information. Keywords, authors, etc. In HTML, the meta tag does not need to set a closing tag. Within an angle bracket is a meta content, and there can be multiple meta elements in an HTML header page.

There are two attributes of the meta element: name and http-equiv. The name attribute is mainly used to describe web pages to facilitate search engine robots to find and classify them. The most important of these are description (description of the site on search engines) and keywords (keywords).

Commonly used header tags

What are the header tags of web page files?

The above is the detailed content of What are the header tags of web page files?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!