Frequently Asked Questions (FAQ)

Can an id have more than one word?

Yes, your ids can have more than one word as long as there are no spaces. Separate each word with a dash instead.

Can visitors bookmark anchor links?

Yes, they can! And when they visit that link, the browser will jump down to the anchor as expected. Visitors can share the link with others, too, so all the more reason to choose meaningful anchor names.

My anchor link isn't working. What am I doing wrong?

The problem could be a few things. First, double-check that you added an id (without "#") to the element your link should point to. Also, be sure that the anchor in your link is preceded by "#" and that it matches the anchor id.

How do I link to a specific part of someone else's webpage?

Although you obviously can't add anchors to other people's pages, you can take advantage of the ones that they have already created. View the source code of their webpage to see if they've included an id on the part of the page you want to link to. (For help viewing source code, consult "The Inspiration of Others" in Chapter 2.) Then create a link that includes the anchor.