Вы находитесь на странице: 1из 8

Module HTML CSS

Correction Chapitre 6

CEFII - Archimede Informatique - 11 Place Smard - 49100 Angers - 02.41.72.19.78 - contact@cefii.fr


RCS d'Angers : 483 772 570 00048 - Code NAF 6201 Z - Numro prestataire de formation : 52 49 02488 49

Module HTML CSS Correction Exercice 1


On commence par crer notre fichier HTML, et y crer la base d'un tableau de 4 lignes et 3 colonnes :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<table>
<tr>

</tr>
<tr>

<td>Colonne 1</td>
<td>Colonne 2</td>
<td>Colonne 3</td>
<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>

</tr>
<tr>

</tr>
<tr>

<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>

</tr>
</table>
</body>
</html>

CEFII - Archimede Informatique - 11 Place Smard - 49100 Angers - 02.41.72.19.78 - contact@cefii.fr


RCS d'Angers : 483 772 570 00048 - Code NAF 6201 Z - Numro prestataire de formation : 52 49 02488 49

Afin de mieux y voir, donnons ce tableau une bordure visible et une largeur fixe :
<table border="1px" width=="300px">
Maintenant, il nous faut fusionner 2 cellules de la dernire ligne. Pour cela, remplaons le dernier bloc :
<tr>

<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>

</tr>
par :
<tr>
<td>Cellule</td>
<td colspan="2">Cellule</td>
</tr>
On supprime la dernire cellule dclare, et on ajoute la proprit colspan la cellule prcdente.
Enfin, peaufinons le rsultat : dans l'nonc, le texte des cellules est centr. Ajoutons donc une proprit de style dans la section <head> :
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
td {text-align : center;}
</style>
</head>
Voil, nous avons notre rsultat attendu ! Le code final est le suivant :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

CEFII - Archimede Informatique - 11 Place Smard - 49100 Angers - 02.41.72.19.78 - contact@cefii.fr


RCS d'Angers : 483 772 570 00048 - Code NAF 6201 Z - Numro prestataire de formation : 52 49 02488 49

</head>

<style>
td {text-align : center;}
</style>

<body>
<table border="1px" width="300px">
<tr>
<th>Colonne 1</th>
<th>Colonne 2</th>
<th>Colonne 3</th>
</tr>
<tr>
<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>
</tr>
<tr>
<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>
</tr>
<tr>
<td>Cellule</td>
<td colspan="2">Cellule</td>
</tr>
</table>
</body>
</html>

CEFII - Archimede Informatique - 11 Place Smard - 49100 Angers - 02.41.72.19.78 - contact@cefii.fr


RCS d'Angers : 483 772 570 00048 - Code NAF 6201 Z - Numro prestataire de formation : 52 49 02488 49

Module HTML CSS Correction Exercice 2


On commence par crer notre fichier HTML, et y crer la base d'un tableau de 4 lignes et 3 colonnes :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<table>
<tr>

<td>Colonne 1</td>
<td>Colonne 2</td>
<td>Colonne 3</td>

</tr>
<tr>

</tr>
<tr>

<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>

</tr>
<tr>

</tr>
</table>
</body>
</html>

<td>Cellule</td>
<td>Cellule</td>
<td>Cellule</td>

CEFII - Archimede Informatique - 11 Place Smard - 49100 Angers - 02.41.72.19.78 - contact@cefii.fr


RCS d'Angers : 483 772 570 00048 - Code NAF 6201 Z - Numro prestataire de formation : 52 49 02488 49

Afin de mieux y voir, donnons ce tableau une bordure visible et une largeur fixe :
<table border="1px" width=="300px">
Maintenant, il nous faut fusionner la premire cellule de la 2me ligne avec les deux premires cellules des lignes suivantes. Pour cela, il faut ajouter la proprit
rowspan="3" (fusion sur 3 lignes) cette cellule, et supprimer la premire cellule des lignes suivantes :
<table border="1px" width="300px">
<tr>
<th>Colonne 1</th>
<th>Colonne 2</th>
<th>Colonne 3</th>
</tr>
<tr>
<td rowspan="3">Cellule</td>
<td>Cellule</td>
<td>Cellule</td>
</tr>
<tr>
<td>Cellule</td>
<td>Cellule</td>
</tr>
<tr>
<td>Cellule</td>
<td>Cellule</td>
</tr>
</table>
A ce stade, il ne reste plus qu' fusionner les 2 dernires cellules de la dernire ligne. Cela se fait en appliquant la proprit colspan="2" (fusion sur 2 colonnes) la
premire de ces 2 cellules et en supprimant la seconde cellule.
On remplace :
<tr>
<td>Cellule</td>

