HTML tags are the main building blocks of the webpages. Certain tags come up with opening as well as closing tags while few consists of no closing tags. If you want to learn all the tags one by one, See complete list of tags in out HTML tag Reference.

There are more than 100 tags in HTML. I recommend you to learn all the tags. To develop webpages you should know all the tags, its details and how to use them.

Let’s start with the previous simple example. This example is the basic example to to see the main building block tags details.

Simple Example:

Explanation of Example

<!DOCTYPE>: This tag used to describe the web document type. See HTML Doctype tag to see details about this.

<html>: This tag used at the top and after Doctype tag. See HTML html tag to see details about this.

<title>: This tag used to describe the title of the web document. See HTML title tag to see details about this.

<meta>: This tag used to describe the meta declaration of web document. See HTML meta tag to see details about this.

<body>: This tag used to describe the main body part or the main content of web document. See HTML body tag to see details about this.

<h1>: This tag used to describe the heading of the main content of body. See HTML heading tag to see details about this.

<p>: This tag used to describe the paragraph inside main content of the web document. See HTML paragraph tag to see details about this.

Small letter HTML tags

W3C always recommeds to use small letters for HTML tags. However we can use capital letters also to develop webpages . Using capital letters for tags in webpages are not developers friendly coding to understand. So I recommed always use small lettes for HTML tags.

Use of HTML tags

HTML tags are the key elements inside webpages. These tags are surrounded by angle barackets For exp: <html>, <p>.

Each tags have opening and closing tags. For example: HTML paragraph tag has opening tag <p> and closing tag </p>