1 / 14

Lists & Tables

Lists & Tables. HTML Lists. There are many kinds of lists that can be created in HTML We will be covering Unordered List Ordered List Definition List. Unordered List. The items can be in any order Items are usually marked by bullets

xiu
Télécharger la présentation

Lists & Tables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lists & Tables

  2. HTML Lists • There are many kinds of lists that can be created in HTML • We will be covering • Unordered List • Ordered List • Definition List

  3. Unordered List • The items can be in any order • Items are usually marked by bullets • <ul> & </ul> are the opening and closing tags for an unordered list

  4. HTML Code Browser Display <ul> <li>SimCity</li> <li>Quake</li> <li>Bridge</li> </ul> • SimCity • Quake • Bridge

  5. Ordered Lists • Used to show a sequence • Items are usually numbered • <ol> & </ol> are the opening and closing tags

  6. Ordered List Browser Display <ol> <li>SimCity</li> <li>Quake</li> <li>Bridge</li> </ol> OL instead of UL • SimCity • Quake • Bridge Numbers instead of discs, circles or squares

  7. Definition Lists • Used for glossaries, definitions etc. • Works well with any list that pairs a word or phrase with a longer description. • <DL>, <DT> & <DD> are the tags

  8. Definition List Browser Display <dl> <dt>SimCity</dt> <dd>A great simulation game in which one build cities </dd> <dt>Quake</dt> <dd> One of the best of the shoot-em-up genre </dd> </dl> Term • SimCity • A great simulation game in which one build cities • Quake • One of the best of the shoot-em-up genre Definition

  9. Definition List

  10. Lists vs. Tables • Lists are one way of presenting data in a an ordered or formal fashion • Tables provide another - more customizable - way of displaying ordered information on Web pages

  11. Browser Display

  12. HTML Code Browser Display <table border = "1" > <tr> <th>Indoor</th> <th>Outdoor</th> </tr> <tr> <td>Squash</td> <td>Cricket</td> </tr> </table>

  13. HTML Code Browser Display <tableborder = "1" > <caption> My favorite sports </caption> <tr> <td>Squash</td> <td>Cricket</td> </tr> </table> My favorite sports Must be placed immediately after the<TABLE> tag

More Related