HTML Tags Web development basics

HTML Head elements

This tables demonstrates various HTML Head elements

Tag Description
<head> Defines information about the document
<title> Defines the title of a document
<base> Defines a default address or a default target for all links on a page
<link> Defines the relationship between a document and an external resource
<meta> Defines metadata about an HTML document
<script> Defines a client-side script
<style> Defines style information for a document

Understanding HTML Head elements

The <title> element

The <title> is used to give a title to a web page.

<title> tag gives:

  • title to that web page
  • title of the page in search engine results
  • defines a title in  browser tab

The <meta> element

Meta element specifies metadata like character set, keywords, description, author details and other meta information.

Example:

The <style> element

The <style> element defines the style information for a HTML page

Example:

The <link> element

The <link> elements links external style sheets to a web page

Example:

The <script> element

<script> defines client side javascript

Example:

The<base> element

The element specifies the base URL and base target for all relative URLs in a page

Example: