Feat: ajoute la modification du CSS et des exemples à reproduire
This commit is contained in:
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
87
1NSI/01_Web_HTML_CSS/page_CSS/page_CSS.html
Normal file
87
1NSI/01_Web_HTML_CSS/page_CSS/page_CSS.html
Normal file
@@ -0,0 +1,87 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<!-- en-tête -->
|
||||
<meta charset="UTF-8">
|
||||
<meta name="Author" content="Fabrice Sincère">
|
||||
<title>Un exemple de page web en HTML5</title>
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Page de présentation pour le CSS</h1>
|
||||
<div class="balise" id="paragraph">
|
||||
<h2>Des paragraphes</h2>
|
||||
|
||||
<p>Un paragraphe.</p>
|
||||
|
||||
<p>Un deuxième paragraphe.
|
||||
Il n'y a pas de saut de ligne.</p>
|
||||
|
||||
<p>Un troisième paragraphe.<br>Avec un saut de ligne.</p>
|
||||
|
||||
<p>Un mot en <strong>gras</strong>, en <em>italique</em>.</p>
|
||||
</div>
|
||||
|
||||
<div class="balise" id="list">
|
||||
<h2>Une liste :</h2>
|
||||
|
||||
<ul>
|
||||
<li>Chapitre 1</li>
|
||||
<li>Chapitre 2</li>
|
||||
<li>Chapitre 3
|
||||
<ul>
|
||||
<li>Exercice 3.1</li>
|
||||
<li>Exercice 3.2 </li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Chapitre 4</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="balise" id="table">
|
||||
<h2>Une table :</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<!-- en-tête de la table-->
|
||||
<th>Courant (A)</th>
|
||||
<th>Tension (V)</th>
|
||||
<th>Puissance (W)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1,0</td>
|
||||
<td>5,0</td>
|
||||
<td>5,0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2,0</td>
|
||||
<td>15,0</td>
|
||||
<td>30,0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3,0</td>
|
||||
<td>20,0</td>
|
||||
<td>60,0</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="balise" id="link">
|
||||
<h2>Des liens</h2>
|
||||
<p><a href="http://fr.wikipedia.org/wiki/HTML5">Un lien hypertexte vers l'article HTML5 du site web de WikiPédia</a></p>
|
||||
|
||||
<p>Un autre lien hypertexte <a href="http://fr.wikipedia.org/wiki/Hyperlien">ici</a>.</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="richard">
|
||||
<h2>Richard Stallman</h2>
|
||||
<p>Une photo de Richard Stallman (située sur le site web de Wikipédia).</p>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
BIN
1NSI/01_Web_HTML_CSS/page_CSS/page_CSS_mod.pdf
Normal file
BIN
1NSI/01_Web_HTML_CSS/page_CSS/page_CSS_mod.pdf
Normal file
Binary file not shown.
39
1NSI/01_Web_HTML_CSS/page_CSS/style.css
Normal file
39
1NSI/01_Web_HTML_CSS/page_CSS/style.css
Normal file
@@ -0,0 +1,39 @@
|
||||
body {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a {
|
||||
color: red;
|
||||
border: 2px solid black;
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
table {
|
||||
border: 3px solid blue;
|
||||
}
|
||||
|
||||
.balise {
|
||||
background-color: lightblue;
|
||||
text-align: left;
|
||||
width: 33%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
color: green;
|
||||
}
|
||||
|
||||
#link {
|
||||
background-color: lightgrey;
|
||||
}
|
||||
|
||||
#richard {
|
||||
color: lightgrey;
|
||||
background-image: url("./220px-Richard_Stallman_2005_(chrys).jpg");
|
||||
background-color: #cccccc; /* Used if the image is unavailable */
|
||||
height: 500px; /* You must set a specified height */
|
||||
background-position: center; /* Center the image */
|
||||
background-repeat: no-repeat; /* Do not repeat the image */
|
||||
background-size: cover;
|
||||
}
|
Reference in New Issue
Block a user