<em>文字列</em>‥‥‥強調する
<strong>文字列</strong>‥‥‥さらに強調する
<strong>文字列</strong>‥‥‥さらに強調する
要素名 | 属性名 | 説明 | 非推奨 | 必須属性 |
---|---|---|---|---|
em strong | 強調 より強い強調 | |||
class | クラス名 | |||
id | ID名 | |||
title | 補足情報 | |||
style | スタイルシート | |||
lang | 言語コード | |||
dir | 文字表記の方向 |
各要素で囲まれた範囲の文字列を強調して表示します。em要素は普通の強調を、strong要素はより強い強調で表示します。
プラウザでは、em要素はイタリックで、strong要素は太字で表示されます。
Sample
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="ja">
<head>
<base href="http://www.abcd.com/efg/index.html">
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="author" content="制作者名">
<meta name="description" content="内容の紹介">
<meta name="keywords" content="キーワード1,キーワード2,キーワード3,・・・">
<link rel="start" href="start.html">
<link rel="index" href="index.html">
<title>文字列を強調表示する。</title>
</head>
<body text="black" bgcolor="#FFF8DC">
<p><em>日光東照宮</em>は栃木県日光市にある神社 (em要素で、強調して表示しています)。</p>
<p><strong>日光東照宮</strong>は栃木県日光市にある神社 (strong要素で、より強調して表示しています)。</p>
</body>
</html>
<html lang="ja">
<head>
<base href="http://www.abcd.com/efg/index.html">
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="author" content="制作者名">
<meta name="description" content="内容の紹介">
<meta name="keywords" content="キーワード1,キーワード2,キーワード3,・・・">
<link rel="start" href="start.html">
<link rel="index" href="index.html">
<title>文字列を強調表示する。</title>
</head>
<body text="black" bgcolor="#FFF8DC">
<p><em>日光東照宮</em>は栃木県日光市にある神社 (em要素で、強調して表示しています)。</p>
<p><strong>日光東照宮</strong>は栃木県日光市にある神社 (strong要素で、より強調して表示しています)。</p>
</body>
</html>
Internet Explorer8での表示例
