Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 25 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="style.css" />

</head>
<body>

</body>
</html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>News Article</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Exploring the Depths of the Ocean</h1>
</header>
<section>
<h2>Discovering New Marine Life</h2>
<p>Scientists have recently discovered new marine life in the depths of the Pacific Ocean. This discovery opens up new possibilities for understanding ocean biodiversity.</p>
<img src="ocean-life.jpg" alt="Marine Life">
</section>
<section>
<h2>The Importance of Ocean Conservation</h2>
<p>Conservation efforts are crucial in preserving the natural beauty and diversity of the ocean. Efforts include protecting coral reefs and reducing plastic waste.</p>
</section>
<footer>
<p>For more information, visit the <a href="https://en.wikipedia.org/wiki/Ocean" target="_blank">Wikipedia page on Oceans</a>.</p>
<p>Jump back to the <a href="#top">top of the page</a>.</p>
</footer>
</body>
</html>
41 changes: 41 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
body {
background-color: #f0f8ff; /* Light blue background */
font-family: Arial, sans-serif;
}

header, section, footer {
margin: 0 auto;
width: 80%;
max-width: 800px;
}

h1, h2 {
color: #003366; /* Dark blue for headings */
text-align: center;
border-bottom: 2px solid #003366; /* Coloured underline for headers */
}

p {
font-size: 16px; /* Font size for paragraphs */
line-height: 1.6; /* Increased line spacing */
}

img {
display: block;
margin: 0 auto; /* Center-align images */
max-width: 100%;
height: auto;
}

footer {
text-align: center; /* Center-align footer content */
}

a {
color: #007bff; /* Link color */
text-decoration: none; /* No underline for links */
}

a:hover {
text-decoration: underline; /* Underline on hover for links */
}