Skip to content

Commit

Permalink
Moved CSS styling from inline to external file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniela Lemow authored and Daniela Lemow committed Jul 8, 2021
1 parent 88e8926 commit 58d97ad
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
23 changes: 12 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="stylesheets/index.css">
<title>Test Page: Don't Panic</title>
<meta charset="utf-8">
</head>
<body>
<h1>I'm an h1</h1>
<ul>
<li>
<a href="https://example.com/" style="color: red;">Link</a>
<a href="https://example.com/">Link</a>
</li>
<li>
<a href="https://example.com/" style="color: red;">Link</a>
<a href="https://example.com/">Link</a>
</li>
<li>
<a href="https://example.com/" style="color: red;">Link</a>
<a href="https://example.com/">Link</a>
</li>
</ul>
<h2>I'm an h2</h2>
<div style="border: 1px solid black;">
<a href="https://example.com/" style="color: green;">I'm a link</a>
<div>
<a href="https://example.com/">I'm a link</a>
</div>
<div style="border: 1px solid black;">
<a href="https://example.com/" style="color: green;">I'm a link</a>
<div>
<a href="https://example.com/">I'm a link</a>
</div>
<div style="border: 1px solid black;">
<a href="https://example.com/" style="color: green;">I'm a link</a>
<div>
<a href="https://example.com/">I'm a link</a>
</div>
<div style="border: 1px solid black;">
<a href="https://example.com/" style="color: green;">I'm a link</a>
<div>
<a href="https://example.com/">I'm a link</a>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions stylesheets/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
a {
color: red;
}

div {
border: 1px solid #000;
}

div a {
color: green;
}

0 comments on commit 58d97ad

Please sign in to comment.