HTML Head
The HTML <head> element is a container for the following elements: <title>, <style>, <meta>, <link>, <script>, and <base>.
The HTML <head> Element
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.
The HTML <title> Element
The `<title>` element defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab.
The HTML <style> Element
The `<style>` element is used to define style information for a single HTML page:
<style>body {background-color: powderblue;}h1 {color: red;}p {color: blue;}</style>
The HTML <link> Element
The `<link>` element defines the relationship between the current document and an external resource. The `<link>` tag is most often used to link to external style sheets:
<link rel="stylesheet" href="mystyle.css">
The HTML <meta> Element
The `<meta>` element is typically used to specify the character set, page description, keywords, author of the document, and viewport settings.
<meta charset="UTF-8"><meta name="description" content="Free Web tutorials"><meta name="keywords" content="HTML, CSS, JavaScript"><meta name="author" content="John Doe"><meta name="viewport" content="width=device-width, initial-scale=1.0">