W3C home > Mailing lists > Public > www-html@w3.org > May 2012

Re: [html] Elements within "title"?

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 18 May 2012 21:09:52 +0300
Message-ID: <4FB69070.4040204@cs.tut.fi>
To: www-html@w3.org
2012-05-18 19:58, Philip TAYLOR wrote:

> Those are not examples of "valid"; they are examples
> of (potentially) "beneficial" or "useful".

Even the usefulness is questionable, since the markup inside title 
element in

>> <title>Chemistry of H<sub>2</sub>SO<sub>4</sub></title>

(which is not valid and does not work the intended way)
can be replaced by the use of subscript characters, either as such or 
via character references, e.g.

<title>Chemistry of H&#x2082;SO&#x2084;</title>

or even

<title>Chemistry of H₂SO₄</title>

This actually works well in modern browsers.

A potential need that cannot be covered in such a way is a bilingual 
title element (for, say, a bilingual document). You cannot use different 
lang attributes for different parts without having some markup for the 
parts. But browsers, search engines, and other programs generally ignore 
lang attributes anyway, so it’s not a big issue.


P.S. This “discussion” seems to consist of mostly isolated messages 
posted through the years when people find old messages in the archive 
and comment them without giving context.
Received on Friday, 18 May 2012 18:10:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:25 UTC