110 likes | 229 Vues
Lists are essential in web page authoring as they help organize content logically, enhancing user experience. This guide explains how to create unordered (bulleted) and ordered (numbered) lists using XHTML. An unordered list uses the `<ul>` element, nesting list items (`<li>`), while an ordered list uses the `<ol>` element. Both types of lists improve information accessibility for site visitors. Examples of each type of list are provided for clarity. Follow these steps to effectively implement lists in your web pages.
E N D
Lists N100 Building a Simple Web Page XHTML
Creating Lists • Lists are a very important tool in proper Web page authoring because they provide a way of logically ordering a series of words or numbers • They also provide a simple, yet effective design technique for making it easier for Web site visitors to locate information • You can add lists to a Web page; unordered lists, and ordered lists XHTML
Creating Lists XHTML
Unordered Lists • An unordered list is a series of bulleted items • To define the items you want to appear in the bulleted list, you nest <li> elements within a <ul> element XHTML
Unordered Lists To create an ordered list, you will use this code: <ul> <li>The Flash</li> <li>The Green Lantern</li> <li>The Spectre</li> <li>The Hawkman</li> <li>Dr. Fate</li> <li>The Hour-Man</li> <li>The Sandman</li> <li>The Atom</li> <li>Johnny Thunder</li> </ul> XHTML
Unordered Lists • Your unordered list will look like this: • The Flash • The Green Lantern • The Spectre • The Hawkman • Dr. Fate • The Hour-Man • The Sandman • The Atom • Johnny Thunder XHTML
Ordered Lists • An ordered list is a series of numbered items • To define the items you want to appear in the numbered list, you nest <li> elements within an <ol> element XHTML
Ordered Lists To create an ordered list, you will use this code: <ol> <li>Sean Connery</li> <li>George Lazenby</li> <li>Roger Moore</li> <li>Timothy Dalton</li> <li>Pierce Brosnan</li> </ol> XHTML
Ordered Lists • This what an ordered list will look like, • Sean Connery • George Lazenby • Roger Moore • Timothy Dalton • Pierce Brosnan XHTML