-
-
Save codecademydev/68d0ba3c58b17456686fb9e0dfe39c5d 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>Semantic HTML Reference</title> | |
<link href="./styles.css" type="text/css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="head"> | |
<h1 id="head-title">Semantic HTML Reference</h1> | |
<img src="https://assets.hongkiat.com/uploads/html-5-semantics/document-outline-example.jpg"/> | |
</div> | |
<div class="table"> | |
<h2 class="secondTitle">Semantic Basic Tags</h2> | |
<table border = 1> | |
<thead> | |
<tr> | |
<th scope="col">Tag</th> | |
<th scope="col">Name</th> | |
<th scope="col">Description</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td class="Tag"><header></td> | |
<td>header</td> | |
<td class="description">a container for navigational links or introductory content</td> | |
</tr> | |
<tr> | |
<td class="Tag"><nav></td> | |
<td>navigation</td> | |
<td class="description">define a block of navigation links</td> | |
</tr> | |
<tr> | |
<td class="Tag"><main></td> | |
<td>main</td> | |
<td class="description">encapsulate the dominant content within a webpage</td> | |
</tr> | |
<tr> | |
<td class="Tag"><footer></td> | |
<td>footer</td> | |
<td class="description">The content at the bottom of the subject information</td> | |
</tr> | |
</tbody> | |
</table> | |
<h2 class="secondTitle">Semantic Other Tags</h2> | |
<table border = 1> | |
<thead> | |
<tr> | |
<th scope="col">Tag</th> | |
<th scope="col">Name</th> | |
<th scope="col">Description</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td class="Tag"><section></td> | |
<td>section</td> | |
<td class="description">defineds elements in a documment</td> | |
</tr> | |
<tr> | |
<td class="Tag"><article></td> | |
<td>article</td> | |
<td class="description">hold content that makes sense on its own</td> | |
</tr> | |
<tr> | |
<td class="Tag"><aside></td> | |
<td>aside</td> | |
<td class="description">used to mark additional information that can enhance another element</td> | |
</tr> | |
<tr> | |
<td class="Tag"><figure></td> | |
<td>figure</td> | |
<td class="description">encapsulate media</td> | |
</tr> | |
<tr> | |
<td class="Tag"><figcaption></td> | |
<td>figcaption</td> | |
<td class="description">describe the media</td> | |
</tr> | |
<tr> | |
<td class="Tag"><audio></td> | |
<td>audio</td> | |
<td class="description">embed audion content into a document</td> | |
</tr> | |
<tr> | |
<td class="Tag"><video></td> | |
<td>video</td> | |
<td class="description">makes it clear that a developer is attempting to display a video to the user</td> | |
</tr> | |
<tr> | |
<td class="Tag"><embed></td> | |
<td>embed</td> | |
<td class="description">embed any media content</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
</body> | |
<footer></footer> | |
</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 { | |
font-family: ; | |
background-color: Beige; | |
text-align: center; | |
} | |
thead { | |
background-color: #aab5ff; | |
} | |
tbody { | |
background-color: #47589b; | |
color: White; | |
} | |
.secondTitle { | |
color: MidnightBlue; | |
font-weight: bold; | |
} | |
.Tag { | |
color: Thistle; | |
} | |
#head-title { | |
color: MediumVioletRed; | |
} | |
table { | |
display: table; | |
border: 2px solid SlateBlue; | |
text-align: center; | |
width: 650px; | |
margin: 0 auto; | |
} | |
.description { | |
text-align: left; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment