Navigation Link
Remember to set up all pages first
<> index1.html>...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mrs. Leung Coding Class - Home</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Mrs. Leung Class</h1>
<nav class="navbar">
<ul>
<li><a href="index1.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="news.html">News</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<main>
<h3>Welcome to the Home Page</h3>
<p>
Welcome to Palmer Secondary Mrs. Leung's Web Design 11/12 class. In this course, students will learn the foundations of front-end development and basic web design tools.
</p>
</main>
</body>
</html>
<> about.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mrs. Leung Coding Class - About</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Mrs. Leung Class</h1><>
<nav class="navbar">
<ul>
<li><a href="index1.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="news.html">News</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<main>
<h3>About This Class</h3>
<p>
This is About Page
</p>
</main>
</body>
</html>
<>news.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mrs. Leung Coding Class - About</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Mrs. Leung Class</h1>
<nav class="navbar">
<ul>
<li><a href="index.html1">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="news.html">News</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<main>
<h3>About This Class</h3>
<p>
This is News Page
</p>a
</main>
</body>
</html>
<> contact.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mrs. Leung Coding Class - Contact</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Mrs. Leung Class</h1>
<nav class="navbar">
<ul>
<li><a href="index.html1">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="news.html">News</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<main>
<h3>Contact</h3>
<p>
This is Contact Page
</p>
</main>
</body>
</html>
<> style.css
main {
width: 800px;
margin: 30px auto;
}
.navbar ul {
list-style-type: none;
background-color: rgb(115, 115, 222);
padding: 0;
margin: 0;
text-align: center; /* centers all <li> inline-block items */
}
.navbar li {
display: inline-block; /* makes list items sit next to each other */
}
.navbar a {
color: white;
text-decoration: none;
padding: 15px;
display: inline-block; /* keeps padding clickable */
}