CEFII - Archimede Informatique - 11 Place Smard - 49100 Angers - 02.41.72.19.78 - contact@cefii.fr


RCS d'Angers : 483 772 570 00048 - Code NAF 6201 Z - Numro prestataire de formation : 52 49 02488 49

<td>Cellule</td>
</tr>
par :
<tr>

<td colspan="2">Cellule</td>

</tr>
Enfin, peaufinons le rsultat : dans l'nonc, le texte des cellules est centr. Ajoutons donc une proprit de style dans la section <head> :
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
td {text-align : center;}
</style>
</head>
Voil, nous avons notre rsultat attendu ! Le code final est le suivant :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>
td {text-align : center;}
</style>
</head>
<body>
<table border="1px" width="300px">
<tr>
<th>Colonne 1</th>
<th>Colonne 2</th>
<th>Colonne 3</th>
</tr>

CEFII - Archimede Informatique - 11 Place Smard - 49100 Angers - 02.41.72.19.78 - contact@cefii.fr


RCS d'Angers : 483 772 570 00048 - Code NAF 6201 Z - Numro prestataire de formation : 52 49 02488 49

<tr>

<td rowspan="3">Cellule</td>
<td>Cellule</td>
<td>Cellule</td>

</tr>
<tr>
<td>Cellule</td>
<td>Cellule</td>
</tr>
<tr>
</tr>
</table>
</body>
</html>

<td colspan="2">Cellule</td>

CEFII - Archimede Informatique - 11 Place Smard - 49100 Angers - 02.41.72.19.78 - contact@cefii.fr


RCS d'Angers : 483 772 570 00048 - Code NAF 6201 Z - Numro prestataire de formation : 52 49 02488 49

