Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it allowed to use other tags inside <title>?

Is it correct practice or valid syntax to use other tags inside a <title>?

An example for multi-language title

<html lang=en>
<title>Some title in English and a <i lang=fr>word in French</i></title>
like image 817
andrew Avatar asked Aug 28 '12 23:08

andrew


2 Answers

See http://www.w3.org/TR/html401/struct/global.html#h-7.4.2:

Titles may contain character entities (for accented characters, special characters, etc.), but may not contain other markup (including comments).

(my emphasis)

like image 159
chelmertz Avatar answered Sep 30 '22 19:09

chelmertz


No, it may not

http://www.w3.org/Provider/Style/TITLE.html

like image 33
Matt Tew Avatar answered Sep 30 '22 20:09

Matt Tew