¿Se puede tener varias etiquetas de título en html?
Pregunta
Estaba buscando en la etiqueta del título http://www.w3schools.com/TAGS/ tag_title.asp Así que sería legal si tuviera varios títulos con diferentes ID Lang?
Solución
La respuesta es sencilla: no. Sólo uno (y exactamente una) se permite elemento <title>
.
Fuente: por ejemplo, XHMTL 1.0 Strict DTD :
Se requiere exactamente un título por cada documento.
Otros consejos
No, HEAD
no sólo permiten una sola TITLE
elemento :
<!-- 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>
Este es el fragmento de los href="http://www.w3.org/TR/html401/sgml/dtd.html#head.content" definición de tipo de documento HTML 4.01 :
<!ENTITY % head.content "TITLE & BASE?">
<!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow