Web Exp1
Web Exp1
1.Index.html file
<!DOCTYPE html>
<html lang="en">
<head>
<title>College Website</title>
</head>
<body>
</header>
<nav>
<a href="#home">Home</a>
<a href="#courses">Courses</a>
<a href="#faculty">Faculty</a>
<a href="#library">Library</a>
</nav>
<div class="container">
<section id="courses">
<h2>Courses Offered</h2>
<p>
</p>
<ul>
</ul>
</section>
<section id="departments">
<h2>Departments</h2>
<ul>
<li><a href="#arts">Arts</a></li>
</ul>
</section>
<section id="faculty">
<h2>Faculty</h2>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
</section>
<section id="library">
<h2>Library</h2>
<p>
</p>
<ul>
</ul>
</section>
</div>
<footer>
<p>Email: [email protected]</p>
</footer>
</body>
</html>
2. styles.css file
body {
margin: 0;
padding: 0;
nav {
overflow: hidden;
color: white;
nav a:hover {
background-color: #ddd;
h2 {
color: #333;
ul {
list-style-type: disc;
padding-left: 2rem;
li {
margin: 5px 0;
footer {
background-color: #333;
color: white;
padding: 20px 0;
text-align: center;
.footer-content {
display: flex;
justify-content: space-evenly;
a{
text-decoration: none;
}
Output:
Web Technologies Lab
CIE-356P