F.10. Nested and Ordered Lists

Lists may be nested to represent hierarchical relationships, as in an outline format. Figure F.11 demonstrates nested lists and ordered lists. The ordered list element ol creates a list in which each item begins with a number.

Figure F.11. Nested and ordered lists in XHTML.
					1
					<?xml version = "1.0"
					?>
					2
					<!DOCTYPE html PUBLIC
					"-//W3C//DTD XHTML 1.1//EN"
					3
					"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
					4
					5
					<!-- Fig. F.11: list.html               -->
					6
					<!-- Advanced Lists: nested and ordered -->
					7
					8
					<html xmlns = "http://www.w3.org/1999/xhtml">
					9
					<head>
					10
					<title>Internet and WWW How to Program - Lists</title>
					11
					</head>
					12
					13
					<body>
					14
					15
					<h1>The Best Features of the Internet </h1>
					16
					17
					<!-- create an unordered list -->
					18
					

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.