HTTP/2 200
content-type: text/html
x-guploader-uploadid: AAwnv3Lnp2EybVjiQ4BjiDvuRHZj_yBKDYib0D5PtjvAN67fF7FioDmWWPlDyoyRsM82RRo8
cache-control: public, max-age=3600
expires: Fri, 10 Oct 2025 05:21:13 GMT
last-modified: Fri, 10 Oct 2025 01:11:57 GMT
etag: W/"6275e8f205b3dc321c2ecc4ca701234b"
x-goog-generation: 1760058717046130
x-goog-metageneration: 1
x-goog-stored-content-encoding: identity
x-goog-stored-content-length: 199854
x-goog-meta-goog-reserved-file-mtime: 1760056900
x-goog-hash: crc32c=cFEoOA==, md5=YnXo8gWz3DIcLsxMpwEjSw==
x-goog-storage-class: STANDARD
accept-ranges: none
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
alt-svc: clear
referrer-policy: strict-origin-when-cross-origin
x-content-type-options: nosniff
strict-transport-security: max-age=63072000
content-security-policy: default-src 'self'; script-src 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; script-src-elem 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; style-src 'report-sample' 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; connect-src 'self' developer.allizom.org bcd.developer.allizom.org bcd.developer.mozilla.org updates.developer.allizom.org updates.developer.mozilla.org https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com https://incoming.telemetry.mozilla.org https://observatory-api.mdn.allizom.net https://observatory-api.mdn.mozilla.net https://api.github.com/search/issues stats.g.doubleclick.net https://api.stripe.com; font-src 'self'; frame-src 'self' interactive-examples.mdn.mozilla.net interactive-examples.mdn.allizom.net mdn.github.io live-samples.mdn.mozilla.net live-samples.mdn.allizom.net *.mdnplay.dev *.mdnyalp.dev *.play.test.mdn.allizom.net https://v2.scrimba.com https://scrimba.com jsfiddle.net www.youtube-nocookie.com codepen.io survey.alchemer.com https://js.stripe.com; img-src 'self' data: *.githubusercontent.com *.googleusercontent.com *.gravatar.com mozillausercontent.com firefoxusercontent.com profile.stage.mozaws.net profile.accounts.firefox.com developer.mozilla.org mdn.dev interactive-examples.mdn.mozilla.net interactive-examples.mdn.allizom.net wikipedia.org upload.wikimedia.org https://mdn.github.io/shared-assets/ https://mdn.dev/ https://*.google-analytics.com https://*.googletagmanager.com www.gstatic.com; manifest-src 'self'; media-src 'self' archive.org videos.cdn.mozilla.net https://mdn.github.io/shared-assets/; child-src 'self'; worker-src 'self';
x-frame-options: DENY
origin-trial: AxVILwizhbMjxFeHOn1P3R8niO1RJY/smaK4B4d1rLzc1gTaxtXMSaTi+FoigYgCw40uFRDwFcEAeqDR+vVLOW4AAABfeyJvcmlnaW4iOiJodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZyIsImZlYXR1cmUiOiJQcml2YXRlQXR0cmlidXRpb25WMiIsImV4cGlyeSI6MTc0MjA3OTYwMH0=
x-cloud-trace-context: 1d0b6b18572533963265c5e7ea3f2156
date: Fri, 10 Oct 2025 04:21:13 GMT
server: Google Frontend
via: 1.1 google
vary: Accept-Encoding
content-encoding: gzip
x-cache: miss
構文とよくあるタスクの HTML 早見表 - HTML | MDN
「要素」とは、ウェブページを構成する単一の部品です。ある要素は大きく、コンテナーのように小さな要素を格納します。既定では、「インライン要素」はウェブページの中で隣り合って現れます。インライン要素は、ページ内で必要な分だけ幅を取り、文中の単語や本が並んでいるように、横方向に並んでいます。インライン要素はすべて <body>
要素の中に所有することができます。
インライン要素: 用途と例
用途
要素
例
リンク
<a>
<a href="https://example.org">
A link to example.org</a>.
画像
<img>
<img src="beast.png" width="50" />
インラインコンテナー
<span>
Used to group elements: for example,
to <span style="color:blue">style
them</span>.
テキストの強調
<em>
イタリックテキスト
<i>
Mark a phrase in <i>italics</i>.
太字テキスト
<b>
Bold <b>a word or phrase</b>.
重要なテキスト
<strong>
<strong>I'm important!</strong>
テキストの強調表示
<mark>
取り消し線のテキスト
<s>
下付き文字
<sub>
小さなテキスト
<small>
Used to represent the <small>small
print </small>of a document.
連絡先
<address>
<address>Main street 67</address>
テキスト引用
<cite>
For more monsters,
see <cite>The Monster Book of Monsters</cite>.
上付き文字
<sup>
インライン引用
<q>
改行
<br>
改行可能な位置
<wbr>
<div style="width: 200px">
Llanfair<wbr>pwllgwyngyll<wbr>gogerychwyrndrobwllllantysiliogogogoch.
</div>
日時
<time>
Used to format the date. For example:
<time datetime="2020-05-24">
published on 23-05-2020</time>.
コード形式
<code>
This text is in normal format,
but <code>this text is in code
format</code>.
音声
<audio>
<audio controls>
<source src="/shared-assets/audio/t-rex-roar.mp3" type="audio/mpeg">
</audio>
動画
<video>
<video controls width="250"
src="https://archive.org/download/ElephantsDream/ed_hd.ogv" >
<a href="https://archive.org/download/ElephantsDream/ed_hd.ogv">Download OGV video</a>
</video>
一方で「ブロック要素」は、ウェブページの横幅いっぱいまでを占めます。ブロック要素は、ウェブページの幅いっぱいに配置され、横に並ぶわけではありません。文章の段落や積み木のように積み重ねられます。
メモ:
この早見表は、固有の構造を表したり、特別な意味づけをするいくつかの要素に限定しているため、div
要素は意図的に含まれていません。div
要素は何らかの構造を表すものではなく、特別な意味づけを持っているわけでもありません。
用途
要素
例
単純な段落
<p>
<p>I'm a paragraph</p>
<p>I'm another paragraph</p>
広い引用
<blockquote>
They said:
<blockquote>The blockquote element indicates
an extended quotation.</blockquote>
追加情報
<details>
<details>
<summary>HTML Cheat Sheet</summary>
<p>Inline elements</p>
<p>Block elements</p>
</details>
順序なしリスト
<ul>
<ul>
<li>I'm an item</li>
<li>I'm another item</li>
</ul>
順序付きリスト
<ol>
<ol>
<li>I'm the first item</li>
<li>I'm the second item</li>
</ol>
定義リスト
<dl>
<dl>
<dt>A Term</dt>
<dd>Definition of a term</dd>
<dt>Another Term</dt>
<dd>Definition of another term</dd>
</dl>
水平区切り線
<hr>
テキストの見出し
<h1>-<h6>
<h1> This is Heading 1 </h1>
<h2> This is Heading 2 </h2>
<h3> This is Heading 3 </h3>
<h4> This is Heading 4 </h4>
<h5> This is Heading 5 </h5>
<h6> This is Heading 6 </h6>