-
-
Save codecademydev/d06e1116a37f047eef6bff62096573aa 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="styles.css"> | |
<title>HTML Table Reference</title> | |
</head> | |
<body> | |
<header> | |
<h1>HTML Table Reference</h1> | |
</header> | |
<main> | |
<h2>Table Tags</h2> | |
<table> | |
<thead> | |
<tr> | |
<th>tag</th> | |
<th>name</th> | |
<th>Description</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td><span class="tag"><table></span></td> | |
<td>Table</td> | |
<td>The wrapper element for all HTML tables.</td> | |
</tr> | |
<tr> | |
<td><span class="tag"><thead></span></td> | |
<td>Table</td> | |
<td>The set of rows defining the column headers in a table.</td> | |
</tr> | |
<tr> | |
<td><span class="tag"><tbody></span></td> | |
<td>Table Body</td> | |
<td>The set of rows containing actual table data.</td> | |
</tr> | |
<tr> | |
<td><span class="tag"><tr></span></td> | |
<td>Table Row</td> | |
<td> The table row container.</td> | |
</tr> | |
<tr> | |
<td><span class="tag"><td></span></td> | |
<td>Table Data</td> | |
<td>The table row container.</td> | |
</tr> | |
<tr> | |
<td><span class="tag"><tfoot></span></td> | |
<td>Table Foot</td> | |
<td>The set of rows defining the footer in a table.</td> | |
</tr> | |
</tbody> | |
</table> | |
<h2>Table Attributes</h2> | |
<table> | |
<thead> | |
<tr> | |
<th>Attribute</th> | |
<th>name</th> | |
<th>Description</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td><span class="tag"><colspan></span></td> | |
<td>Column Span</td> | |
<td>Defines how many columns a td element should span.</td> | |
</tr> | |
<tr> | |
<td><span class="tag"><rowspan></span></td> | |
<td>Row Span</td> | |
<td>Defines how many rows a td element should span.</td> | |
</tr> | |
</tbody> | |
</table> | |
</main> | |
</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; | |
} | |
/*font*/ | |
body { | |
font-family: Arial, Sans-serif; | |
} | |
/* header*/ | |
h1 { | |
text-align: center; | |
} | |
/*main*/ | |
h2 { | |
color: rebeccapurple; | |
text-align: center; | |
} | |
/*table*/ | |
table { | |
border: 2px solid plum; | |
margin: 0 auto; | |
width: 650px; | |
} | |
thead { | |
background-color: plum; | |
} | |
.tag { | |
font-family: monospace; | |
background-color: beige; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment