<head> Tag in HTML
The HEAD section is an important part of HTML when we design a web page. Simply, we can say that 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, title, meta, script, internal CSS code, and internal script tags can be written one by one in the head section.
For Example
<html>
<head>
<title> You can write the title here, what you want to display to the browser</title>
<link />
</head>
<body>
<h1> Write a headding</h1>
<p>Write a paragraph here.</p>
</body>
</html>
<title> Tag in HTML
The <title> tag is used to set the title of your web page when you designing a web page which appears in the browser tab the page is loaded in, basically, when we bookmark /favorite it.
- The <title> 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> This is Home Page</title>
</head>
</html>