<!-- CSS:Basics snippet 4. -->
<!-- Introducing 'id' and 'class'. -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Code source: http://www.justfigures.co.uk/ -->
<!-- A resource for web developers using XHTML, CSS, JavaScript, PHP -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>View snippet page</title>
<style type="text/css">
/* you can place the following styles in your .css style sheet */
/* but we will continue to use a style block on these tutorials for clarity */

/* defining the 'h2' element */
h2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #000000;
}
/* defining the ordered list */
/* style rule for an 'id' */
#myListId {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #000000;
	line-height:30px;
	list-style-type:upper-roman;
	}
/* defining the nested unordered lists */
/* style rules for each 'class' */
.myListClass1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #000000;
	line-height:25px;
	list-style-image:url(text.gif);
	}
.myListClass2 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #000000;
	line-height:25px;
	list-style-image:url(pdf.gif);
	}
</style>
</head>
<body>
<!-- you can assign a 'class' to many elements in a page -->
<!-- but an 'id' can only occur once in a page -->
<h2>Defining individual styles with the 'id' and 'class' attributes.</h2>
<ol id="myListID">
	<li>Main Item 1: text files
		<ul class="myListClass1">
			<li>Sub Item 1:1</li>
			<li>Sub Item 1:2</li>
		</ul>
	</li>
	<li>Main Item 2: text files
		<ul class="myListClass1">
			<li>Sub Item 2:1</li>
			<li>Sub Item 2:2</li>
		</ul>
	</li>
	<li>Main Item 3: pdf files
		<ul class="myListClass2">
			<li>Sub Item 3:1</li>
			<li>Sub Item 3:2</li>
			<li>Sub Item 3:3</li>
		</ul>
	</li>
</ol>

</body>
</html>