-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Project: HTML best practices #115
Comments
See whatwg/html#7829 |
@estelle the HTML guidelines are here https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Writing_style_guide/Code_style_guide/HTML if you wanted to update to reflect your changes above 👍 |
This comment was marked as outdated.
This comment was marked as outdated.
It will be very interesting to turn this rule on once done. That way, no PR could be merged with a missing alt attribute. That won't guarantee the quality of the attribute's value, but at least its existence. |
Are you interested in PRs for
I can submit some. Found by eslint and html plugin. :) |
These will be fixed automatically by Prettier (soon I hope), so that's not useful (as we will have to run Prettier anyway)
I would gladly review such PRs (with 50-100 entries each) |
Thanks for filing this OWD project proposal! Can we clarify the scope here? Is this about updating https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Writing_style_guide/Code_style_guide/HTML ? Or about fixing all of MDN with regards to these best practices? (seems too large for a single project) Or is the idea to invest into tooling to make sure HTML best practices are enforced? If so, is there a plan for this work? |
In yesterday's planning call we agreed that there are too many things at once in this project proposal. It would be good to:
Assigning @estelle to prepare these two new HTML best practice project proposals. |
Is this issue still open? I want to try and help solve it. |
@estelle Is there still work left here? |
Yes, Only the checked topics are done. The ones without checkmarks have not been confirmed. On the last task: I do not know how to include a caption on tables in markdown. |
I’ll try it @estelle |
It's all of MDN, starting with It's a large job, but manageable in pieces. I recommend picking one sub-task, such as It is best, when starting out, to do smallish PRs. But, you don't want to do a PR for every change either, because then it takes longer to do the "admin" for the PR then actually editing the code. It's a balance. For example, if there are more that 20 files edited, perhaps do a PR for the CSS directory and another for the HTML directory. Hope that helps, and thank you for helping! |
Hi @estelle! Here's my PRfor the caption issue. I only did one for now. Let me know if I'm one the right track. 😄 |
I think I made an error in this PR. I'm not quite sure what "Markdownlint (PR files)" means. Can someone help? |
I need assistance with this PR. It keeps saying "Markdownlint (PR files)" in spite of my formatting attempts. |
Made the change @teoli2003 |
Hey @estelle. I've noticed that only 29 of the 63 tasks are completed, so I think it would be best to reopen this issue. |
All HTML examples should follow best practices.
Media
alt
attributeheight
andwidth
(newer best practice)Form elements
No form control should exist without an associated label
Every form control should have an
id
(except in the rare case where implicit labels are used)All
input
elements should include aname
(and value if needed)All checkboxes, radio buttons, and hidden input types should also include a
value
<fieldset>
sHTML docs should be standards compliant
html
element should include alang
attribute.charset
title
viewport
metaType attribute is NOT needed
Required attributes, elements, and content
abbr
has atitle
attribute unless the abbreviation is preceded or followed by the definition.<table>
should have a table<caption>
Deprecated content
i
andb
should be converted toem
orstrong
, depending on the context #139acronym
is no longer used.hgroup
is back. If no, remove it from all but the essential occurrencesThe text was updated successfully, but these errors were encountered: