π What You Will Learn
- How responsive layouts adapt to screen size
- How CSS and JavaScript work together
- Basic DOM manipulation using JavaScript
π What You Have To Do
-
Create a navigation bar that includes:
- Website name or logo
- 3β4 navigation links
-
For desktop screens:
- Navigation links should be visible
-
For mobile screens:
- Hide the navigation links
- Show a hamburger (β°) icon
-
When the hamburger icon is clicked:
- Show or hide the navigation menu using JavaScript
π Where To Work
webdev/contributors/<your_enrollment_number>/task-02/
βοΈ Mandatory Explanation (explanation.md)
Inside the same folder, create a file named:
In this file, explain in your own words:
-
What this task was trying to teach you
(Why responsive navbars are important in real websites)
-
How you designed the navbar structure
(HTML structure and why you chose it)
-
How responsiveness was handled
(Media queries, breakpoints, desktop vs mobile logic)
-
How JavaScript controls the menu
(What happens when the hamburger icon is clicked)
-
What you learned from this task
(New concepts, mistakes, or realizations)
-
What you think is good and what could be improved
(Code clarity, responsiveness, UX, etc.)
-
Any difficulties or thoughts you had while working
β οΈ This explanation must be written personally by you.
Generic or AI-generated explanations will be rejected.
β
When Is This Task Complete?
- Navbar works correctly on both desktop and mobile
- Hamburger menu toggles properly
- JavaScript logic is simple and readable
explanation.md is present and meaningful
β Rules
- β No libraries (React, jQuery, etc.)
- β No inline JavaScript (
onclick)
- β No copy-pasted navbar code
- β No copied explanations
π§ Mentor Note (For Contributors)
A responsive navbar is one of the most common real-world UI problems.
Focus on understanding, not complexity.
π What You Will Learn
π What You Have To Do
Create a navigation bar that includes:
For desktop screens:
For mobile screens:
When the hamburger icon is clicked:
π Where To Work
βοΈ Mandatory Explanation (
explanation.md)Inside the same folder, create a file named:
In this file, explain in your own words:
What this task was trying to teach you
(Why responsive navbars are important in real websites)
How you designed the navbar structure
(HTML structure and why you chose it)
How responsiveness was handled
(Media queries, breakpoints, desktop vs mobile logic)
How JavaScript controls the menu
(What happens when the hamburger icon is clicked)
What you learned from this task
(New concepts, mistakes, or realizations)
What you think is good and what could be improved
(Code clarity, responsiveness, UX, etc.)
Any difficulties or thoughts you had while working
β When Is This Task Complete?
explanation.mdis present and meaningfulβ Rules
onclick)π§ Mentor Note (For Contributors)