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 the complete list of tags in our Reference.
There are more than 100 tags in HTML. I recommend you to learn all the tags which are given in the List of the HTML Tags page in details. 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 a basic example to see the main building blocks of tags details.
<h1>This is my First Heading</h1>
<p>This is my First Paragraph</p>
Explanation in the Example
<!DOCTYPE>: You can use this to describe the web document type.
<html>: This tag used at the top and after Doctype tag.
<title>: This tag used to describe the title of the web document.
<meta>: This tag used to describe the meta declaration of web document.
<body>: This tag used to describe the main body part or the main content of web document.
<h1>: This tag used to describe the heading of the main content of body.
<p>: This tag used to describe the paragraph inside main content of the web document.
Small letter HTML tags
W3C always recommends using 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 always recommend using small letters for tags.
Use of HTML tags
They are the key elements of all the webpages. These tags are surrounded by angle barackets(< and >) For exp: <html>, <p>.
Each tags have opening and closing tags. For example: HTML paragraph tag has opening tag <p> and closing tag </p>
People also like to read