Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created March 6, 2020 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save codecademydev/14fbde3adfd7a38a2f3e37ca3e7f2bb3 to your computer and use it in GitHub Desktop.
Save codecademydev/14fbde3adfd7a38a2f3e37ca3e7f2bb3 to your computer and use it in GitHub Desktop.
Codecademy export
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="styles.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
<title>Semantic HTML elements</title>
</head>
<body>
<header>
<h1>Semantic HTML elements</h1>
</header>
<main>
<h2>The main one:</h2>
<table>
<thead>
<tr>
<th>Tag</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>&lt;header&gt;</td>
<td>Header</td>
<td>Specifies a header for a document or section</td>
</tr>
<tr>
<td>&lt;nav&gt;</td>
<td>Navigation</td>
<td>Defines a set of navigation links</td>
</tr>
<tr>
<td>&lt;section&gt;</td>
<td>Section</td>
<td>Defines a section in a document</td>
</tr>
<tr>
<td>&lt;article&gt;</td>
<td>Article</td>
<td>Specifies independent, self-contained content</td>
</tr>
<tr>
<td>&lt;aside&gt;</td>
<td>Aside</td>
<td>defines some content aside from the content it is placed in</td>
</tr>
<tr>
<td>&lt;footer&gt;</td>
<td>Footer</td>
<td>Specifies a footer for a document or section</td>
</tr>
</tbody>
</table>
<h2>Other:</h2>
<table>
<thead>
<tr>
<th>Tag</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>&lt;details&gt;</td>
<td>Details</td>
<td>Defines additional details that the user can view or hide</td>
</tr>
<tr>
<td>&lt;figcaption&gt;</td>
<td>Fig. caption</td>
<td>Defines a caption for a &lt;figure&gt; element</td>
</tr>
<tr>
<td>&lt;figure&gt;</td>
<td>Figure</td>
<td>Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.</td>
</tr>
<tr>
<td>&lt;main&gt;</td>
<td>Main</td>
<td>Specifies the main content of a document</td>
</tr>
<tr>
<td>&lt;mark&gt;</td>
<td>Marked</td>
<td>Defines marked/highlighted text</td>
</tr>
<tr>
<td>&lt;summary&gt;</td>
<td>Summary</td>
<td>Defines a visible heading for a &lt;details&gt; element</td>
</tr>
<tr>
<td>&lt;time&gt;</td>
<td>Time</td>
<td>Defines a date/time</td>
</tr>
</tbody>
</table>
</main>
</body>
</html>
body {
font-family: 'Roboto Mono', arial;
background-color: black;
color: white;
letter-spacing: 1px;
}
h1 {
text-align: center;
text-transform: uppercase;
}
h2 {
margin-top: 80px;
text-align: center;
text-decoration: underline;
}
table {
margin: 80px auto;
max-width: 750px;
border: 2px solid white;
}
th, td {
border: 2px solid white;
padding: 5px 10px;
color: aqua;
}
th {
color: red;
text-transform: uppercase;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment