W3C home > Mailing lists > Public > www-validator@w3.org > July 2013

Re: Problem with <name...

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 30 Jul 2013 00:25:33 +0300
Message-ID: <51F6DDCD.1040700@cs.tut.fi>
To: www-validator@w3.org
2013-07-26 4:16, SeaBis wrote:

> Problem with <name...

There is no <name> element in HTML specifications, or in HTML5 drafts 
(which you are validating against), and browsers do not recognize such 
an element. (Browsers do parse it and insert it to the document tree, 
but it will just sit there, unless you have some CSS or JavaScript that 
plays with it.)

> At www.metal-corrosion.com <http://www.metal-corrosion.com> can anyone
> suggest a reason and resolution?

Just omit the <name> and </name> tags. They serve no purpose.

If you wanted to style the text that you have between such tags, then it 
would be advisable to use e.g. <span class=name>...</span> instead. A 
little more verbose, but valid, and it saves you from nasty surprises: 
some day, some version of HTML might have <name> element added to it, 
possibly with a meaning, functionality, and rendering that mess up a 
page that uses it for some different purpose.

Yucca
Received on Monday, 29 July 2013 21:26:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:09 UTC