Vous êtes sur la page 1sur 3

Correction type de test TD technologie du web

Exo1

<!DOCTYPE html>
<html>
<head>
<title>test</title>
</head>
<body>
<h2 align = " left " > Exercice 1 RT 2021 </h2 >
<table border = " 1 " cellpadding="6" cellspacing="6" align = " center " bgcolor="aqua">
<caption align = " bottom " > Mon premier tableau </caption >
<tr >
<td bgcolor="green" colspan = " 3 " >
Cette cellule occupe toute la largeur du tabelau .
Sa couleur est verte
</td >
</tr >
<tr >
<td align = " left " > alignement à gauche </td >
<td align = " center " > texte centré </td >
<td align = " right " > alignement à droite </td >
</tr >
<tr >
<td rowspan = " 2 " align = " center " valign =" bottom " bgcolor = " blue " >
Cette cellule occupe <br> deux lignes
</td >
<td > <font color = " red " > écrire en rouge </font > </td >
<td > </td >
</tr >
<tr >
<td > Je ne définis que </td >
<td > deux cellules sur cette lignes </td >
</tr >
<tr >
<td colspan = " 2 " > fusion de deux cellules </td >
<td bgcolor = " yellow " > </td >
</tr >
</table >
</body>
</html>

Exo 2
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
a:active {
color: pink;
}
a{
color: green;
text-decoration: none;
}
</style>
<script type="text/javascript">
function qst2() {
document.write('la couleur du lien est devenu rouge')
}
</script>
</head>
<body>
<a href="#">lien</a> <br>
<a href="" onmouseover="javascript:qst2()">java</a>
</body>
</html>

Vous aimerez peut-être aussi