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>






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


Read Article
https://horje.com/learn/1434/reference