Re: [html] Elements within "title"?

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.

Yucca

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