22.06.2015 Views

Step by Step HTML5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Creating Bulleted and Numbered Lists 51<br />

Specifying the Start of a Numbered List<br />

To start a numbered list at a number other than 1, you use the start=”n” attribute with<br />

the tag, where n is the starting number. For example:<br />

<br />

Note that you always specify the starting number as an Arabic numeral, even if you have<br />

chosen a Roman numeral or letter style for the list.<br />

You can use the value=”n” attribute for an individual list item if you want to change<br />

the numbering for one item only.<br />

For example, to force a particular list item to be numbered with a 5 (or in a list with<br />

Roman numerals, a V), insert the value=”n” attribute, as shown here:<br />

<br />

Note The start= and value= attributes are both deprecated, but they still work in <strong>HTML5</strong>.<br />

In this exercise, you will create and nest ordered and unordered lists.<br />

SET UP Use the foliage.htm file in the practice file folder for this topic. This practice<br />

file is located in the Documents\Microsoft Press\<strong>HTML5</strong> SBS\04Lists\NestingLists<br />

folder. Open the foliage file in Notepad and in Internet Explorer.<br />

1. Create the following numbered list above the tag:<br />

<br />

Yellow<br />

Necrotic spots<br />

White powder<br />

Light and dark green areas<br />

Holes or chewed areas<br />

<br />

2. Save the file, and then refresh the Internet Explorer display to view your work.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!