HTML HEADINGS


HTML headings are defined with the <h1> to <h6> tags.<h1> defines the most important heading.<h6> defines the least important heading

Headings help in defining the hierarchy and the structure of the web page content. HTML offers six levels of heading tags, <h1> through <h6>; the higher the heading level number, the greater its importance -- therefore <h1> tag defines the most important heading, whereas the <h6> tag defines the least important heading in the document.

By default, browsers display heading in larger and bolder font normal text. Also, <h1> headings are displayed in largest font, whereas <h6> headings are in smallest font.

Source Code:                                                                Output

<html>                                                                           Heading 1

<body>                                                                          Heading 2

<h1>Heading 1</h1>                                                    Heading 3

<h2>Heading 2</h2>                                                   Heading 4

<h3>Heading 3</h3>                                                   Heading 5

<h4>Heading 4</h4>                                                   Heading 6

<h5>Heading 5</h5>

<h6>Heading 6</h6>

</body>

</html>

HTML ATTRIBUTES

There are some attributes defined globally and can be used on any element, while others are defined for specific elements only. For every attributes have a name and specific value check the examples:

Syntax:

<div> class = "Example"> ......</div>

Standard Attributes

The attributes listed below are supported by almost all the HTML 5 tags.



Comments

Popular posts from this blog

Introduction To HTML What is HTML ?