1. HTML <head> element
The <head> element is a container for all head elements. Elements within <head> can contain scripts that instruct the browser where to find the style sheet, provide meta information, and so on.
The following tags can be added to the head section: <title>, <base>, <link>, <meta>, <script> and <style>.
2. HTML <title> element
The <title> tag defines the title of the document.
The title element is required in all HTML/XHTML documents.
The title element can:
(1) Define the title in the browser toolbar
(2) Provide the title displayed when the page is added to favorites
(3) Page title displayed in search engine results
<head><metacharset=utf-8><title>Dotcpp Programming</title></head>
3. HTML <base> element
The <base> tag specifies the default address or target for all links on the page.
<!DOCTYPEhtml><html><head><metacharset=utf-8><title><base>Tag Demo</title><basehref=https://www.dotcpp.com/></head><body ><ul><li><ahref=course/>Homepage</a></li><li><ahref=course/html/>HTML Tutorial</a></li></ul></body ></html>
4. HTML <link> element
The <link> tag defines the relationship between the document and external resources.
The <link> tag is most commonly used to link style sheets.
<head><styletype=text/css>body{background-color:yellow}p{color:blue}</style></head>
5. HTML <style> element
The <style> tag is used to define style information for HTML documents.
Within the style element, you can specify how HTML elements are rendered in the browser.
6. HTML <meta> element
Metadata is information about data.
The <meta> tag provides metadata about an HTML document. The metadata is not displayed on the page, but is machine-readable.
Typically, the meta element is used to specify the page's description, keywords, document author, last modified time, and other metadata.
The <meta> tag is always located within the head element.
Metadata can be used by browsers (how to display content or reload pages), search engines (keywords), or other web services.
Keywords for search engines
Some search engines use the name and content attributes of the meta element to index your page.
The following meta element defines the description of the page:
<metaname=descriptioncontent=FreeWebtutorialsonHTML,CSS,XML/>
The following meta element defines the keywords of the page:
<metaname=keywordscontent=HTML,CSS,XML/>
The name and content attributes are used to describe the content of the page.
7. TML <script> element
The <script> tag is used to define client-side scripts, such as JavaScript.
This will not be explained in detail.
HTML header element