tuto

Ajouter du style avec CSS

Eurexa Tech News

Bien que HTML permette de structurer le contenu, il est souvent combiné avec CSS pour styliser la page.

Exemple d’intégration CSS simple :


 

html

 

<!DOCTYPE html> <html> <head> <title>Page stylisée</title> <style> body { background-color: lightgray; font-family: Arial, sans-serif; } h1 { color: blue; } </style> </head> <body> <h1>Hello, HTML & CSS !</h1> <p>Bienvenue dans le monde du développement web.</p> </body> </html>

Cet article vous a été utile ?

Partagez-le ou conservez-le en PDF.

Articles similaires