An named anchor, so you could target section of the page, like jump to content, used to be

<a name="content"></a>
notice no href.
You could access it in a link prefixing the name with a '#' like
<a href="#content">Jump to content</a>
This is still supported by browsers but no longer valid HTML5.

"" wrote:

The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.

Or you could add '#content' without the quotes to the end of the url in the browsers address bar.

Form fields
Form input fields still need a value for the name attribute to submit with the field value. If you are using a label and possible JavaScript validation you will need an id as well.

<label for="idForLabel"> Field label:</label>
<input id="idForLabel" name="nameSentWithValue" />

The name and id can have the same value although the id must be unique on the page. Names can be reused as they are with radio or checkboxes.

CSS3 target pseudo class
You can style an element that is currently targeted, ( the #id is in the browsers address bar) using the pseudo class :target. This opens up some interesting possibilities such as displaying developers info or Pure CSS Slides.
Any element with an id can be a target, a useful pseudo class to keep in mind..


Big smile Big smile Big smile Big smile


[link removed--wait until you've earned a signature line ~gt/mod]