Is it okay for a h2 element to have less font-size than h3?

Hello everyone, I’m currently on this session and I just noticed that the h2 element has less font-size than the h3 one. Is it a good practice to do this?
It seems a bit confusing at first glance. Plus, wouldn’t this defeat the purpose of using h1, h2, h3…

Thanks!

Fontsize is simply a styling choice, you can make the page however you want. Though the <h1> - <h6> elements have default sizes, their real purpose is for SEO. Typically they are used to indicate the most important subjects on a web page.

3 Likes