<head> Tag in HTML
The <head> tag is used to contain the title tag between the opening and closing head tag i.e. <head> ..... </head>.
- The <head> tag starts with <head> and ends with </head> tag.
- All tags like link tag, title tag, meta tag, script tag, internal CSS code, internal script tag, etc... we can write in the head section one by one
For Example
<html>
<head>
<title>.....</title>
<link />
</head>
<body>
<h1>....</h1>
<p>....</p>
</body>
</html>
<title> Tag in HTML
The <title> element is used to sets the title of your page which appears in the browser tab the page is loaded in, basically, when we bookmark /favorite it.
- The <head> tag starts with <title> and ends with </title> tag.
- It is used to describe the page information on the browser.
For Example
<html>
<head>
<title>.....</title>
</head>
</html>