Вам также может понравиться

  • Corrections QCM T1
    Corrections QCM T1
    Документ32 страницы
    Corrections QCM T1
    p.segoulin
    Оценок пока нет
  • TP Zoo
    TP Zoo
    Документ2 страницы
    TP Zoo
    el_mamoun1
    Оценок пока нет
  • Héritage
    Héritage
    Документ10 страниц
    Héritage
    el_mamoun1
    Оценок пока нет
  • Fiches Java
    Fiches Java
    Документ5 страниц
    Fiches Java
    el_mamoun1
    Оценок пока нет
  • Devoir Maison 2011 02 11
    Devoir Maison 2011 02 11
    Документ4 страницы
    Devoir Maison 2011 02 11
    el_mamoun1
    Оценок пока нет
  • Cours Android
    Cours Android
    Документ144 страницы
    Cours Android
    el_mamoun1
    Оценок пока нет
  • Heritage
    Heritage
    Документ12 страниц
    Heritage
    Youssef Bouanan
    Оценок пока нет
  • Cours BD
    Cours BD
    Документ186 страниц
    Cours BD
    el_mamoun1
    Оценок пока нет
  • Receuil D'exercices TD Langage C
    Receuil D'exercices TD Langage C
    Документ9 страниц
    Receuil D'exercices TD Langage C
    el_mamoun1
    Оценок пока нет
  • TP 3 SQL LMD
    TP 3 SQL LMD
    Документ3 страницы
    TP 3 SQL LMD
    api-26420184
    44% (9)
  • 13L2-Corrige Examen BDD
    13L2-Corrige Examen BDD
    Документ3 страницы
    13L2-Corrige Examen BDD
    el_mamoun1
    100% (5)
  • Java 9 Enregistrement Fichier PDF
    Java 9 Enregistrement Fichier PDF
    Документ6 страниц
    Java 9 Enregistrement Fichier PDF
    el_mamoun1
    Оценок пока нет
  • Partiel C 11 12
    Partiel C 11 12
    Документ2 страницы
    Partiel C 11 12
    el_mamoun1
    Оценок пока нет
  • BDD TD6 PDF
    BDD TD6 PDF
    Документ2 страницы
    BDD TD6 PDF
    el_mamoun1
    Оценок пока нет
  • TD 1 Merise PDF
    TD 1 Merise PDF
    Документ3 страницы
    TD 1 Merise PDF
    el_mamoun1
    100% (3)
  • Partiel C 14 15 Corr
    Partiel C 14 15 Corr
    Документ8 страниц
    Partiel C 14 15 Corr
    el_mamoun1
    Оценок пока нет
  • Partiel C 11 12
    Partiel C 11 12
    Документ2 страницы
    Partiel C 11 12
    el_mamoun1
    Оценок пока нет
  • Partiel C 14 15
    Partiel C 14 15
    Документ2 страницы
    Partiel C 14 15
    el_mamoun1
    Оценок пока нет
  • ASD2
    ASD2
    Документ40 страниц
    ASD2
    el_mamoun1
    100% (1)
  • BDD TD5
    BDD TD5
    Документ2 страницы
    BDD TD5
    el_mamoun1
    Оценок пока нет
  • Serie7 PDF
    Serie7 PDF
    Документ2 страницы
    Serie7 PDF
    el_mamoun1
    Оценок пока нет
  • BDD TD6 PDF
    BDD TD6 PDF
    Документ2 страницы
    BDD TD6 PDF
    el_mamoun1
    Оценок пока нет
  • BDD TD5
    BDD TD5
    Документ2 страницы
    BDD TD5
    el_mamoun1
    Оценок пока нет
  • 2008 Info0503 CM1 PDF
    2008 Info0503 CM1 PDF
    Документ60 страниц
    2008 Info0503 CM1 PDF
    el_mamoun1
    Оценок пока нет
  • Formerise
    Formerise
    Документ38 страниц
    Formerise
    Jean-Louis Didier KABONDO
    Оценок пока нет
  • Propriété Définie Sur Le Schéma
    Propriété Définie Sur Le Schéma
    Документ4 страницы
    Propriété Définie Sur Le Schéma
    Yassine El Malyh
    Оценок пока нет
  • Cours ANALYSE CONCEPTUELLE
    Cours ANALYSE CONCEPTUELLE
    Документ7 страниц
    Cours ANALYSE CONCEPTUELLE
    firstN lastN
    Оценок пока нет
  • Développement WEB: Apprendre Le Au Lycée
    Développement WEB: Apprendre Le Au Lycée
    Документ54 страницы
    Développement WEB: Apprendre Le Au Lycée
    ahmed rekik
    Оценок пока нет
  • 3AF Fiches
    3AF Fiches
    Документ51 страница
    3AF Fiches
    Khadi Eddou
    Оценок пока нет
  • La Division Des Nombres Entiers CM2
    La Division Des Nombres Entiers CM2
    Документ8 страниц
    La Division Des Nombres Entiers CM2
    melissa archambaud
    Оценок пока нет
  • Ecrire Un Csimple - Lyle SOBORO
    Ecrire Un Csimple - Lyle SOBORO
    Документ116 страниц
    Ecrire Un Csimple - Lyle SOBORO
    Franck Anzan
    Оценок пока нет
  • BacBlanc - STI - VF - PDF Version 1
    BacBlanc - STI - VF - PDF Version 1
    Документ8 страниц
    BacBlanc - STI - VF - PDF Version 1
    Raouf Elwazr
    Оценок пока нет
  • Guide Étudiant FPL2020
    Guide Étudiant FPL2020
    Документ12 страниц
    Guide Étudiant FPL2020
    Alae Elbakkali
    Оценок пока нет
  • Chapitre2langagehtml 1
    Chapitre2langagehtml 1
    Документ13 страниц
    Chapitre2langagehtml 1
    PROF PROF
    Оценок пока нет
  • Représentation Des Caractères: A.Vigier 1
    Représentation Des Caractères: A.Vigier 1
    Документ22 страницы
    Représentation Des Caractères: A.Vigier 1
    Mithil Krishnan
    Оценок пока нет
  • Swift
    Swift
    Документ2 страницы
    Swift
    Jude
    Оценок пока нет
  • TD Net
    TD Net
    Документ9 страниц
    TD Net
    stephaniemakeu7
    Оценок пока нет
  • E htmlCssExercice
    E htmlCssExercice
    Документ36 страниц
    E htmlCssExercice
    Jameson Moise
    Оценок пока нет
  • Rib
    Rib
    Документ1 страница
    Rib
    Laurent Dumit
    Оценок пока нет
  • Cours SEG Partie2word2018
    Cours SEG Partie2word2018
    Документ191 страница
    Cours SEG Partie2word2018
    ham don
    Оценок пока нет
  • Cr├йer un diaporama en HTML et CSS - Pierre Giraud - 1645607157281
    Cr├йer un diaporama en HTML et CSS - Pierre Giraud - 1645607157281
    Документ15 страниц
    Cr├йer un diaporama en HTML et CSS - Pierre Giraud - 1645607157281
    Roger gnanih
    Оценок пока нет
  • Modèle Mémoire Master
    Modèle Mémoire Master
    Документ17 страниц
    Modèle Mémoire Master
    ghada
    Оценок пока нет
  • Vox Atypi
    Vox Atypi
    Документ4 страницы
    Vox Atypi
    Cédric Chateau
    Оценок пока нет
  • Correction Interrogation 1
    Correction Interrogation 1
    Документ3 страницы
    Correction Interrogation 1
    melazem rym
    Оценок пока нет
  • Marie Laforêt - La Valse Des Petits Chiens Blancs
    Marie Laforêt - La Valse Des Petits Chiens Blancs
    Документ3 страницы
    Marie Laforêt - La Valse Des Petits Chiens Blancs
    Alain
    Оценок пока нет
  • Cours 1expose Oral Et Ecrit
    Cours 1expose Oral Et Ecrit
    Документ16 страниц
    Cours 1expose Oral Et Ecrit
    Fleur Ghriss
    Оценок пока нет
  • 2022-12-e-relevé-MR MELICIO SILVA VALDO-CCP
    2022-12-e-relevé-MR MELICIO SILVA VALDO-CCP
    Документ4 страницы
    2022-12-e-relevé-MR MELICIO SILVA VALDO-CCP
    sabeel adil
    100% (2)
  • Examen Théorique DEV
    Examen Théorique DEV
    Документ3 страницы
    Examen Théorique DEV
    ziko
    Оценок пока нет
  • Filetype PDF Confidentiel
    Filetype PDF Confidentiel
    Документ2 страницы
    Filetype PDF Confidentiel
    Jason
    0% (1)
  • DEVIS DU PROJET D'imprimerie PDF
    DEVIS DU PROJET D'imprimerie PDF
    Документ2 страницы
    DEVIS DU PROJET D'imprimerie PDF
    Muhole Nzika Yves
    Оценок пока нет
  • Développement D'Applications Web: Formation Aide Ingénieur-Info
    Développement D'Applications Web: Formation Aide Ingénieur-Info
    Документ56 страниц
    Développement D'Applications Web: Formation Aide Ingénieur-Info
    aoued safa
    Оценок пока нет
  • TP7 Web2017 - 2018 PDF
    TP7 Web2017 - 2018 PDF
    Документ11 страниц
    TP7 Web2017 - 2018 PDF
    Môstfâ Mrabet
    Оценок пока нет
  • PDF
    PDF
    Документ19 страниц
    PDF
    ziti
    100% (1)
  • DevWeb Examen Corrig
    DevWeb Examen Corrig
    Документ2 страницы
    DevWeb Examen Corrig
    Med Se
    Оценок пока нет
  • FD x50 174 PDF
    FD x50 174 PDF
    Документ2 страницы
    FD x50 174 PDF
    Nino
    100% (2)
  • Chap1 XML Introduction XML
    Chap1 XML Introduction XML
    Документ26 страниц
    Chap1 XML Introduction XML
    dhaouadi hazem
    Оценок пока нет
  • Comprendre XSLT
    Comprendre XSLT
    Документ287 страниц
    Comprendre XSLT
    Samanis Bat
    100% (1)