Head Tag In HTML?

The head tag does not appear in the main browser window but mainly contains information about the HTML document

Head Tag In HTML?

HTML Provide Lots Of tags. But Head Tag Define Web Page Information On Browser. Head Tag Not be shown directly inside the Browser like Body Tag.
In Head Tag, We Define Title, Add CSS File, JS File, icons, and metadata.

Head Tag In HTML Tags
  • Always Use Head Tag In HTML Tags.
<html> 

    <head> 
        <title> Title Here </title>
    </head>

</html>
html head tag

Syntax:

<head> 
	<title> Title Here </title>
</head>

Example:

<!DOCTYPE html>
<html lang="en">
     <head>
         <meta charset="UTF-8">
         <title>Hello!</title>
     </head>
     <body>
         <h1>Hello World!</h1>
         <p>This is a simple paragraph.</p>
     </body>
</html>

Contact me