sync: 2026-11-25 10:05
This commit is contained in:
1 parent
cc37492b1b
commit
25193fdd76
4 files changed
+124
-10
No files matched your search
@@ -0,0 +1,113 @@
|
||||
<!doctype html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Découvrir CSS</title>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>Découvrir CSS</h1>
|
||||
<p>Une introduction aux feuilles de style.</p>
|
||||
<nav>
|
||||
<a href="#selecteurs">Sélecteurs</a>
|
||||
<a href="#typographie">Typographie</a>
|
||||
<a href="#listes">Listes</a>
|
||||
<a href="#tableaux">Tableaux</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section id="selecteurs">
|
||||
<h2>Les sélecteurs CSS</h2>
|
||||
|
||||
<p class="important">
|
||||
CSS permet de définir la présentation des documents HTML.
|
||||
</p>
|
||||
|
||||
<p>Une règle CSS associe un sélecteur à un ensemble de déclarations.</p>
|
||||
|
||||
<div class="information">
|
||||
<p>Les sélecteurs permettent de cibler les éléments HTML.</p>
|
||||
<p>Il existe plusieurs familles de sélecteurs.</p>
|
||||
</div>
|
||||
|
||||
<h3>Quelques ressources</h3>
|
||||
<ul>
|
||||
<li><a href="https://developer.mozilla.org/">MDN</a></li>
|
||||
<li><a href="https://www.w3.org/">W3C</a></li>
|
||||
<li><a href="documentation.html">Documentation locale</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="typographie">
|
||||
<h2>La typographie</h2>
|
||||
<p class="important">
|
||||
La typographie contribue à la lisibilité d'un document.
|
||||
</p>
|
||||
<p>
|
||||
On peut modifier la police, la taille, la graisse et l'alignement du
|
||||
texte.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section id="listes">
|
||||
<h2>Les listes</h2>
|
||||
|
||||
<h3>Liste non ordonnée</h3>
|
||||
<ul class="technologies">
|
||||
<li>HTML</li>
|
||||
<li>CSS</li>
|
||||
<li>JavaScript</li>
|
||||
<li>PHP</li>
|
||||
<li>Python</li>
|
||||
</ul>
|
||||
|
||||
<h3>Liste ordonnée</h3>
|
||||
<ol class="etapes">
|
||||
<li>Créer un document HTML.</li>
|
||||
<li>Créer une feuille CSS.</li>
|
||||
<li>Associer les deux fichiers.</li>
|
||||
<li>Visualiser le résultat.</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section id="tableaux">
|
||||
<h2>Les tableaux</h2>
|
||||
<table>
|
||||
<caption>
|
||||
Quelques propriétés CSS
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Propriété</th>
|
||||
<th scope="col">Rôle</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>color</td>
|
||||
<td>Couleur du texte</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>font-size</td>
|
||||
<td>Taille du texte</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>background-color</td>
|
||||
<td>Couleur de fond</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>text-align</td>
|
||||
<td>Alignement du texte</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>BUT Informatique – Année universitaire 2026-2027</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Whitespace-only changes.
Whitespace-only changes.
Reference in new issue
Block a user