Created
February 24, 2020 00:44
-
-
Save markLaughlin/c5ea830d20253c7a0e5084c0aa45664d to your computer and use it in GitHub Desktop.
A simple html table exercise
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>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"><img></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> |
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{ | |
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