Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>  
like image 349
Artem Svirskyi Avatar asked Oct 05 '22 00:10

Artem Svirskyi


1 Answers

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.

like image 149
cliffbarnes Avatar answered Oct 18 '22 03:10

cliffbarnes