HTML tag
Example
A document with a
<!DOCTYPE html><html>
<head>
<meta charset="utf-8">
<title>Document Title
</
title
</
head
<
bodydocument content......
</
body
</
htmlTry it »
(see more examples at the bottom of the page)
Browser Support
All major browsers support the tag.
Tag Definition and Usage Notes
The element is a container for all head elements. The element must contain the document's title, and may contain scripts, styles, meta information, and more.The following elements can be used inside the element:
Differences Between HTML 4.01 and HTML5
HTML5 no longer supports the profile attribute.
Attribute
| Attribute | Value | Description |
|---|---|---|
| profile | URL | HTML5 not supported. Specifies a set of rules for document URLs. These rules can be recognized and correctly read by browsers the information in the content attribute of the tag. |
Global Attributes
the tag supports [HTML global attributes](/tags/ref-standardattributes.html).Try it - Example
in use in
This example demonstrates how to use