Mon Blog

#4 · open · 0 comments

View on GitHub ↗

EgliseCadre

<!-- index.html --> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <title>Mon Blog</title> <link rel="stylesheet" href="style.css"> </head> <body> <header> <h1>Bienvenue sur mon blog</h1> </header> <main> <article> <h2>Titre de l'article 1</h2> <p>Contenu de l'article 1...</p> </article> <article> <h2>Titre de l'article 2</h2> <p>Contenu de l'article 2...</p> </article> </main> <footer> <p>&copy; 2025 - Mon Blog</p> </footer> </body> </html> /* style.css */ body { font-family: sans-serif; line-height: 1.6; margin: 0; padding: 0; } header, footer { background: #333; color: white; text-align: center; padding: 1em 0; } main { padding: 1em; } article { margin-bottom: 2em; }

Comments