a id css code example Example 1: id in css #id{ color:red; } Example 2: div id css <p class="haut"> <a href="#haut">Haut de page</a> </p>