HTML head Tag
<head> tag is placed in between the opening
<html> tag and the opening
<head>tag, we place the meta data using the
<meta>tag and other similar tags. This meta information is not displayed to the User like Title of HTML Document, Character Sets, Links, etc.
<head>tag, we use the
<title>tag which is used to define the title of the webpage.
We can also use
<head>tag which is used to provide a base URL for all the relative URLs.
You can also use
<style>tag inside the
<head>tag to provide CSS styling for the webpage.
<head> Tag - Syntax and Usage
<head> tag requires the start(opening) tag and end(closing) tag. Required syntax for the same is given below:
<head> ... </head>
<head> Tag Basic Example
Below we have a basic example for a clear understanding of
<head> Tag Attributes
Other HTML Tags supported:
These are some HTML tags that are used to represent metadata or other webpage information which is not visible to the users on the webpage, but these are required by the webpage.
||It contains the title of HTML Document|
||It is used to specify a default URL and target for all links in an HTML document.|
||The link element is used to link an HTML document to other HTML documents|
||The meta element is used to provide information about an HTML document like a description of the page and keywords.|
||Used to declare the stylesheet in an HTML document.|
Browser Support for HTML
Following browsers support this attribute:
- Firefox 1+
Google Chrome 1+
Internet Explorer 2+
Apple Safari 1+