What is the difference between head and title in HTML?

By: Krishan Singh | 18 June 2019

S

Shawan Das

15 July 2019

HEAD Tag in HTML


The <head> tag is used to contain the title tag between opening and closing head tag i.e <head> ..... </head>


  • The HEAD tag start with <head> and end 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


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 start with <title> and end with </title> tag.
  • It is used to describe the page information on the browser.



Example


<html>

<head>

     <title>.....</title>

</head>

</html>


0 votes

Your Answer

Advertise With Us

Email us for details: advertise@gdatamart.com

Legal Policy
Sitemap & Support
International
© 2021 GDATAMART.COM (All Rights Reserved)