Last active
October 2, 2022 10:18
-
-
Save SFaulk34/ffe3839bdd0a4416b3cf0715fda8f8ba to your computer and use it in GitHub Desktop.
CodeacademyCheatSheet
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> | |
<header> | |
<title>HTML Table Cheatsheet!</title> | |
<link href="styles.css" rel="stylesheet" type="text/css"> | |
</header> | |
<body> | |
<head> | |
<h1>HTML Table Reference</h1> | |
<h2>Table Tags</h2> | |
</head> | |
<main> | |
<table class="table"> | |
<thead> | |
<tr> | |
<th class="tag">Tag</th> | |
<th class="name">Name</th> | |
<th class="description">Description</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td class="c1"><span><table></span></td> | |
<td class="c2">Table</td> | |
<td class="c3">The Wrapper element for all HTML tables.</td> | |
</tr> | |
<tr> | |
<td class="c1"><span><thead></span></td> | |
<td class="c2">Table Head</td> | |
<td class="c3">The set of rows defining the column headers in a table.</td> | |
</tr> | |
<tr> | |
<td class="c1"><span><tbody></span></td> | |
<td class="c2">Table Body</td> | |
<td class="c3">The set of rows containg actual table data.</td> | |
</tr> | |
<tr> | |
<td class="c1"><span><tr></span></td> | |
<td class="c2">Table Row</td> | |
<td class="c3">The table row container.</td> | |
</tr> | |
<tr> | |
<td class="c1"><span><td></span></td> | |
<td class="c2">Table Data</td> | |
<td class="c3">The table row container.</td> | |
</tr> | |
<tr> | |
<td class="c1"><span><tfoot></span></td> | |
<td class="c2">Table Foot</td> | |
<td class="c3">The set of rows defining the footer in a table.</td> | |
</tr> | |
</tbody> | |
</table> | |
</main> | |
<footer> | |
<h2>Table Attributes</h2> | |
<table class="table"> | |
<thead> | |
<tr> | |
<th>Attribute</th> | |
<th>Name</th> | |
<th>Description</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td class="c1"><span>colspan</span></td> | |
<td class="c2">Column Span</td> | |
<td class="c3">Defines how many columns a td element should span.</td> | |
</tr> | |
<tr> | |
<td class="c1"><span>rowspan</span></td> | |
<td class="c2">Row Span</td> | |
<td class="c3">Defines how many rows a td elemnent should span.</td> | |
</tr> | |
</tbody> | |
</table> | |
</footer> | |
</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
* { | |
box-sizing: border-box; | |
text-align: center; | |
} | |
h1 { | |
font-family: sans-serif; | |
text-align: center; | |
} | |
span { | |
background-color: #F8F9DF; | |
} | |
h2 { | |
color: #9932CC; | |
text-align: center; | |
font-family: sans-serif; | |
} | |
th { | |
background-color: rgba(255,0,255,0.2); | |
font-family: sans-serif; | |
text-align: center; | |
} | |
td { | |
font-family: sans-serif; | |
text-align: left; | |
margin: 0; | |
padding: 0; | |
} | |
.table { | |
border: solid darkviolet 2px; | |
margin: 0 auto; | |
padding: 0 auto; | |
background-color: #e8e8e8; | |
} | |
.c1 { | |
font-family: monospace; | |
font-size: 13px; | |
width: 80px; | |
text-align: left, center; | |
border-top: solid darkorchid 1px; | |
} | |
.c2 { | |
text-align: left; | |
display: grid; | |
width: 120px; | |
font-size: 15px; | |
border-top: solid darkorchid 1px; | |
} | |
.c3 { | |
text-align: left; | |
width: 500px; | |
font-size: 15px; | |
border-top: solid darkorchid 1px; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment