我在看标题标签http://www.w3schools.com/TAGS/tag_title.asp 如果我有几个具有不同lang ID的标题,那么这是合法的吗?
答案 0 :(得分:8)
答案 1 :(得分:7)
不,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:
的摘录<!ENTITY % head.content "TITLE & BASE?">
<!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->