HTML CSS examples for HTML Tag:head
The head element contains the metadata for the document.
metadata elements provide the browser with information about the content and markup in the document.
head element can also include scripts and references to external resources.
head Element summary
Item | Value |
---|---|
Element | head |
Element Type | N/A |
Permitted Parents | html |
Local Attributes | None |
Contents | One title element is required; other metadata elements are optional |
Tag Style | Start and end tag enclosing other elements |
New in HTML5 | No |
Changes in HTML5 | None |
Style Convention | None |
Using the head Element
<!DOCTYPE html> <html> <head> <title>Hello</title> </head> <body></body> </html><!--from ww w. jav a 2 s .c om-->