Toggle navigation
☰
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html> <head> <title>Navigation Bar with Logo Example</title> <style> nav { font-family: Arial, Helvetica, sans-serif; background-color: #333; color: white; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; } .logo { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: white; } nav ul { list-style: none; margin: 0; padding: 0; display: flex; } nav li a { display: block; color: white; padding: 20px 15px; text-decoration: none; } nav li a:hover { background-color: #111; } </style> </head> <body> <nav> <a href="#" class="logo">MySite</a> <ul> <li><a href="#">Home</a></li> <li><a href="#">Shop</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </nav> </body> </html>