-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
docs(hgroup): adds related note from a different page #30856
Conversation
I was reading through this page: https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories when I came across this note: Note: The <hgroup> element is not recommended as it does not work properly with assistive technologies. It was removed from the W3C HTML specification prior to HTML 5 being finalized, but is still part of the WHATWG specification and is at least partially supported by most browsers. I believe it's important to include this note in <hgroup>'s page because as it stands right now it might mislead developers into using it, thinking that it has no drawbacks. Someone might use <hgroup> instead of a <div> due to preference, so they can use it in a css selector or to create a reusable pre-styled container and unknowingly make their website less acessible.
Preview URLs (comment last updated: 2023-12-09 03:32:05) |
Following `<optgroup>`'s example, I think it would be better for such an important note to be at the top
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P.S. Congratulations on your first merged MDN content PR. Welcome to the team!
Thanks a lot. Glad to be here! |
* docs(hgroup): adds related note from a different page I was reading through this page: https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories when I came across this note: Note: The <hgroup> element is not recommended as it does not work properly with assistive technologies. It was removed from the W3C HTML specification prior to HTML 5 being finalized, but is still part of the WHATWG specification and is at least partially supported by most browsers. I believe it's important to include this note in <hgroup>'s page because as it stands right now it might mislead developers into using it, thinking that it has no drawbacks. Someone might use <hgroup> instead of a <div> due to preference, so they can use it in a css selector or to create a reusable pre-styled container and unknowingly make their website less acessible. * refactor(hgroup): moves note to the top Following `<optgroup>`'s example, I think it would be better for such an important note to be at the top * refactor(hgroup): removes self-referencing anchor tag * Update files/en-us/web/html/element/hgroup/index.md --------- Co-authored-by: Estelle Weyl <[email protected]>
)" This reverts commit fbb5b30.
)" This reverts commit fbb5b30.
Description
Adds note about
<hgroup>
previously only found on the Content categories page to<hgroup>
's pageMotivation
I believe it's important to include this note in
<hgroup>
's page because as it stands right now it might mislead developers into using it, thinking that it has no drawbacks.Someone might use
<hgroup>
instead of a<div>
due to preference, so they can use it in a css selector or to create a reusable pre-styled container and unknowingly make their website less acessible.