Rajdeep Singh.

Head Tag In HTML?

How to use Head Tag in HTML 5

By html 1 min read

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

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