HTML CSS JAVASCRIPT PHP

HTML Headings



HTML Headings are titles or subtitle that you want to display on webpage.


Example

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

HTML Headings

HTML Headings are defined with the < h1> to < /h1> tags.

Defines the most important heading < h1> to < /h6> defines the least important heading.

Example

Note:Browsers automatically add some white space (a margin)before and after a heading.

Heading are important

search engines use the headings to index the structure and content of your web pages.

User often skim a page by its headings. it is improtant to use headings to show the document struture.

< h1> headings should be used for main headings it fllowed by < h2> headings then the less important < h3> and so on

Note: Use HTML headings for headings only. dont use headings to make text BIG or bold


Bigger Headings

Each HTML heading has a default size. However, you can specify the size for any heading with the style attribute using the CSS fotn-size property.

Example