What is the label of head?

云罗郡主
Release: 2019-01-30 17:22:09
Original
8471 people have browsed it

What is the label

head?

What is the label of head?

The head tag is a built-in tag included in the HEAD (header) part of the web page. It is generally used to declare the scripting language used and the method used during web page transmission.

html head tag syntax

Function: used to define the head of the document, which is a container for all head elements.

Description: Elements in

can reference scripts, instruct the browser where to find style sheets, provide meta information, and more. The header of the document describes various attributes and information of the document, including the document's title, location on the Web, and relationship with other documents. The data contained in the header of most documents will not actually be displayed to readers as content.

Note: The following tags can be used in the head section: , , , <script>, <style>, and <title>. </script>

html head tag example

<html>
<head>
<title>我的第一个 HTML 页面</title>
</head>
<body>
<p>body 元素的内容会显示在浏览器中。</p>
<p>title 元素的内容会显示在浏览器的标题栏中。</p>
</body>
</html>
Copy after login


The above is the detailed content of What is the label of head?. 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