1
0
Fork 0

Week 2: Adding Semantic HTML and CSS to Your Site

This commit is contained in:
Llewellyn van der Merwe 2021-09-11 09:07:13 +02:00
parent 315da22a50
commit 3e01fdf14c
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
2 changed files with 75 additions and 0 deletions

9
week-02/css/styles.css Normal file
View File

@ -0,0 +1,9 @@
#header_h1 {
color: red;
}
.home_article {
margin: 5px;
background-color: LightGray;
padding: 10px;
}

66
week-02/html/index.html Normal file
View File

@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- The head element contains machine-readable elements -->
<meta charset="UTF-8">
<!-- Page Title tag-->
<title>Llewellyn van der Merwe: Week 2</title>
<!-- Link tag to stylesheet -->
<link href="../css/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- All content goes in the body element -->
<!-- Header element -->
<!-- id header_h1 is set to color red -->
<header>
<h1 id="header_h1">Llewellyn van der Merwe</h1>
<!-- Nav tag -->
<nav>
<!-- Unordered list tag -->
<ul>
<!-- list item tag -->
<li>
<!-- a tag to create a link (empty for now) -->
<a href="">Link 1</a>
</li>
<li>
<a href="">Link 2</a>
</li>
<li>
<a href="">Link 3</a>
</li>
<li>
<a href="">Link 4</a>
</li>
</ul>
</nav>
</header>
<!-- Main element -->
<main>
<!-- Article element -->
<!-- class home_article is set to background color lightgray and padding 10px -->
<article class="home_article">
<!-- Header 2 tag -->
<h2>First Header</h2>
<!-- Paragraph tag -->
<p>Maecenas quis odio sit amet ipsum maximus egestas. Maecenas gravida magna vehicula quam pulvinar varius.
Vestibulum venenatis quam enim, a eleifend tortor blandit non. </p>
</article>
<article class="home_article">
<!-- Header 2 tag -->
<h2>Second Header</h2>
<!-- Paragraph tag -->
<p>Maecenas quis odio sit amet ipsum maximus egestas. Maecenas gravida magna vehicula quam pulvinar varius.
Vestibulum venenatis quam enim, a eleifend tortor blandit non. </p>
</article>
</main>
<!-- Footer element -->
<footer>
<!-- Paragraph tag -->
<p>Footer goes here.</p>
</footer>
</body>
</html>