Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Sauvegarder le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <head> <style> #img1 { filtre: contraste(150%); } #img2 { filtre: contraste(50%); } </style> </head> <body> <h1>La fonction contrast()</h1> <p>contrast(150%):</p> <img id="img1" src="pineapple.jpg" alt="Pineapple" width="300" height="300"> <p>contrast(50%):</p> <img id="img2" src="pineapple.jpg" alt="Pineapple" width="300" height="300"> <p>Image originale :</p> <img src="pineapple.jpg" alt="Pineapple" width="300" height="300"> </body> </html>