CHAPTER 1
The quick brown fox jumps over the lazy dog.
articleは、記事を表すHTML要素である。記事とは、自己完結した構成物を指す。
要素 | 説明 |
---|---|
address | 連絡先 |
article | 独立した記事 |
aside | コンテンツとは無関係なもの(広告等) |
div | 意味的ではなく視覚的な区切り |
figure | 図とキャプション |
footer | フッター |
header | ヘッダー |
hgroup | 見出し、サブタイトル及びリード文 |
main | メインコンテンツ |
nav | ナビゲーション |
section | 意味的な区切り |
HTML要素のタグ名、属性名および属性値は、大文字と小文字のどちらでもよい。article 要素の終了タグは省略できない。
<article>
<!-- flow content -->
</article>
<ARTICLE>
<!-- flow content -->
</ARTICLE>
article 要素の開始タグと終了タグの間にフロー・コンテンツを含めることができる。
以下に示す属性を article 要素に指定できる。
<article class="container mt-2">
<!-- flow content -->
</article>
itemtype | 説明 |
---|---|
//schema.org/3DModel | 3Dコンテンツ |
//schema.org/ArchiveComponent | アーカイブ・コンテンツ |
//schema.org/Article | 記事 |
//schema.org/Atlas | 図表 |
//schema.org/Book | 本 |
//schema.org/Blog | ブログ |
//schema.org/Game | ゲーム |
//schema.org/Map | 地図 |
//schema.org/MusicComposition | 楽曲 |
//schema.org/Movie | 映画 |
//schema.org/Painting | 絵 |
//schema.org/Photograph | 写真 |
//schema.org/Question | 質問 |
//schema.org/Quotation | 引用 |
//schema.org/Review | レビュー(評価) |
//schema.org/Thesis | 論文 |
<article itemscope itemtype="http://schema.org/Question">
<h1>articleタグにはどんな属性を指定できますか?</h1>
</article>
<article style="padding-top: 1rem; padding-bottom: 1rem;">
<!-- flow content -->
</article>
Google検索が記事を正確に認識するために、記事を構造化データでマークアップすることが望ましい。
<article style="border-right: medium solid red">
<h3>CHAPTER 1</h3>
<p>The quick brown fox jumps over the lazy dog.</p>
</article>
The quick brown fox jumps over the lazy dog.
Web Hypertext Application Technology Working Group (2023) Sections HTML Living Standard