Horje
HTML - The Head Element

The HTML <head> element is a container for the following elements: <title>, <style>, <meta>, <link>, <script>, and <base>.

 

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

HTML metadata is data about the HTML document. Metadata is not displayed.

Metadata typically define the document title, character set, styles, scripts, and other meta information.


Full Example of Head Elements

Following we put some ELEMENTS between <head>...</head>
index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
  <title>A Meaningful Page Title</title>
   <link rel="stylesheet" href="mystyle.css">
   <meta charset="UTF-8">
   <meta name="keywords" content="HTML, CSS, JavaScript">
   <meta name="description" content="Free Web tutorials">
   <meta name="author" content="John Doe">
   <meta http-equiv="refresh" content="30">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <base href="https://www.w3schools.com/" target="_blank">

</head>
<body>

<p>The content of the body element is displayed in the browser window.</p>
<p>The content of the title element is displayed in the browser tab, in favorites and in search-engine results.</p>

</body>
</html>






Related Articles
HTML - The Head Element HTML - The Head Element
How to create The HTML <head> Element HTML - The Head Element
How to create The HTML <title> Element in <Head> HTML - The Head Element
How to create The HTML <style> Element in <head> HTML - The Head Element
How to create The HTML <link> Element in <head> HTML - The Head Element
How to create The HTML <meta> Element in Head HTML - The Head Element
The HTML Viewport in Head HTML - The Head Element
How to use HTML Viewport in Head HTML - The Head Element
How to create The HTML <script> Element in head HTML - The Head Element
How to create The HTML <base> Element in head HTML - The Head Element

Single Articles
Full Example of Head ElementsHTML - The Head Element

Category:
Web Tutorial
Sub Category:
HTML - The Head Element
Uploaded by:
Admin


Reffered: https://www.w3schools.com/html/html_head.asp