-
-
Save codecademydev/71b133f7751789d00b3ff243714b2f4c to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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><table></span> | |
</td> | |
<td> Table </td> | |
<td> The wrapper element for all HTML tables. </td> | |
</tr> | |
<tr> | |
<td> | |
<span><thead></span> | |
</td> | |
<td> Table Head</td> | |
<td> The set of rows defining the column headers in a table. </td> | |
</tr> | |
<tr> | |
<td> | |
<span><tbody></span> | |
</td> | |
<td> Table Body</td> | |
<td> The set of rows containing actual table data. </td> | |
</tr> | |
<tr> | |
<td> | |
<span><tr></span> | |
</td> | |
<td> Table Row</td> | |
<td> The table row container. </td> | |
</tr> | |
<tr> | |
<td> | |
<span><td></span> | |
</td> | |
<td> Table Data</td> | |
<td> The table row container. </td> | |
</tr> | |
<tr> | |
<td> | |
<span><tfoot></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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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