2013年5月9日木曜日

Pタグの終了タグは勝手に省略されることがある。

P 要素
http://msugai.fc2web.com/web/tips/p.html

Pタグの終了タグは省略可能です。
 P タグは子要素にインライン要素しか持たないため、ブロック要素の開始タグがあれば、 P タグの終了タグがその直前で省略されていると勝手に解釈されます。


ブロック要素
p
div
table
dl
ul
ol
form
address
blockquote
h1
h2
h3
h4
h5
h6
fieldset
hr
pre
noscript
center

0 件のコメント:

コメントを投稿