Skip to content

Instantly share code, notes, and snippets.

@orue
Created December 3, 2022 04:08
Show Gist options
  • Save orue/923cdbfb6c604ba5d6203365b668f374 to your computer and use it in GitHub Desktop.
Save orue/923cdbfb6c604ba5d6203365b668f374 to your computer and use it in GitHub Desktop.
create a menu with an unorder list
<!DOCTYPE html>
<html>
<head>
<style>
ul {
list-style-type: none;
}
li {
float: left;
}
li a {
display: block;
padding: 16px;
text-decoration: none;
}
</style>
</head>
<body>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">About</a></li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment