Pseudo-classe

:target

Mise en valeur de la cible d'une ancre.

CSS

	
	.def:target {
		border: 1px solid #8cc03b;
		font-weight: bold;
		}
	

HTML

	
	<p>Lorem ipsum dolor (<a href="#dolor">1</a>) sit amet, consector adipisicing
	   elit (<a href="#elit">2</a>), sed do eiusmod (<a href="#eiusmod">3</a>) tempor
	   incididunt ut labore et dolore magna aliqua.</p>

	<p id="dolor" class="def">(1) dolor : ut enim...</p>

	<p id="elit" class="def">(2) elit : quis nostrud...</p>

	<p id="eiusmod" class="def">(3) eiusmod : ullamco...</p>
	

Compatibilité

Page de test