<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>随网之舞嵌套规则</title>
	<atom:link href="http://dancewithnet.com/tag/%e5%b5%8c%e5%a5%97%e8%a7%84%e5%88%99/feed/" rel="self" type="application/rss+xml" />
	<link>http://dancewithnet.com</link>
	<description>WEB Design{HTML:CSS:Javascript:DOM:AJAX:PHP:Usability}/Viewpoint/Photo/Food/Mood</description>
	<lastBuildDate>Mon, 18 Jul 2011 02:45:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>(X)HTML Strict 下的嵌套规则</title>
		<link>http://dancewithnet.com/2007/01/25/allowed-nesting-of-elements-in-html-4-strict-and-xhtml-10-stricthtml/</link>
		<comments>http://dancewithnet.com/2007/01/25/allowed-nesting-of-elements-in-html-4-strict-and-xhtml-10-stricthtml/#comments</comments>
		<pubDate>Wed, 24 Jan 2007 22:28:59 +0000</pubDate>
		<dc:creator>秦歌</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[嵌套规则]]></category>

		<guid isPermaLink="false">http://dancewithnet.com/?p=933</guid>
		<description><![CDATA[为了方便读者阅读，本文中的标签使用了大写（根据 XHTML 的规则，元素名必须小写，比如 &#60;html&#62; 而不应是 &#60;HTML&#62;）

小写的单词表明一组或一系列 HTML 标签
每一项条目（标签）后都跟... ]]></description>
			<content:encoded><![CDATA[<p>为了方便读者阅读，本文中的标签使用了大写（根据 XHTML 的规则，元素名必须小写，比如 &lt;html&gt; 而不应是 &lt;HTML&gt;）<span id="more-933"></span></p>
<ol>
<li>小写的单词表明一组或一系列 HTML 标签</li>
<li>每一项条目（标签）后都跟随一组标签列表，如果没有这个列表，那么表明该条目（标签）内部不允许包含任何标签。这意味着该条目内部只能包含纯文本内容（#PCDATA，见下文）。如果注明 (empty)，这意味着该条目内部不允许包含任何形式的内容。对于 flow，inline，block，OBJECT 和 BODY，其内部允许包含的内容在文中会单独给出。</li>
<li><a href="http://www.webreference.com/dlab/books/html/3-5.html#3-5-2-2">#PCDATA </a>的意思是“parsed character data”，即纯文本内容（不包括任何 HTML 标签，但是转义内容可以存在，比如 &auml; 和 &#228;）</li>
<li>CDATA 的意思是“character data”，这意味着不包括转义内容的纯文本内容，详细内容可以参考<a href="http://www.flightlab.com/~joe/sgml/cdata.html">CDATA Confusion</a></li>
<li>excluding &#8230; 意即不得直接或者间接的包含所列的元素</li>
</ol>
<p class="noIndent"><img src='http://dancewithnet.com/wp-content/uploads/2007/03/html4.gif' alt='(X)HTML Strict 下的嵌套规则' width="510" height="1370" /></p>
<ul>
<li>注1. 以上内容基于 [HTML 4.01 Specification] 的 Strict DTD。JunChen 翻译自<a href="http://www.cs.tut.fi/~jkorpela/html/strict.html"> Allowed nesting of elements in HTML 4 Strict (and XHTML 1.0 Strict)</a></li>
<li>注2. 对于 XHTML 1.0，基本上一致，不同点如下：
<ol>
<li>对于 &lt;script&gt; 和 &lt;style&gt; 的内容，在 HTML 4 里是 CDATA 而在 XHTML 里是 #PCDAT</li>
<li>在 XHTML 中，&lt;table&gt; 标签后可以紧跟一个 &lt;tr&gt;，而在 HTML 4.01 里，不允许这样，不过 &lt;tbody&gt; 标签又是可以省略的。意思就是说，如果代码中的 &lt;table&gt; 后紧跟 &lt;tr&gt;，对于 HTML 4.01，会隐性的生成一个 &lt;tbody&gt; 标签，而在 XHTML 里面就没有。这会影响到样式表使用 tbody 作为选</li>
</ol>
</li>
</ul>
<ul class="refer">
<li><a href="http://www.junchenwu.com/2007/01/allowed_nesting_of_elements_in_html_4_strict_and_xhtml_10_strict.html">http://www.junchenwu.com/2007/01/allowed_nesting_of_elements_in_html_4_strict_and_xhtml_10_strict.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dancewithnet.com/2007/01/25/allowed-nesting-of-elements-in-html-4-strict-and-xhtml-10-stricthtml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

