MS-Exam-70-480-Demo2

CSS Selectors for exam prep

by Robert Barr

HTML

<body>

	<table>
		<thead><tr><th>Product</th></tr></thead>
		<tbody>
			<tr><td>Adjustable Race</td></tr>
			<tr><td>Blade</td></tr>
			<tr><td>Chaining</td></tr>
			<tr><td>Down Tube</td></tr>
		</tbody>
	</table>
	
	<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
	<script>
	
		
		
	</script>
</body>

CSS

table tr:first-of-type, tr:last-of-type{
			background-color: lightblue;
		}