MG Piedad Activity 1
MG Piedad Activity 1
Activity # 1:
Code:
<!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">
<title>Navigation Bar</title>
<style>
.navbar {
display: flex;
justify-content: space-between;
background-color: rgb(0, 0, 0);
text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
}
.navbar ul {
list-style-type: none;
padding: 0;
display: flex;
margin: 0;
}
.navbar li {
list-style: none;
margin-left: 20px;
}
.navbar a {
color: #fff;
text-decoration: none;
padding: 15px;
display: block;
}
.navbar a:hover {
background-color: hsla(330, 65%, 59%, 0.87);
}
.navdiv {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo a {
color: white;
font-weight: 600;
font-size: 20px;
pointer-events: none;
}
main {
text-align: center;
margin: 0 20px;
}
h1 {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
text-align: center;
}
p {
font-size: 200%;
color: rgb(0, 0, 0);
}
h1 {
font-size: 300%;
color: rgb(207, 67, 144);
}
</style>
</head>
<body>
<nav class="navbar">
</div>
<ul>
<li><a href="index.html">HOME</a></li>
<li><a href="news.html">NEWS</a></li>
<li><a href="contact.html">CONTACT</a></li>
<li><a href="about.html">ABOUT</a></li>
</ul>
<div class="navdiv">
<div class="logo"><a href="#">MG Rhynn Piedad</a></div>
</nav>
<main>
<h1>WELCOME TO MY PAGE</h1>
<p>HELLO GUYS WASSUP WELCOME TO MY HOMEPAGE!!</p>
</main>
</body>
</html>
OUTPUT: