0% found this document useful (0 votes)
8 views4 pages

MG Piedad Activity 1

The document contains HTML code for a simple webpage featuring a horizontal navigation bar with links to Home, News, Contact, and About pages. It includes styling for the navbar, text, and layout using CSS. The main content welcomes visitors to the page with a greeting and a title.

Uploaded by

mgrhynn2006
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

MG Piedad Activity 1

The document contains HTML code for a simple webpage featuring a horizontal navigation bar with links to Home, News, Contact, and About pages. It includes styling for the navbar, text, and layout using CSS. The main content welcomes visitors to the page with a greeting and a title.

Uploaded by

mgrhynn2006
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

MG Rhynn Piedad

Activity # 1:

Horizontal Navigation Bar

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:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy