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> html { taille-de-police: 16px; /* Définit la taille de police racine */ } h1 { taille-de-police: 2.5rem; /* 2.5 * 16 = 40px */ } h2 { taille-de-police: 1.875rem; /* 1.875 * 16 = 30px */ } p { taille-de-police: 1rem; /* 1 * 16 = 16px */ } </style> </head> <body> <h1>Ceci est le titre 1</h1> <h2>
Ceci est un titre 2
</h2> <p>Ceci est un paragraphe.</p> <p>Spécifier la taille de police en rem permet à tous les principaux navigateurs de redimensionner le texte.</p> </body> </html>