A compact product navbar with a clear current-page state and semantic landmark.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Simple Navbar</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="dy-nav dy-nav__bar" aria-label="Primary"><a class="dy-nav__brand" href="/">Northstar</a><div class="dy-nav__links"><a href="#product" aria-current="page">Product</a><a href="#pricing">Pricing</a><a href="#about">About</a></div></nav>
</body>
</html>
Copy HTML + CSS Download ZIP
A balanced navigation bar that separates informational links from the primary action.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Navbar with CTA</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="dy-nav dy-nav__bar" aria-label="Primary"><a class="dy-nav__brand" href="/">Keystone</a><div class="dy-nav__links"><a href="#features">Features</a><a href="#docs">Docs</a></div><div class="dy-nav__actions"><a href="#signin">Sign in</a><a class="dy-nav__cta" href="#start">Start free</a></div></nav>
</body>
</html>
Copy HTML + CSS Download ZIP
A three-column navbar that keeps navigation centred while retaining edge actions.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Centered Navbar</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="dy-nav dy-nav__bar dy-nav__center" aria-label="Primary"><a class="dy-nav__brand" href="/">Orbit</a><div class="dy-nav__links"><a href="#work">Work</a><a href="#services">Services</a><a href="#journal">Journal</a></div><div class="dy-nav__actions"><a href="#contact">Contact</a></div></nav>
</body>
</html>
Copy HTML + CSS Download ZIP
04
Responsive Mobile Navbar # A native disclosure-based mobile menu with keyboard-operable links and no JavaScript dependency.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Responsive Mobile Navbar</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="dy-nav"><nav class="dy-nav__bar dy-nav__mobile" aria-label="Primary"><a class="dy-nav__brand" href="/">Canvas</a><details class="dy-nav__menu"><summary>Menu</summary><nav aria-label="Mobile"><a href="#overview">Overview</a><a href="#templates">Templates</a><a href="#pricing">Pricing</a><a href="#signin">Sign in</a></nav></details></nav></div>
</body>
</html>
Copy HTML + CSS Download ZIP
A restrained dark translucent navigation surface for use over simple hero backgrounds.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Transparent Navbar</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="dy-nav dy-nav__bar dy-nav__transparent" aria-label="Primary"><a class="dy-nav__brand" href="/">Aperture</a><div class="dy-nav__links"><a href="#platform" aria-current="page">Platform</a><a href="#customers">Stories</a><a href="#company">Company</a></div><a class="dy-nav__cta" href="#demo">Book demo</a></nav>
</body>
</html>
Copy HTML + CSS Download ZIP
An application header with workspace context, search and clearly labelled account access.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dashboard Navbar</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="dy-nav dy-nav__bar" aria-label="Dashboard"><a class="dy-nav__brand" href="#dashboard">Atlas / Design</a><div class="dy-nav__actions"><a href="#search">Search</a><a href="#help">Help</a><a href="#account" aria-label="Open account for Alex Morgan">AM</a></div></nav>
</body>
</html>
Copy HTML + CSS Download ZIP
An ordered breadcrumb trail that exposes the current location without making it a link.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Breadcrumb Navigation</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="dy-nav dy-breadcrumb" aria-label="Breadcrumb"><ol><li><a href="#home">Home</a></li><li><a href="#components">Components</a></li><li><span aria-current="page">Navigation</span></li></ol></nav>
</body>
</html>
Copy HTML + CSS Download ZIP
10
Tabs and Sub-navigation # Link-based sub-navigation for real routes, with a truthful current-page indicator.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tabs and Sub-navigation</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="dy-nav dy-tabs" aria-label="Project sections"><div class="dy-nav__links"><a href="#overview" aria-current="page">Overview</a><a href="#activity">Activity</a><a href="#members">Members</a><a href="#settings">Settings</a></div></nav>
</body>
</html>
Copy HTML + CSS Download ZIP