Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
120 views
in Information Technology by (50.2k points)

Explain Heading tag in HTML.

Please log in or register to answer this question.

1 Answer

+1 vote
by (46.8k points)
edited by

<Heading tags>

Heading tag is used to display the heading or the main topic on the web page. This tag varies from H1 to H6. This is a container tag. The heading tag

<H1> shows the heading with the largest font size. As you increase the number in the heading tag, the font size goes down as shown in the example given below :

<H1> This text is in largest font i.e. H1 font </H1>

<H2> This text is in largest font i.e. H2 font</H2>

<H3>This text is in medium large font i.e. H3 font</H3>

<H4>This text is in medium small font i.e. H4 font</H4>

<H5>This text is in smaller font i.e. H5 fon</H5>

<H6>This text is in smallest font i.e. H6 font</H6>

The above code produces the following output :

heading tags

We can see from the output that the size of the font keeps decreasing as one increases the number in the heading tag.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...