Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Design a navigation bar with dropdown menus.

Medium

Problem Statement

Design a navigation bar with dropdown menus.

Sample Output

The navigation bar has dropdown menus that appear when hovered.

Limits

Time: 2s · Memory: 256 MB

Code Editor

Try your code in this preview. Submit marks it done.

<!DOCTYPE html> <html> <head> <style> /* Add CSS here to style the navigation bar with dropdowns */ </style> </head> <body> <nav> <ul class="menu"> <li>Home</li> <li> About <ul class="dropdown"> <li>Team</li> <li>Company</li> </ul> </li> <li>Contact</li> </ul> </nav> </body> </html>

Document

To view the HTML changes, please type the code within the editor