Search code examples
htmllocaletitle

Is it allowed to have several <title> tags?


I was looking at the title tag http://www.w3schools.com/TAGS/tag_title.asp So would it be legal if I had several titles with different lang IDs?


Solution

  • No. Only one <title> element is allowed.

    Source:

    • For HTML5:

      There must be no more than one <title> element per document.

    • For XHMTL 1.0 Strict DTD:

      Exactly one title is required per document.