Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Enregistrer le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <head> <style> .button { bordure: aucune; couleur: blanc; padding: 15px 32px; text-align: center; text-decoration: none; affichage: inline-block; taille de police: 16px; marge: 4px 2px; curseur: pointeur; } .button1 {background-color: #D74444;} /* Vert */ .button2 {background-color: #008CBA;} /* Bleu */ </style> </head> <body> <h1>L'élément bouton - Stylisé avec CSS</h1> <p>Changez la couleur de fond d'un bouton avec la propriété background-color :</p> <button class="button button1">Vert</button> <button class="button button2">Bleu</button> </body> </html>