详解HTML5中div和section以及article的区别

2020-04-21 07:52:11易采站长站整理

    <p>…</p>    
    <footer>  
        <a href="?comments=1">Show comments…</a>  
    </footer>    
</article>  
  
<article>     
    <header>    
        <h1>The Very First Rule of Life</h1>  
        <p><time pubdate datetime="2009-10-09T14:28-08:00"></time></p>    
    </header>  
    <p>If there’s a microphone anywhere near you, assume it’s hot and sending whatever you’re saying to the world. Seriously.</p>    
    <p>…</p>    
    <section>  
        <h1>Comments</h1>    
        <article>  
            <footer>  
                <p>Posted by: George Washington</p>  
                <p><time pubdate datetime="2009-10-10T19:10-08:00"></time></p>    
            </footer>  
            <p>Yeah! Especially when talking about your lobbyist friends!</p>    
        </article>    
          <article>  
            <footer>    
                <p>Posted by: George Hammond</p>  
                <p><time pubdate datetime="2009-10-10T19:15-08:00"></time></p>  
            </footer>