<p><a href="#ancre1">vers div</a></p>
<p><a href="#ancre2">vers p</a></p>

<p>Cliquez sur un lien pour pointer l'ancre correspondant</p>

<div id="ancre1">div div div div div div</div>
<p id="ancre2">p p p p p p p p p  p p p</p>
body{
  width: 400px;
}
p:target {
    background-color: silver;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.