Head Tag In HTML?

Post image

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
Head Tag In HTML Tags
  • Always Use Head Tag In HTML Tags.
<html> 

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

</html>

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

You May Also Like

comments powered by Disqus