samharid samharid
3 months ago
Samharidcountry asked

Why should I not use heading tags just to make text bold or big?

Abhay Jajodia
Expert
last month
Abhay Jajodia answered

Hi samharid,

Because headings like

to
are meant to show the structure of the page, not just styling. They tell the browser and screen readers what the main topics are.

If you use headings only to make text look big, the page structure becomes confusing. A better way is to keep normal text and make it bold or bigger using CSS.

Example:

This is normal text, just styled.

.big {
  font-size: 24px;
  font-weight: bold;
}

If you have more questions, I am here to help 😊

HTML
This question was asked as part of the Learn HTML course.