HTML : Exercices et solutions - Exercice 2

Exercice n°2

Créer ce tableau avec HTML

Population Moyenne

Hateur en cm Espérance de vie Poids
Sexe Masculin

1,78


70


75 Kg
Féminin

1,70


80


55 Kg

Solution : 

<html>
    <head>
        <title>Exercice3 TP1</title>
    </head>
<body BGCOLOR="#FFEA95">
<table border>
<tr>
    <th colspan=2>Population</th>
    <th colspan=3>Moyenne</th>
</tr>
<tr>
    <td colspan=2></td>
    <th>Hateur en cm</th>
    <th>Espérance de vie</th>
    <th>Poids</th>
</tr>
<tr>
    <th rowspan=2>Sexe</th>
    <th>Masculin</th>
    <td><center>1,78</center></td>
    <td><center>70</center></td>
    <td><center>75 Kg</center></td>
</tr>
<tr>
    <th>Féminin</th>
    <td><center>1,70</center></td>
    <td><center>80</center></td>
    <td><center>55 Kg</center></td>
</tr></table>
</body>
</html>

Aucun commentaire:

Enregistrer un commentaire


جميع الحقوق محفوظة TH3 Professional security ©2010-2013 | جميع المواد الواردة في هذا الموقع حقوقها محفوظة لدى ناشريها ، نقل بدون تصريح ممنوع . Privacy-Policy| اتفاقية الاستخدام|تصميم : ألوان بلوجر