ウェブ学のすすめ

Study of Web Design & Programing

より強調したい内容を示す「strong要素」|HTML5課題03

課題

HTML5課題03】

「注意事項」の部分を、相対的に重要性な高いレベルとして記述しなさい。

引用元基本構造とテキストの論理構造 - Webデザインの勉強|忘筌

解答

プレビュー

スマートフォンの方はこちらからプレビューできます。
より強調したい内容を示す「strong要素」

コード
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>より強調したい内容を示す「strong要素」</title>
<link rel="stylesheet" href="#">
<script src="#"></script>
<!--[if lte IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lte IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<style>
  article, aside, dialog, figure, footer, header,
  hgroup, menu, nav, section { display: block; }
</style>
</head>
<body>
<h1>注意、Attentionを表示</h1>
<p><strong>注意事項</strong><br>
誤って飲み込むおそれがありますので、<strong>お子様の手の届かない所で保管</strong>してください。</p>
</body>
</html>

ポイント

  • em要素よりもより強く強調を示したい部分にstrong要素を使う