-
Notifications
You must be signed in to change notification settings - Fork 515
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
Article element in a wrong implementation #2614
Comments
Why not? As I read the spec:
...it seems totally plausible for a page to include "today's weather" as an "independent item of content". |
If you share this article "Weather forecast for Seattle" with other website it will give a meaning But if you share just this info (03 March 2018, Rain.) out of its context does it give a meaning! |
It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct. |
I guess if it is appearing on a Seattle local news site the context would be pretty obvious, as it is here for example: https://komonews.com/news/local, or https://www.nbcnewyork.com/news/local/. It's fair to say, though, that it could be improved. One of the challenges is that it wants to show that articles can be nested, but we only have a small amount of space to show markup, so we want to keep the markup as concise as possible. The spec has an example with a blog post and comments, where the comments are articles, but it would be hard to make the markup concise enough for one of these examples. I've transferred this to the interactive-examples repo, and maybe someone will have a better suggestion there. |
Maybe adding a comment that reads something like |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article
What specific section or headline is this issue about?
Try it
What information was incorrect, unhelpful, or incomplete?
each day’s forecast (
<article class="day-forecast">
) doesn’t make sense on its own and is too dependent on the main forecast (<article class="forecast">
), then it might not be appropriate to use the<article>
tag for the individual day forecasts.Instead, you can put the name of the city in each sub article but this lead to lots of repetition, so you could consider using the
<section>
tag for each day’s forecast, as it is used to group related content. If the individual forecasts are not intended to stand alone and are part of a larger whole (the main forecast), then the<section>
tag would be more appropriate.What did you expect to see?
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/html/element/article
The text was updated successfully, but these errors were encountered: