element is used as a container for metadata (data about data). It is used between tag and tag.
The head of an HTML document is a part whose content is not displayed in the browser on page loading. It just contains metadata about the HTML document which specifies data about the HTML document.
An HTML head can contain lots of metadata information or can have very less or no information, it depends on our requirement. But head part has a crucial role an HTML document while creating a website.
Metadata defines the document title, character set, styles, links, scripts, and other meta information.
Following is a list of tags used in metadata:
element is used to define the title of the document. It is used in all HTML/XHTML documents. The element must be placed between element, and one document can only have one title element.
What does element do?
It defines a title in the browser tab.
It provides a title for the page when it is added to favorites.
It displays a title for the page in search engine results.
Note: The title element must be specific about the document and its recommended length is 65 to 70 characters including spaces.
The HTML element is used to link an external style sheet to your webpage. The element contains main two attributes which are "rel" and "href". The rel attribute indicates that it is a stylesheet, and href gives the path to that external file.