Anchors have long been used to link to specific parts of Web pages. An anchor consists of a hyperlink created by anchor tags and an element – headings, paragraphs, images and divs, to name a few examples – that contains an ID. As long as a div has an ID, it is usable as an anchor. The ID is now accessible by anchor tags, style sheets and JavaScript. If you have a div that already contains an ID, you will need to use that ID. Go to My Stuff Go to My Stuff on Page 2 The first link will send the user to the element with an ID of “my_stuff,” so long as it is on the same page that is being viewed in the browser. The second link will load a different page in the browser and jump to the “my_stuff” div.
