Skip to content

Instantly share code, notes, and snippets.

@markLaughlin
Created February 24, 2020 00:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markLaughlin/c5ea830d20253c7a0e5084c0aa45664d to your computer and use it in GitHub Desktop.
Save markLaughlin/c5ea830d20253c7a0e5084c0aa45664d to your computer and use it in GitHub Desktop.
A simple html table exercise
<!DOCTYPE html>
<html>
<head>
<title>Img Element Cheatsheet</title>
<link rel="stylesheet" href="./styles.css" type="text/css"/>
</head>
<body>
<h1>Img Tag Cheatsheet</h1>
<p></p>
<h2>The Tag</h2>
<p></p>
<table>
<thead>
<tr>
<th>Tag</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="code">&ltimg&gt</span>
</td>
<td>Image</td>
<td>Images can improve the style and appearance of the webpage</td>
</tr>
</tbody>
</table>
<p></p>
<h2>The Attributes</h2>
<table>
<thead>
<tr>
<th>Tag</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="code">Too</span>
</td>
<td>Many</td>
<td>Too list!</td>
</tr>
</tbody>
</table>
</body>
</html>
body{
text-align: center;
background-color: lightgray;
font-family: sans-serif;
}
h2{
color: purple;
}
.sborders {border-style: solid;}
.pback {
background-color: plum;
}
table {
border: 2px solid darkorchid;
width: 650px;
margin: 0 auto;
}
thead{
background-color: plum;
}
td{
border-top: 1px solid darkorchid;
text-align: left;
}
.code{
font-family: monospace;
background-color: beige;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment