Design comparison
Solution retrospective
Any suggestions on how to improve semantic html or the css?
Community feedback
- @nicolaee2Posted 3 months ago
Hello! It's generally better to avoid changing the font size of <h1>-<h6> elements since they're meant to represent the document's structure. If you're just aiming for a specific style, consider using a <p> element with custom styling instead
1@aguscorvoPosted 3 months ago@nicolaee2 Thanks for your suggestion! However, I don’t think it’s bad practice to change the font size of heading elements, as long as it remains consistent with the rest of the headings in the project. If there’s a conflict with other h1 tags in a project, I would use a class instead of styling the h1 directly. However, in a larger project, it might be better to use a design system so that headings maintain consistent styles. Additionally, I believe it’s important to use headings for semantic purposes.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord