Heading tags
<h1> to <h6>:
Heading tags are used to define different heading levels.These six tag can be used to define document heading.
<h1> defines highest heading level.
And so on <h6> defines lowest heading level.
Eg.
<html>
<head>
<title>My Heading Program</title>
</head>
<body bgcolor="blue" text="yellow">
<h1> Heading 1 </h1>
<h2> Heading 2 </h2>
<h3> Heading 3 </h3>
<h4> Heading 4 </h4>
<h5> Heading 5 </h5>
<h6> Heading 6 </h6>
</body>
</html>
Attributes for <h1> to <h6>:
Attributes | Description | Values |
---|---|---|
align: | Sets align of the heading. | left,right,center,justify |
0 comments:
Post a Comment