Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h1-h6 should not be used for sizing, only semantics #97

Open
anselmbradford opened this issue May 2, 2014 · 3 comments
Open

h1-h6 should not be used for sizing, only semantics #97

anselmbradford opened this issue May 2, 2014 · 3 comments

Comments

@anselmbradford
Copy link
Member

There are several instances where h1-h6 elements are used for setting the size of titles, which is improper use of these elements. They should be used to set heading levels semantically within the header of sectioning content (section, article, etc.). The size of the heading within a section should be the responsibility of CSS exclusively. All headings that stand alone should be h1. If there is a single subheading it should be h2, a second subheading it should be h3 and so forth.

Example of improper semantic use here -->
https://github.com/codeforamerica/trails-mobile/blob/master/www/index.html#L59

@anselmbradford
Copy link
Member Author

This is nitty-gritty HTML semantics, but just noting it.

@alanjosephwilliams
Copy link
Member

I love you for it

@alanjosephwilliams
Copy link
Member

Thanks for calling me out. I will make this a priority during my next dive in.

I would encourage you to continue documenting poor practices with rigor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants