Do Not Use Heading Levels for Visual Purposes
Semantic markup should reflect the structural hierarchy of content, and visual styles should be applied separately. Using heading tags purely for visual effects can lead to semantic confusion and accessibility issues.
When text serves the role of a heading, either visually or structurally, it should be marked up using appropriate heading tags (<h1>, <h2>, etc.). This ensures that the document structure is semantically meaningful, making it accessible to both users and assistive technologies.