More on all this later, just getting the topic started.
Title: Re: Semantic Value of HTML Elements
Post by: emanuele on May 22, 2017, 07:05:30 pm
Since I was the one that added some of those html5 tags, let me share my thoughts. First: I based my decisions on readings on the internet (including relevant parts of the specifications, but not so deeply), that led me to the conclusion not even those that wrote the specification had very clear in mind what they wanted to do with those tags (i.e. they are so generic they can be used in almost any way and can be argued in almost any way they are used). Second: I used section mostly randomly, but usually with the idea that it delimits "groups" of related content (e.g. the body has a section that includes the header (with the logo, the main menu, etc.), another that contains the main part of the page (the posts), and a footer) Third: I may have used nav way too much.
Title: Re: Semantic Value of HTML Elements
Post by: Atlas on May 22, 2017, 07:18:23 pm
Quote from: emanuele – Since I was the one that added some of those html5 tags, let me share my thoughts. First: I based my decisions on readings on the internet (including relevant parts of the specifications, but not so deeply), that led me to the conclusion not even those that wrote the specification had very clear in mind what they wanted to do with those tags (i.e. they are so generic they can be used in almost any way and can be argued in almost any way they are used). Second: I used section mostly randomly, but usually with the idea that it delimits "groups" of related content (e.g. the body has a section that includes the header (with the logo, the main menu, etc.), another that contains the main part of the page (the posts), and a footer) Third: I may have used nav way too much.
I haven't found any html5 elements in the default template for my version (current, i think?), although i have viewed-source here and seen use of <article>. As for doubts on <nav> (again, not in my templates), it's okay to have more than one if that's your concern.
Yes on what you said about <section>, btw.
second thought, i'm unsure if <nav> is in my templates.
Also, i realize using <p> in a forum setting is kinda hard since you don't know what the user will post, but perhaps a check to see if there are any block level elements in the post and if not use a <p>.
PS , I intend to give you guys my templates when i'm finished editing.
Title: Re: Semantic Value of HTML Elements
Post by: live627 on May 22, 2017, 08:31:20 pm
QuoteI haven't found any html5 elements in the default template for my version
Might be because you're looking at v1.0..x, while the new markup is in v1.1-dev...
Quote a section that includes the header (with the logo, the main menu, etc.),
the header tag
also, the quick search is inside the aside tag but doesn't relate to the page's main content. Is a bug?
(I use MDN to figure markup out, plus my JS issues)
Title: Re: Semantic Value of HTML Elements
Post by: Atlas on May 22, 2017, 09:44:24 pm
Speaking of <aside>, i changed the News container to an <aside>.
Re: v1.0..x, haven't check but that's going to suck considering my edits,, i assumed i had the newest version since my install, like 2 weeks ago, but hmm, i did install from my CPanel.
Title: Re: Semantic Value of HTML Elements
Post by: live627 on May 22, 2017, 10:00:35 pm
Yeah, 1.1 is in release candidacy
you can use unified diffs to compare your changes vs the release. I did that when I forgot to track my edits.
Title: Re: Semantic Value of HTML Elements
Post by: Frenzie on May 23, 2017, 01:40:15 pm
+1 on time
Quote<article> an article is a piece of data which can be understood solely by itself, so, a comment wouldn't fit this use since it relies on another piece of data being understood.
Although the spec says that, it also contradicts itself beyond the general degree in which articles interact with and respond to each other by explicitly mentioning forum posts and comments.
Quote from: https://www.w3.org/TR/html5/sections.html#the-article-elementThe article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.
So basically it's more that an article isn't a single section or paragraph of a comment.
It then continues by saying:
QuoteWhen article elements are nested, the inner article elements represent articles that are in principle related to the contents of the outer article. For instance, a blog entry on a site that accepts user-submitted comments could represent the comments as article elements nested within the article element for the blog entry.
So… forum posts nested under the OP?
Title: Re: Semantic Value of HTML Elements
Post by: emanuele on May 23, 2017, 04:08:09 pm
Technically, forums are a pain in any case. Topics are spread across multiple pages, and one could argue that each page may not stand by itself, but would need at least all the previous posts to understand the context.
Title: Re: Semantic Value of HTML Elements
Post by: Atlas on May 23, 2017, 04:45:28 pm
Re: Article I believe the confusion about <article> is in the association with "news article". I interpret it as to mean an article, as in, "an article of clothing".
Title: Re: Semantic Value of HTML Elements
Post by: Frenzie on May 23, 2017, 05:04:14 pm
Quote from: emanuele – Technically, forums are a pain in any case. Topics are spread across multiple pages, and one could argue that each page may not stand by itself, but would need at least all the previous posts to understand the context.
That's no different for anything slightly longer, including the HTML spec (ever tried to load the single-page view? Lol).
Btw, this comment box is super slow on my phone?
Title: Re: Semantic Value of HTML Elements
Post by: Joshua Dickerson on May 24, 2017, 01:39:58 am
Quote from: Atlas – PS , I intend to give you guys my templates when i'm finished editing.
Create a Pull Request
Title: Re: Semantic Value of HTML Elements
Post by: emanuele on May 24, 2017, 07:00:43 am