Example

A simple <head> tag that open PNLdev.com link:

Laboratory

description & Usage

The <head> tag provides a section in html documents for entering information called metadata, which is located between the <html> and <body> tags of the corresponding document.

Metadata or <meta> tags will not be displayed to the user and are used for browsers.

The following tags are placed inside the <head> section:

  1. <title> tag
  2. <style> tag
  3. <base> tag
  4. <meta> tag
  5. <script> tag
  6. The <noscript>

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<head>

Global Attributes

The head tag supports the HTML Global Attributes.

Event Attributes

The head tag supports the HTML Event Attributes.

More Examples

Example

HTML <head> tag Using the <style> tag in the <head> tag

Laboratory

Example

HTML <head> tag Using the <link> tag in the <head> tag

Laboratory

Example

HTML <head> tag Using the <meta> tag in the <head> tag

Laboratory

Default CSS

Most browsers will display the head tag with the following default style: