HTML Heading
There are six differentsizes of text header you can choose from <h1> to <h6>.
<h1> </h1> defines the largest heading.
<h6> </h6> defines the smallest heading.
many attributes using in heading.
attributes of heading:
Tags of heading | Attributes Names |
<h1> </h1> <h2> </h2> <h3>
</h3> <h4> </h4> <h5> </h5> <h6>
</h6> |
align | class | dir | id | lang | style | title |
Attributes and there values of heading
Attributes Names |
Attributes Values |
align |
center | justify | left | right |
class |
class name |
dir |
ltr | rtl |
id |
unique alphanumeric identifier |
lang |
language code |
style |
style information |
title |
advisory text |
Example
HTML Code |
<html>
<body>
<h1>H1 Headig</h1>
<h2>H2 Headig</h2>
<h3>H3 Headig</h3>
<h4>H4 Headig</h4>
<h5>H5 Headig</h5>
<h6>H6 Headig</h6>
<h2 align="justify">H2 Headig aligned to the justify</h1>
<h2 align="center">H2 Headig aligned to the center</h2>
<h2 align="right">H2 Headig aligned to the right</h2>
<h2 align="left">H2 Headig aligned to the left</h2>
<h2 style="font-size: 20pt;">H2 Headig with style information</h2>
<h2 style="background: #eeeeee;">H2 Headig with style information</h2>
<h2 style="font-family: Verdana, Arial"> H2 Headig with style information</h2>
<h2 style="font-weight: bold;">H2 Headig with style information</h2>
<h2 style="padding: 20px;background: #eeeeee;">H2 Headig with style information</h2>
<h2 style="color: #f0f000;">H2 Headig with style information</h2>
<h2 dir="rtl">H2 Heading with dir value rtl</h2>
<h2 dir="ltr">H2 Headig with dir value ltr</h2>
<h2 title="http://itcollegeall.blogspot.com">H2 Headig with title </h2>
|
|
Result |
|
Result
No comments:
Post a Comment