What is the difference between head and title in HTML?

LAST READ: APR 18 2024 | Q. BY: KRISHAN SINGH

S

Shawan Das

<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>

1 votes

Your Answer

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)