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>
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
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
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!