< Html Tutorial

Html header

← Previous Next →


The HTML <head> Element

  • <head> element has nothing to do with HTML headings.
  • <head> element contains meta data. Meta data are not displayed.
  • <head> element is placed between the <html> tag and the <body> tag:

Example

<!DOCTYPE html>
<html>

<head>
  <title>My First HTML</title>
  <meta charset="UTF-8">
  <link type="text/css" rel="stylesheet" href="newtemplate.css"> 
</head>

<body>
</body>
</html>

Note: Meta data means data about data. HTML meta data is data about the HTML document.


The HTML <title> Element

The HTML <title> element is meta data. It defines the HTML document's title.
The title will not be displayed in the document, but might be displayed in the browser tab.


The HTML <meta> Element

The HTML <meta> element is also meta data.
It can be used to define the character set, and other information about the HTML document.

← Previous Next →