The best HTML <head> tag Tutorial In 2024, In this tutorial you can learn Examples,Browser Support,Tag definitions and instructions,Differences between HTML 4.01 and HTML5,Attributes,Global Properties,Try - Example,related articles,
In the head with a <title> tag of the HTML document:
All major browsers support the <head> tag.
<Head> element is a container for all the head elements.
<Head> element must contain the title of the document (title), can contain scripts, stylesheets, meta information, and other additional information.
Elements listed below can be used inside <head> element:
HTML5 is no longer supported profile properties.
属性 | 值 | 描述 |
---|---|---|
profile | URL | HTML5 不支持。规定文档 URL 的一系列规则。这些规则能被浏览器识别并且准确读取 <meta> 标签的内容属性中的信息。 |
<head> tag supports HTML global properties .
Use <base> tag in the <head>
This example demonstrates how to use the default URL <base> tag in the provision of all links page and the default target.
Using the <style> tag in the <head>
This example demonstrates how the <head> section add style information.
Use <link> tag in the <head>
This example demonstrates how to use the <link> tag to link to an external stylesheet.
HTML Tutorial: HTML head