Séance 2
Cours sur le CSS
Exercices
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Page avec du CSS</title>
</head>
<body>
<h1>Hello, world!</h1>
<article>
<h1>Mon article</h1>
<section>
<h2>Première section</h2>
<p>Premier paragraphe</p>
</section>
<section>
<h2>Deuxième section</h2>
<p>Deuxième paragraphe</p>
<p>Troisième paragraphe</p>
</section>
</article>
</body>
</html>
Bootstrap
Lien vers Bootstrap
Exercices
Structure de base avec boostrap
<!doctype html>
<html lang="fr">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body>
<h1>Hello, world!</h1>
<!-- Reste de la page -->
<!-- Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>
Last updated