HTML head tag

<head> tag contains title of the page, links for external style sheets and scripts.

Example

<!DOCTYPE html>
<html>
<head>
 <title>Here title is written</title>
 <meta name="keywords" content="here keywords are written">
 <meta name="description" content="here description is present">
</head>
<body>
 
 <p>head contains meta data. It also contains title of page, links for external stylesheet, links for external js files etc.</p>
		
</body>
</html>
Try </>

It also contains meta information which is very important in SEO (search engine optimization).

Related tags

TagsDescription
<meta> represents meta information about the page.
<head> <meta charset="UTF-8"> </head>
<link> This element imports external style sheets.
<head> <link src="style.css" rel="stylesheet"> </head>
<title> represents title of the page
<head> <title>page title is present</title> </head>

Global Attributes

All the global attributes are applicable on the <head> element.

Tag omission

The end tag (</head>) may be omitted.



Was this article helpful?

 

Email:

Message:

Get the newsletter