DEV Community

Discussion on: 30 Web Developer Interview Questions (With Answers)

Collapse
 
_dsasko profile image
Denis Šaško

I agree with what you said, but the word "subtitle" is what bugs me. Headings should use the h1-h6 tags, yet subheadings (or subtitles) should be put in a regular p tags. So imho either the text inside your h2 is wrong or the h2 itself is.

Thread Thread
 
gedalyakrycer profile image
Gedalya Krycer

Ah, that makes sense now. I can see how "subhead/subtitle" could communicate something different.

My intention was for a "level 2 headline/title" vs text that follows a headline/title. I agree that in the latter case a <p> tag would be better served. :)