Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created May 19, 2021 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/4cf16ab9960ccf73051b11ce6812d30e to your computer and use it in GitHub Desktop.
Save codecademydev/4cf16ab9960ccf73051b11ce6812d30e to your computer and use it in GitHub Desktop.
Codecademy export
table {
border-collapse: collapse;
margin:auto;
font-weight: Arial, sans-serif;
background-color: gainsboro;
}
td {
border: 1px solid violet;
}
h1 {
text-align: center;
}
h2 {
color: rebeccapurple;
text-align: center;
font-size: 1.5em;
font-weight: bold;
}
th {
background-color: violet;
}
tr{
display: table-row;
vertical-align: inherit;
border-color: inherit;
}
<!DOCTYPE html>
<html>
<head>
<title>Revison</title>
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
<h1>Référence de table HTML</h1>
<h2>Balises de table</h2>
<table >
<thead>
<tr>
<th scope="col">Étiquter</th>
<th scope="col">Nom</th>
<th scope="col">La description</th>
</tr>
</thead>
<tbody>
<tr>
<td>&lt;table&gt;</td>
<td>Tableau</td>
<td>L'élément wrapper pour tous les tableaux HTML</td>
</tr>
<tr>
<td>&lt;thead&gt;</td>
<td>Tête de tableau</td>
<td>Ensemble de lignes définissant les en-têtes de colonne dans un tableau.</td>
</tr>
<tr>
<td>&lt;tbody&gt;</td>
<td>Corps de la table</td>
<td> Ensemble de lignes contenant des données de table réelles.</td>
</tr>
<tr>
<td>&lt;tr&gt;</td>
<td>Ligne de tableau</td>
<td>Le conteneur de ligne de table</td>
</tr>
<tr>
<td>&lt;td&gt;</td>
<td>Données de table</td>
<td>Le conteneur de ligne de table.</td>
</tr>
</tr>
<tr>
<td>&lt;tfoot&gt;</td>
<td>Pied de table</td>
<td>Ensemble de lignes définissant le pied de page dans un tableau.</td> <br>
</tbody>
</table>
</body>
<body>
<h2>Attributs de table</h2>
<table>
<thead>
<tr>
<th>Attribut</th>
<th>Nom</th>
<th>La desciption</th>
</tr>
<tr>
<td>&lt;colspan&gt;</td>
<td>Portée de la colonne</td>
<td>Définit le nombre de colonnes qu'un élément td doit couvrir.</td>
</tr>
<tr>
<td>&lt;rowspan&gt;</td>
<td>Envergure de la ligne</td>
<td>Définit le nombre de lignes qu'un élément td doit couvrir.</td>
</tr>
</thead>
</table>
</body>
</html>
@enikmaster
Copy link

enikmaster commented May 26, 2021

HTML
On line 45 you have a closing tag that does not close anything.
On line 46 you have a open tag that doesn't have a corresponding closing tag.
You have two body elements and convention states that you should have only one. If you want to add a second block, you should wrap things up with sections, articles or divs, what happens to be the best option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment