What is HTML tag ?
A HTML file is always made using tags. Mainly, there are two types of tags in the HTML file.They are Container Tag and Empty Tag.
<!DOCTYPE html>
<html>
<head>
<title> 3schools</title>
</head>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
</body>
</html>
Container tag always contains START TAG AND END TAG.
Such as : <html> .... </html>
Empty tag does not contain end tags.
Example -
<input type='text' value='this is empty tag'/>
start tag = <html>,<p>,<h1>... and end tag = </html>,</p>,</h1>
Comments (0)