【发布时间】:2009-08-22 14:33:57
【问题描述】:
我在看标题标签http://www.w3schools.com/TAGS/tag_title.asp 那么,如果我有多个具有不同语言 ID 的标题,这是否合法?
【问题讨论】:
我在看标题标签http://www.w3schools.com/TAGS/tag_title.asp 那么,如果我有多个具有不同语言 ID 的标题,这是否合法?
【问题讨论】:
【讨论】:
不,HEAD 只允许一个 TITLE element:
<!-- The TITLE element is not considered part of the flow of text.
It should be displayed, for example as the page header or
window title. Exactly one title is required per document.
-->
<!ELEMENT TITLE - - (#PCDATA) -(%head.misc;) -- document title -->
<!ATTLIST TITLE %i18n>
这是来自document type definition of HTML 4.01的sn-p:
<!ENTITY % head.content "TITLE & BASE?">
<!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
【讨论】: