make a list of the basic html tags with its descriptions
Answers
Most commonly used tags in HTML
HTML contains lots of predefined tag. Some of them are described below:
Document structure tag:
HTML tag: It is the root of the html document which is used to specify that the document is html.
Syntax:
<html> Statements... </html>
Code:
<html>
<head>
<title>Title of your web page</title>
</head>
<body>HTML web page contents </body>
</html>
Head tag: Head tag is used to contain all the head element in the html file. It contains the title, style, meta, … etc tag.
Syntax:
<head> Statements... </head>
Code:
<head>Contains elements describing the document</head>
Body tag: It is used to define the body of html document. It contains image, tables, lists, … etc.
Syntax:
<body> Statements... </body>
Code:
<body>The content of your HTML page</body>
Title tag: It is used to define the title of html document.
Syntax:
<title> Statements... </title>
Code:
<tittle>tab name</tittle>
Content container tag:
Heading tag: It is used to define the heading of html document.
Syntax:
<h1> Statements... </h> <h2> Statements... </h2> <h3> Statements... </h3> <h4> Statements... </h4> <h5> Statements... </h5> <h6> Statements... </h6>
Code:
<h1>Heading 1 </h1>
<h2>Heading 2 </h2>
<h3>Heading 3 </h3>
<h4>Heading 4 </h4>
<h5>Heading 5 </h5>
<h6>Heading 6 </h6>
Paragraph tag: It is used to define paragraph content in html document.
Syntax:
<p> Statements... </p>
Code: