<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"/> <title>Page 1</title> </head> <body> <h1>Le langage HTML </h1> <p class="note">texte en travaux</p> <div class="blabla"> <h2>Trop de blabla</h2> bla bla bla <strong> bli bli </strong> bla bla <br/> 2 tous avec moi...bla bla </div> <h2>comptons</h2> <ol> <li>nombres et positions <ul> <li> un </li> <li> deux </li> <li> trois </li> </ul> <ol> <li>premier</li> <li>second</li> </ol> </li> <li>etc.</li> </ol> <h2>encore un</h2> <p>...</p> </body> </html>
Dessinez l'arbre de balises correspondant
Écrivez les CSS pour obtenir le résultat suivant :
<html> <head> <title>Page 1</title> </head> <body> <p>Un beau texte avec une <img src=”dessin.png” alt=”une maison”/> image.</p> <h1>Et du texte</h1> <p> pour faire du html il faut </p> <ul> <li> Un e ́diteur de texte</li> <li> Apprendre le <em>Langage HTML</em>, et aussi les <em>CSS</em></li> 1 </ul> <h1>Seconde p a r t i e</h1> <div class=”remarque”> <p> Ce paragraphe sera en rouge</p> <p> Ce paragraphe ne sera pas en rouge</p> </div> </body> </html>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8"/>
<title>Demo CSS</title>
<style>
ul:first-child {margin: 0em; padding 0em; background-color: yellow;
text-align: left; border: solid red 1px; list-style-type: none;
list-style-image: none;}
ul:first-child li {display: inline; background-color: #AAAAFF;
margin: 0.25em; padding: 0.25em;}
ul ul {list-style-type: roman;}
p+ul {list-style-type: circle;}
table { border-collapse: collapse;}
th {border: 2pt solid;}
td {border: 1pt solid;}
.decore {background-color: red;}
th.bleu {border: 4pt solid;}
.decore th {border-top: none; border-left: none; border-right: none}
</style>
</head>
<body><ul><li>un</li><li>deux</li><li>trois</li></ul>
<p>un exemple</p>
<h1>Un texte</h1>
<p> Un texte pour avoir une idée </p>
<ul>
<li>une liste</li>
<li>et du texte
<ul>
<li> avec une liste</li>
</ul>
</li>
</ul>
<table>
<tr class="decore"><th>titre 1</th><th class="bleu">titre 2</th></tr>
<tr><td>bla</td><td>bla</td></tr>
</table>
</body>
</html>