Horje
What is HTML - The Head Element | HTML - The Head Element Code
What is 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>




Read Full::
HTML - The Head Element Code
Category:
HTML Code
Sub Category:
HTML - The Head Element Code
Uploaded:
10 months ago
Uploaded by:
Admin
Views:
1

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

Single Articles
Full Example of Head Elements

Share on: