Comments on: The article element https://stevefaulkner.github.io/html5doctored/the-article-element/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: John Perry https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-2079341 Tue, 12 Jan 2016 19:53:52 +0000 http://html5doctor.com/?p=1364#comment-2079341 What would be the best way to markup a FAQ page?

Would you do this:

<section>
  <article>
    <h2>This is a question</h2>
    <p>This is the answer</h2>
  </article>
  <article>
    <h2>This is a question</h2>
  <p>This is the answer</h2>
  </article>
</section>

or would you do:

<article>
  <section>
    <h2>This is a question</h2>
    <p>This is the answer</h2>
  </section>
  <section>
    <h2>This is a question</h2>
    <p>This is the answer</h2>
  </section>
</article>

]]>
By: Steve Faulkner https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-1963722 Sat, 06 Jun 2015 20:07:06 +0000 http://html5doctor.com/?p=1364#comment-1963722 The rules are defined in the Tag omission in text/html section of the HTML5 spec and included in the first section of each element definition. So for example, for the article element “Neither tag is omissible”, which means you must have a start and end tag.

]]>
By: Jackie https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-1962826 Sat, 06 Jun 2015 10:09:11 +0000 http://html5doctor.com/?p=1364#comment-1962826 Quick question. I have a developer working on a site for me and i noticed that although they have closed tags they don’t have an opening tag.

When I questioned them the reply was that this was html5!

My question was how come you are closing a tag that’s not open in the first place.

could someone please enlighten me on this.

]]>
By: Elvin https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-665625 Thu, 23 Oct 2014 01:18:37 +0000 http://html5doctor.com/?p=1364#comment-665625 Hello.
I have two doubts I can not solve my self and the information on web is rather confusing since there’s a lot of situations, perspectives and no enough examples.

1 – What would you use to contain a “Recent Content” block of a blog? This “Recent Content” would wave a table with 25 “a” tags linking to the most recent blog posts. Div, Section or Aside?

2 – Would be possible to put publishing date in the “footer” of the “article”, along with author, comments (link to comment section) and categories? Or would all this “meta” information be properly inside a “aside”?

Thank you for all html5doctor offers us.
Elvin

]]>
By: Kay https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-44228 Fri, 10 Jan 2014 14:49:50 +0000 http://html5doctor.com/?p=1364#comment-44228 I just love this article!
Read it so many times and it becomes more and more clear to me, what’s the real deal with <article> and <section> :)

]]>
By: Mark https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-39745 Thu, 14 Nov 2013 11:29:40 +0000 http://html5doctor.com/?p=1364#comment-39745 Dear Jeff,

I think I get what you are wishing for: and intelligently organized semantic.

Focusing back in the direction of W3 now, we are all slipping out on this one. Two (2) actors at W3 earlier this year complained that semantic was unattended:

article ( section ( subsection ) ) real world requirement

There is no subsection element. W3 comeback later this year but now tucked into all the major browsers:

article ( section ( article ) ) ? wtf ?

On thee olde brite side, in plain language: div was bugging out some of the advanced CSS3 features and script. Snuggling article into the realm of div wahteverism cleaned up the bugginess.

Conclusion is this. Web publishing is very newbie and highly dubiously contrived (Chris Coyer’esque there). Check out the Wiki’s info on publishing semantic and it is obvious that an art dating back to Mayan and Egyptian times 5,000 years ago is sorely understated, cum digitalis.

But we all share your enthusiasm, Jeff. Oh, to simply lay out logical tag blocks and sweep our content where it goes! Not in this world. Give us time… and then some.

]]>
By: Jeff Day https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-39734 Thu, 14 Nov 2013 10:10:29 +0000 http://html5doctor.com/?p=1364#comment-39734 Wow, I really wish we could do this:


<article id="myPost">
Self contained article goes here.
</article>

<comment for="myPost">
Comment relating to myPost goes here. Asides should also be able to work this way with a for attribute.
</comment>

<comment for="myPost">
How could Hixie have not landed on including a comment tag when the web is so social?
<comment>

]]>
By: Sod https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-38716 Sun, 27 Oct 2013 11:21:44 +0000 http://html5doctor.com/?p=1364#comment-38716 It was mentioned earlier, but i wonder if using article for products in an ecommerce site is sensible?

Personally I don’t see an issue as it seems the most logical choice for now.. the comments would seem to suggest the same although it was not exactly spelled out which is why I ask.

I’m also using schema.org microdata and i’m feeling like i’ve achieved semantic sanity.

Is it likely a <product> element would ever be introduced or is that just crazy speak?

thoughts?

]]>
By: Mark https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-38527 Tue, 01 Oct 2013 22:35:41 +0000 http://html5doctor.com/?p=1364#comment-38527 HTML5 Doctor wrote, of article: “An independent piece of content… key point here is that the content has to make sense independent of its context, i.e. when all the surrounding content is stripped away.”

I think you miss the point here. Like all block elements, article is not there to strip away content, but to hold content. What W3 means by “makes sense” is that the physical tag’s logic is to be maintained, and further, that bland one-lunge div’ism is strictly unwelcomed accomplishment for our distinguished new team leader (should the doctor ever be so-inclined as to develop an article, yet)… Perhaps our doctor needs a cup of tea in a common sip-stop. Comparing structural behaviors of div and article and section in relation to each other is fascinating, making for great tit-tat! Lovers only, please. No strippers welcome! Un-lame your prognosis, today.

]]>
By: Mikkel J https://stevefaulkner.github.io/html5doctored/the-article-element/#comment-35598 Fri, 28 Jun 2013 14:25:55 +0000 http://html5doctor.com/?p=1364#comment-35598 Great walkthrough, just what I needed. Thank you. :-)

]]>