Latest Article RSS Feed
SEARCH
 
Article Options
Save as HTML Save as HTML
Add as Favorites Add as Favorites
Notify on Update Notify on Update
 
Attachments
 
None
 
 
Did this help you?
Yes
No
 
Categories
Business
Travel Package from Travel Agents
World News
Jokes
Poland ends Iraq mission
BBC News
Entertainment
How to Submit to ASK.com
Link popularity
Page Rank
Google's Supplemental Index
What is Auto-Redirecting
Doorway Pages & Links
Ethical" Search Engine Optimization Exposed
Search Engine Optimization?
What is SEO Copywriting
Contraception awareness
F1 Singapore
Travel and Tourism
 
Themes
Green Blue
Red Black
Red Blue Black
Sunrise
 
Glossary
ABCDE
FGHIJ
KLMNO
PQRST
UVWXY
ZAll   
 
Share
FAQ Home Refer To a Friend Add your comments Print this Article Post Query
Syntax of anchor names
  Posted On: 19-11-2008 562 Views

An anchor name is the value of either the name or id attribute when used in the context of anchors. Anchor names must observe the following rules:

  • Uniqueness: Anchor names must be unique within a document. Anchor names that differ only in case may not appear in the same document.
  • String matching: Comparisons between fragment identifiers and anchor names must be done by exact (case-sensitive) match.

Thus, the following example is correct with respect to string matching and must be considered a match by user agents:

<P><A href="#xxx">...</A>
...more document...
<P><A name="xxx">...</A>

ILLEGAL EXAMPLE:
The following example is illegal with respect to uniqueness since the two names are the same except for case:

<P><A name="xxx">...</A>
<P><A name="XXX">...</A>

Although the following excerpt is legal HTML, the behavior of the user agent is not defined; some user agents may (incorrectly) consider this a match and others may not.

<P><A href="#xxx">...</A>
...more document...
<P><A name="XXX">...</A>

Anchor names should be restricted to ASCII characters. Please consult the appendix for more information about non-ASCII characters in URI attribute values.

 
 User Comments
   
There are no comments posted for this article. Click here to become first one to post a comment.
 
 
 Related Articles
There are no related article.