Log In · Register

 
links to other areas within a webpage
nishikigoi
post Jan 10 2009, 08:00 PM
Post #1


Senior Member
***

Group: Member
Posts: 86
Joined: Jul 2005
Member No: 179,570



I am wondering what the exact codes are for making a link that leads to a particular area of the same webpage. For example, they're often seen on FAQ's or at the bottom of lengthy pages.
 
 
Start new topic
Replies
heyo-captain-jac...
post Jan 10 2009, 10:27 PM
Post #2


/人◕‿‿◕人\
*******

Group: Official Member
Posts: 8,283
Joined: Dec 2007
Member No: 602,927



First one is used more often.
 
mipadi
post Jan 11 2009, 03:01 PM
Post #3


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



QUOTE(9001 @ Jan 10 2009, 10:27 PM) *
First one is used more often.

It is, however, falling into disuse; the "id" attribute is more common as it can be used with anchors, CSS, and JavaScript, and doesn't require the use of an <a> tag to be thrown into the markup. It's probably better to use the "id" method nowadays.
 

Posts in this topic


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: