How do you code headings in HTML?

1. Heading 1
2. Heading 2
3. Heading 6

Editorial / Best Answer

Answered by: himanshu

  • Nov 13th, 2006


<h1>Heading 1</h1>

<h2> Heading 2</h2>

and so on

Showing Answers 1 - 0 of 0 Answers

himanshu

  • Nov 13th, 2006
 

<h1>Heading 1</h1>

<h2> Heading 2</h2>

and so on

Sujatars

  • Jul 30th, 2007
 

Headings are defined with <h1> to <h6>tags.<h1> defines the largest heading and <h6> defines the smallest heading.
<h1> This is a largest heading</h1>
.
.
.
.
<h6> This is a smallest heading</h6>

As default, we h1, h2 to h6 Html tag like

….


….


….


To
….
in descending order.


But We can define the Heading tag in CSS as per user or designer taste.
Like, font size, color, font family, margin etc.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions