Search code examples
htmlsemantic-markup

Article>p+time - too short for article or not?


Im writing a markup for :
enter image description here

Would it be correct to present every tweet like an article or its too short and I should use ul or something else?

<section>
    <h1>Recent tweets</h1>
    <article>
        <p>I'm looking...</p>
        <time>3 day ago</time>
    </article>
    <article>
        <p>@mediatemple will ...</p>
        <time>6 days ago</time>
    </article>
    <article>
        <p>Corpora Business</p>
        <time>10 days ago</time>
    </article>
</section>  

Solution

  • It really doesn't matter. The WHATWG is still pretty vague about it. My issue is with the h1. Is this the only thing on the page? Is the page title also 'Recent Tweets'? If so you're fine. But I get the sense this is like a plug-in on a larger page. If so, consider using a lower level tag, for semantic/accessibility reasons.