下面我们给大家介绍一下html5的article元素使用方法吧!希望大家可以在这里学习!
Article元素(
)故名思议,可以表示论坛帖子、杂志或新闻文章、博客、用户提交的评论、交互式组件,或者其他独立的内容项目。它的主要语义为表示自己是一个独立的内容结构。每一个
元素内部结构都应该是相似的,比如都应该包含一个头标题(h1-h6元素)等。
元素用法:
- <article class="film_review">
- <header>
- <h2>侏罗纪公园</h2>
- </header>
- <section class="main_review">
- <p>Dinos were great!</p>
- </section>
- <section class="user_reviews">
- <article class="user_review">
- <p>Way too scary for me.</p>
- <footer>
- <p>
- Posted on <time datetime="2015-05-16 19:00">May 16</time> by Lisa.
- </p>
- </footer>
- </article>
- <article class="user_review">
- <p>I agree, dinos are my favorite.</p>
-