08XX.インライン要素


<code>~</code> 
(終了タグあり)

※11サンプルコード <pre><code> <html> <body> 本文 </body> </html> </code></pre>

11サンプルコード

	
	
     本文
	
	


<pre><code>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"><html dir="ltr">
<head>

<meta http-equiv="Content-Style-Type" content="text/css" />
<title>№6.汎用属性・汎用属性、Tag Element、HTML5・ページ作成の基本及び要素と属性</title>
<style type="text/css">
body {
  	margin: 0;
  	padding: 30px;
  	font-size: 15px;
	background-image: url(06test_img/back.png)
}

</style>
</head>

<body>
<h1>0606.dir属性 </h1>
<p>dir属性は、UNICODEで文字表記の方向が設定されていない場合、文字表記の方向を設定します。 *style属性は、XHTML Basicでは使用できません。</p>
<pre><code>
<span class="blue monos"><html dir="<span 
      class=green>ltr</span>"></span>①文書の方向を左から右へ指定(日本語等)

<span class="blue monos"><html dir="<span 
      class=green>rtl</span>"></span>②文書の方向を右から左へ指定(アラビア語等)

</code></pre>
<table>
  <tr>
    <td colspan=2><span class="blue monos"><html lang="<span class=green>ja</span>"></span></td></tr>
  <tr>
    <td class=cap2 rowspan=3>dir</td>
    <td>ltr</td>
    <td>①文書の方向を左から右へ指定(日本語等)</td></tr>
  <tr>
    <td>rtl</td>
    <td>②文書の方向を右から左へ指定(アラビア語等)</td></tr>
  <tr>
    <td colspan=2><span class="blue monos"><html dir="<span 
      class=green>ltr</span>"></span></td></tr>
</table>
</body>
</html>
</code></pre>