Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 28, 2020 05:44
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/71b133f7751789d00b3ff243714b2f4c to your computer and use it in GitHub Desktop.
Save codecademydev/71b133f7751789d00b3ff243714b2f4c to your computer and use it in GitHub Desktop.
Codecademy export
<!DOCTYPE html>
<html>
<head>
<title> Hoang Cheat Sheet </title>
<link rel="stylesheet" href="./styles.css" type="text/css">
</head>
<body>
<h1> HTML Table Reference </h1>
<h3> Table Tags </h3>
<table>
<thead>
<tr>
<th>Tag </th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span>&lt;table&gt;</span>
</td>
<td> Table </td>
<td> The wrapper element for all HTML tables. </td>
</tr>
<tr>
<td>
<span>&lt;thead&gt;</span>
</td>
<td> Table Head</td>
<td> The set of rows defining the column headers in a table. </td>
</tr>
<tr>
<td>
<span>&lt;tbody&gt;</span>
</td>
<td> Table Body</td>
<td> The set of rows containing actual table data. </td>
</tr>
<tr>
<td>
<span>&lt;tr&gt;</span>
</td>
<td> Table Row</td>
<td> The table row container. </td>
</tr>
<tr>
<td>
<span>&lt;td&gt;</span>
</td>
<td> Table Data</td>
<td> The table row container. </td>
</tr>
<tr>
<td>
<span>&lt;tfoot&gt;</span>
</td>
<td> Table Foot</td>
<td> The set of rows defining the footer in a table.</td>
</tr>
</tbody>
<tr>
</tr>
</table>
<hr>
<h3> Table Attributes </h3>
<table>
<thead>
<tr>
<th>Attributes</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span> colspan </span>
</td>
<td>Column Span</td>
<td>Defines how many columns a td element should span.</td>
</tr>
<tr>
<td>
<span> rowspan </span>
</td>
<td>Row Span</td>
<td>Defines how many rows a td element should span.</td>
</tr>
</tbody>
</table>
</body>
</html>
body {
background-color: gainsboro;
}
h1 {
text-align: center;
color:DarkViolet;
}
h3 {
text-align: center;
font-size: 22px;
}
span {
background-color: Cornsilk;
}
th {
font-weight: 800;
font-family: fangsong;
background-color: Orchid;
}
td {
border-top: 1px solid darkorchid;
}
table {
border:2px solid Blueviolet;
margin: 0 auto;
width: 650px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment