Professional Documents
Culture Documents
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>q1</title>
<style>
ul{
list-style: none;
display: inline-block;
}
li{
float: left;
a:hover{ color
: blue;
}
</style>
</head>
<body>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</nav>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-
width, initial- scale=1.0">
<title>Document</title>
<style>
a:link{ co
lor:
green;
}
a:visited{
color:
purple;
}
a:hover{ c
olor:
black;
}
a:active{ c
olor:
yellow;
}
</style>
</head>
<body>
<h2>Following are the colors I used in different states of
css links:</h2>
<ul>
OUTPUT
</style>
</head>
<body>
<h1>UNORDERED LIST</h1>
<ul>
<li>Home</li>
<li>About Us</li>
<li>Contact</li>
</ul>
<h1>ORDERED LIST</h1>
<ol>
<li>Home</li>
<li>About Us</li>
<li>Contact</li>
Harshit Chaturvedi 27 Sec - C
</ol>
</body>
</html>
Output