HTML Tags (Heading Tags)

HTML Tags

  • HTML tags are element names surrounded by angle brackets:
<tagname>content write here………..</tagname>

Heading Tags:
HTML basics - Headings
  • Any document starts with a heading.
  •  You can use different sizes for your headings.
  •  HTML also has six levels of headings, which use the elements <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>.
  •  <h1>is the smallest size & <h6>is the largest size.
Example:

<!DOCTYPE html>
<html>
<head>
<title>Heading Example</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>
<h6>This is heading 6</h6>
</body>
</html>

OUTPUT :





Comments

Popular posts from this blog

Set Font Colour

HTML FONTS

HTML Table Heading