I received an error in the w3.org ( [url]http://validator.w3.org/
I was using the following code…
[code]
<!DOCTYPE HTML>
<html>
<head>
<title> Untitled </title>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
</head>
<body>
<a name=”TOP”></a>
<h1> Table of Contents </h1>
<!– Long section display here –>
<a href=”#TOP”>Go to Top</a>
<h1> Section start </h1>
<!– Long section display here –>
<a href=”#TOP”>Go to Top</a>
<!– etc. –>
</body>
</html>
But I get a warning error that use of “name” is deprecated and that I should use ‘id’ instead.
What is the substitute code for the above when the page is longer than the screen
and I want to allow the user a quick link to the top of the page where I might have a table of contents?
[COLOR=”#FF0000″][SIZE=5]Note: Extra test.
I just tried putting a radio button into the code and the validator complained again that ‘name’ is obsolete.
There are no errors and it passed the success message.
I’m just trying to figure out what to use of this type of coding to eliminate all validator messages!