Basic selectors

Back to the index.

A quick test of the element, class, id, and descendant selectors.

Testsheet:

p {
	color: #CB000F;
}

p.test {
	font-weight: bold;
}

p#test {
	text-decoration: underline;
}

p span {
	text-decoration: line-through;
}

This is the paragraph with class="test".

This is the paragraph with id="test".

This paragraph has a nested span.