![]() |
VOOZH | about |
The head property in HTML is used to return the first occurrence of the head if multiple heads in the document. It returns the reference of the head object, which represents the <head> element
Syntax:
document.headReturn value: It returns the <head> element of the head object.
Example: The below program illustrates the document.head property in HTML.
Output:
👁 ImageSupported Browsers: The browsers supported by DOM head property are listed below: