HTML <head> tag

HTML head Tags: Definition

• This tag is only used within the <html> element and it ends before the starting of <body> element.

• The <head> element is a container for metadata(data about data) and is placed between the <html> tag and the <body> tag.

Metadata is data about the HTML document that generally define the document title, character set, style, script, and other meta properties.



HTML <head> tag example :

 
<!DOCTYPE html>
<html>
<head>
  
</head>
  <body>

  </body>
</html>