Time for action – creating a list of links

  1. We'll get started with our basic HTML file and associated folders, like we created in Chapter 1, Designer, Meet jQuery. We'll add a list of links to a few different types of downloadable files to the <body> of the HTML document:
    <h1>Adding Icons to Links</h1>
    <p>Here's a list of downloadable files:</p>
    <ul>
       <li><a href="presentation.ppt">Presentation slides</a></li>
       <li><a href="video.mp4">Video of presentation</a></li>
       <li><a href="notes.pdf">Notes for presentation</a></li>
       <li><a href="icons.gif">Icon sprite</a></li>
    </ul>

    When we view this list in a browser, we'll see a bulleted list of links—there's no visual indication what type of file lies behind each link—the user has to guess based on the text ...

Get jQuery for Designers Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.