The code below does not run on all browsers:
<button id="btn">
<img class=""
src="/img/icone-formation.png"
height="100%"
width="100%"
onclick="document.getElementById('f1').style.display ='initial';
document.getElementById('f2').style.display ='none';
document.getElementById('f3').style.display ='none';
document.getElementById('f4').style.display ='none';
document.getElementById('f5').style.display ='none';
document.getElementById('btn').setAttribute('id', 'press');">
</button>
<button id="btn">
<img class=""
src="/img/icone-formation.png"
height="100%"
width="100%"
onclick="document.getElementById('f2').style.display ='initial';
document.getElementById('f1').style.display ='none';
document.getElementById('f3').style.display ='none';
document.getElementById('f4').style.display ='none';
document.getElementById('f5').style.display ='none';
document.getElementById('btn').setAttribute('id', 'press');">
</button>
<button id="btn">
<img class=""
src="/img/icone-formation.png"
height="100%"
width="100%"
onclick="document.getElementById('f3').style.display ='initial';
document.getElementById('f1').style.display ='none';
document.getElementById('f2').style.display ='none';
document.getElementById('f4').style.display ='none';
document.getElementById('f5').style.display ='none';
document.getElementById('btn').setAttribute('id', 'press');">
</button>
<button id="btn">
<img class=""
src="/img/icone-formation.png"
height="100%"
width="100%"
onclick="document.getElementById('f5').style.display ='initial';
document.getElementById('f1').style.display ='none';
document.getElementById('f2').style.display ='none';
document.getElementById('f3').style.display ='none';
document.getElementById('f4').style.display ='none';
document.getElementById('btn').setAttribute('id', 'press');">
</button>
How can I do the same thing with pure CSS?