Examples of Using the id Attribute to Select Elements

A Link to Another Web Page

Mile 8 on the Na Pali Coast trail

Note that this paragraph has the identifier id="napali". Clicking on the above photograph will take you to a web page with details about camping on the Na Pali Coast trail.

Validation Links

Click to validate the HTML code

Click to validate the CSS code

Note that this paragraph has the identifier id="validator". The HTML and CSS validation links are used to validate the source code of the web page.

Thumbnails

Crowds coming out of Pura Besakih, the Mother Temple on Mt. Agung, Bali, Indonesia       Bon Dance in Honolulu, Hawai'i       Hanuman, the monkey god, in the Kecak dance at Pura (temple) Luhur Ulu Watu, Bali, Indonesia       Monks at Kuukai's Tomb, Koyasan, Japan       Couple watching the sunset at Tanah Lot, a Sea Temple in Bali, Indonesia

Note that this paragraph has the identifier id="thumbnail". Thumbnails are small versions of images. Usually, a list of thumbnails is displayed, so that you can click on the thumbnail to display a larger version of the same image. This way, the small thumbnails are downloaded quickly, and the user can choose which image that they want to see in a larger size. The above thumbnails are a random collection of people photos that I found interesting.