Quantcast
Channel: CSS Creator blogs
Viewing all articles
Browse latest Browse all 10

HTML5 anchor name & target

$
0
0

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.
"http://validator.w3.org/" 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.

read more


Viewing all articles
Browse latest Browse all 10

Trending Articles