{"id":946,"date":"2024-06-18T15:02:11","date_gmt":"2024-06-18T12:02:11","guid":{"rendered":"https:\/\/www.hawlast.com\/blog\/?p=946"},"modified":"2024-06-18T15:16:13","modified_gmt":"2024-06-18T12:16:13","slug":"responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js","status":"publish","type":"post","link":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/","title":{"rendered":"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS"},"content":{"rendered":"<p><strong>Responsive menu for your next HTML\/CSS Website\u00a0<\/strong><\/p>\n<p>This detailed tutorial on YouTube will give you the fundamentals of designing a responsive navigation bar using HTML, CSS and Javascript. Credit to http:\/\/www.youtube.com\/@Devistry<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/FNXgsTFrD7U?si=7AlMtjcrxvJ-LlMa\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>The full code for a responsive navigation bar using HTML\/CSS\/ JS is shown below: You are free to use the code below:<\/p>\n<h2>The HTML code for the responsive navigation menu<\/h2>\n<p><em><span style=\"color: #008000;\">&lt;nav id=&#8221;navbar&#8221; class=&#8221;navbar&#8221;&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;ul&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;li&gt;&lt;a href=&#8221;\/&#8221; class=&#8221;home&#8221;&gt;Home&lt;\/a&gt;&lt;\/a&gt;&lt;\/li&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;div class=&#8221;nav-toggle&#8221;&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;li&gt;&lt;a href=&#8221;text.html&#8221;&gt;About&lt;\/a&gt;&lt;\/li&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;li&gt;&lt;a href=&#8221;text.html&#8221;&gt;Services&lt;\/a&gt;&lt;\/li&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;li&gt;&lt;a href=&#8221;text.html&#8221;&gt;Prices &lt;\/a&gt;&lt;\/li&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;li&gt;&lt;a href=&#8221;text.html&#8221;&gt;Contacts&lt;\/a&gt;&lt;\/li&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;\/div&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;\/ul&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;button id=&#8221;hamburger-toggle&#8221; class=&#8221;hamburger&#8221;&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;div class=&#8221;icon-open&#8221;&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;svg xmlns=&#8221;http:\/\/www.w3.org\/2000\/svg&#8221; width=&#8221;24&#8243; height=&#8221;24&#8243; viewBox=&#8221;0 0 24 24&#8243; fill=&#8221;none&#8221; stroke=&#8221;currentColor&#8221; stroke-width=&#8221;2&#8243; stroke-linecap=&#8221;round&#8221; stroke-linejoin=&#8221;round&#8221; class=&#8221;icon icon-tabler icons-tabler-outline icon-tabler-menu-2&#8243;&gt;&lt;path stroke=&#8221;none&#8221; d=&#8221;M0 0h24v24H0z&#8221; fill=&#8221;none&#8221;\/&gt;&lt;path d=&#8221;M4 6l16 0&#8243; \/&gt;&lt;path d=&#8221;M4 12l16 0&#8243; \/&gt;&lt;path d=&#8221;M4 18l16 0&#8243; \/&gt;&lt;\/svg&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;\/div&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;div class=&#8221;icon-close&#8221;&gt;<\/span><\/em><br \/>\n<em><span style=\"color: #008000;\">&lt;svg xmlns=&#8221;http:\/\/www.w3.org\/2000\/svg&#8221; width=&#8221;24&#8243; height=&#8221;24&#8243; viewBox=&#8221;0 0 24 24&#8243; fill=&#8221;none&#8221; stroke=&#8221;currentColor&#8221; stroke-width=&#8221;2&#8243; stroke-linecap=&#8221;round&#8221; stroke-linejoin=&#8221;round&#8221; class=&#8221;icon icon-tabler icons-tabler-outline icon-tabler-x&#8221;&gt;&lt;path stroke=&#8221;none&#8221; d=&#8221;M0 0h24v24H0z&#8221; fill=&#8221;none&#8221;\/&gt;&lt;path d=&#8221;M18 6l-12 12&#8243; \/&gt;&lt;path d=&#8221;M6 6l12 12&#8243; \/&gt;&lt;\/svg&gt;<\/span><\/em><br \/>\n<span style=\"color: #008000;\"><em>&lt;\/div&gt;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>&lt;\/button&gt;<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>&lt;\/nav&gt;<\/em><\/span><\/p>\n<h2>The CSS code for the responsive navigation menu<\/h2>\n<p><span style=\"color: #008000;\"><em>body {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>margin: unset;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>font-family: Arial, sans-serif;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>background: blue;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>color: #ffffff;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>position: relative;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar ul {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>margin: unset;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>padding: unset;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>list-style:none;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: flex;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar a {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>padding: 1em;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>color: inherit;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>text-decoration:none;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: inline-block;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar a.home {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>background: #cc540e;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar a:hover {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>background: green;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar .nav-toggle {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: flex;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar .hamburger {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>position: absolute;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>top:0;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>right:0;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>border: unset;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>background: unset;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>cursor: pointer;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: none;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar .hamburger svg {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>stroke: #ffffff;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar .hamburger .icon-close {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: none;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>\/* Media Queries *\/<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>@media screen and (max-width: 650px) {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>.navbar.open ul {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: block;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar.open .nav-toggle {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: block;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar.open a {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: block;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar .nav-toggle {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: none;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar .hamburger {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: block;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar.open .hamburger .icon-open {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: none;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>.navbar.open .hamburger .icon-close {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>display: block;<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<h2>JavaScipt code to toggle the hamburger button<\/h2>\n<p><span style=\"color: #008000;\"><em>const hamburgerToggle = document.querySelector(&#8220;#hamburger-toggle&#8221;);<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>const navbar = document.querySelector(&#8220;#navbar&#8221;);<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>hamburgerToggle.addEventListener(&#8220;click&#8221;, onHamburgerClick);<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>function onHamburgerClick() {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>if(!navbar.classList.contains(&#8220;open&#8221;)) {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>navbar.classList.add(&#8220;open&#8221;);<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>} else {<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>navbar.classList.remove(&#8220;open&#8221;);<\/em><\/span><br \/>\n<span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<p><span style=\"color: #008000;\"><em>}<\/em><\/span><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Responsive menu for your next HTML\/CSS Website\u00a0 This detailed tutorial on YouTube will give you the fundamentals of designing a&hellip;<!-- AddThis Advanced Settings generic via filter on wp_trim_excerpt --><!-- AddThis Share Buttons generic via filter on wp_trim_excerpt --><\/p>\n","protected":false},"author":375,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[121,120],"class_list":["post-946","post","type-post","status-publish","format-standard","hentry","category-web-design-tips","tag-responsive-navigation","tag-resposive-menu"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Responsive menu for your next HTML\/CSS Website This detailed tutorial on YouTube will give you the fundamentals of designing a responsive navigation bar using HTML, CSS and Javascript. Credit to http:\/\/www.youtube.com\/@Devistry The full code for a responsive navigation bar using HTML\/CSS\/ JS is shown below: You are free to use the code below: The HTML\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Richard\"\/>\n\t<meta name=\"google-site-verification\" content=\"YZPXJE-6W2iSvgrFkQPcGRTh3md86Qv7PnNa0DTcA2g\" \/>\n\t<meta name=\"keywords\" content=\"responsive navigation,resposive menu,web design\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Hawlast Ventures Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS\" \/>\n\t\t<meta property=\"og:description\" content=\"Responsive menu for your next HTML\/CSS Website This detailed tutorial on YouTube will give you the fundamentals of designing a responsive navigation bar using HTML, CSS and Javascript. Credit to http:\/\/www.youtube.com\/@Devistry The full code for a responsive navigation bar using HTML\/CSS\/ JS is shown below: You are free to use the code below: The HTML\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.hawlast.com\/blog\/wp-content\/uploads\/2018\/08\/hawlast-get-online.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.hawlast.com\/blog\/wp-content\/uploads\/2018\/08\/hawlast-get-online.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-06-18T12:02:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-06-18T12:16:13+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hawlast\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@hawlast\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Responsive menu for your next HTML\/CSS Website This detailed tutorial on YouTube will give you the fundamentals of designing a responsive navigation bar using HTML, CSS and Javascript. Credit to http:\/\/www.youtube.com\/@Devistry The full code for a responsive navigation bar using HTML\/CSS\/ JS is shown below: You are free to use the code below: The HTML\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@hawlast\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.hawlast.com\/blog\/wp-content\/uploads\/2018\/08\/hawlast-get-online.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#article\",\"name\":\"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS\",\"headline\":\"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS\",\"author\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/author\\\/richard\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/domain-registration1.gif\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/#articleImage\",\"width\":246,\"height\":60},\"datePublished\":\"2024-06-18T15:02:11+03:00\",\"dateModified\":\"2024-06-18T15:16:13+03:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#webpage\"},\"articleSection\":\"Web design, Responsive navigation, Resposive menu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hawlast.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/category\\\/web-design-tips\\\/#listItem\",\"name\":\"Web design\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/category\\\/web-design-tips\\\/#listItem\",\"position\":2,\"name\":\"Web design\",\"item\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/category\\\/web-design-tips\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#listItem\",\"name\":\"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#listItem\",\"position\":3,\"name\":\"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/category\\\/web-design-tips\\\/#listItem\",\"name\":\"Web design\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/#organization\",\"name\":\"Hawlast Ventures\",\"description\":\"All you need to succeed online\",\"url\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/\",\"telephone\":\"+254720401869\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/domain-registration1.gif\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#organizationLogo\",\"width\":246,\"height\":60},\"image\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.twitter.com\\\/hawlast\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/author\\\/richard\\\/#author\",\"url\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/author\\\/richard\\\/\",\"name\":\"Richard\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/68458a40806103ae8150824d23408159b97dfd267f7f091d13036964a95b3355?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Richard\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#webpage\",\"url\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/\",\"name\":\"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS\",\"description\":\"Responsive menu for your next HTML\\\/CSS Website This detailed tutorial on YouTube will give you the fundamentals of designing a responsive navigation bar using HTML, CSS and Javascript. Credit to http:\\\/\\\/www.youtube.com\\\/@Devistry The full code for a responsive navigation bar using HTML\\\/CSS\\\/ JS is shown below: You are free to use the code below: The HTML\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/author\\\/richard\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/author\\\/richard\\\/#author\"},\"datePublished\":\"2024-06-18T15:02:11+03:00\",\"dateModified\":\"2024-06-18T15:16:13+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/\",\"name\":\"Hawlast Blog\",\"description\":\"All you need to succeed online\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hawlast.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS","description":"Responsive menu for your next HTML\/CSS Website This detailed tutorial on YouTube will give you the fundamentals of designing a responsive navigation bar using HTML, CSS and Javascript. Credit to http:\/\/www.youtube.com\/@Devistry The full code for a responsive navigation bar using HTML\/CSS\/ JS is shown below: You are free to use the code below: The HTML","canonical_url":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"responsive navigation,resposive menu,web design","webmasterTools":{"google-site-verification":"YZPXJE-6W2iSvgrFkQPcGRTh3md86Qv7PnNa0DTcA2g","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#article","name":"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS","headline":"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS","author":{"@id":"https:\/\/www.hawlast.com\/blog\/author\/richard\/#author"},"publisher":{"@id":"https:\/\/www.hawlast.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.hawlast.com\/blog\/wp-content\/uploads\/2022\/05\/domain-registration1.gif","@id":"https:\/\/www.hawlast.com\/blog\/#articleImage","width":246,"height":60},"datePublished":"2024-06-18T15:02:11+03:00","dateModified":"2024-06-18T15:16:13+03:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#webpage"},"isPartOf":{"@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#webpage"},"articleSection":"Web design, Responsive navigation, Resposive menu"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.hawlast.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.hawlast.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.hawlast.com\/blog\/category\/web-design-tips\/#listItem","name":"Web design"}},{"@type":"ListItem","@id":"https:\/\/www.hawlast.com\/blog\/category\/web-design-tips\/#listItem","position":2,"name":"Web design","item":"https:\/\/www.hawlast.com\/blog\/category\/web-design-tips\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#listItem","name":"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.hawlast.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#listItem","position":3,"name":"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS","previousItem":{"@type":"ListItem","@id":"https:\/\/www.hawlast.com\/blog\/category\/web-design-tips\/#listItem","name":"Web design"}}]},{"@type":"Organization","@id":"https:\/\/www.hawlast.com\/blog\/#organization","name":"Hawlast Ventures","description":"All you need to succeed online","url":"https:\/\/www.hawlast.com\/blog\/","telephone":"+254720401869","logo":{"@type":"ImageObject","url":"https:\/\/www.hawlast.com\/blog\/wp-content\/uploads\/2022\/05\/domain-registration1.gif","@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#organizationLogo","width":246,"height":60},"image":{"@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#organizationLogo"},"sameAs":["https:\/\/www.twitter.com\/hawlast"]},{"@type":"Person","@id":"https:\/\/www.hawlast.com\/blog\/author\/richard\/#author","url":"https:\/\/www.hawlast.com\/blog\/author\/richard\/","name":"Richard","image":{"@type":"ImageObject","@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/68458a40806103ae8150824d23408159b97dfd267f7f091d13036964a95b3355?s=96&d=mm&r=g","width":96,"height":96,"caption":"Richard"}},{"@type":"WebPage","@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#webpage","url":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/","name":"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS","description":"Responsive menu for your next HTML\/CSS Website This detailed tutorial on YouTube will give you the fundamentals of designing a responsive navigation bar using HTML, CSS and Javascript. Credit to http:\/\/www.youtube.com\/@Devistry The full code for a responsive navigation bar using HTML\/CSS\/ JS is shown below: You are free to use the code below: The HTML","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.hawlast.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/#breadcrumblist"},"author":{"@id":"https:\/\/www.hawlast.com\/blog\/author\/richard\/#author"},"creator":{"@id":"https:\/\/www.hawlast.com\/blog\/author\/richard\/#author"},"datePublished":"2024-06-18T15:02:11+03:00","dateModified":"2024-06-18T15:16:13+03:00"},{"@type":"WebSite","@id":"https:\/\/www.hawlast.com\/blog\/#website","url":"https:\/\/www.hawlast.com\/blog\/","name":"Hawlast Blog","description":"All you need to succeed online","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.hawlast.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Hawlast Ventures Blog","og:type":"article","og:title":"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS","og:description":"Responsive menu for your next HTML\/CSS Website This detailed tutorial on YouTube will give you the fundamentals of designing a responsive navigation bar using HTML, CSS and Javascript. Credit to http:\/\/www.youtube.com\/@Devistry The full code for a responsive navigation bar using HTML\/CSS\/ JS is shown below: You are free to use the code below: The HTML","og:url":"https:\/\/www.hawlast.com\/blog\/responsive-navigation-bar-with-mobile-hamburger-menu-html-css-js\/","og:image":"https:\/\/www.hawlast.com\/blog\/wp-content\/uploads\/2018\/08\/hawlast-get-online.jpg","og:image:secure_url":"https:\/\/www.hawlast.com\/blog\/wp-content\/uploads\/2018\/08\/hawlast-get-online.jpg","og:image:width":1200,"og:image:height":630,"article:published_time":"2024-06-18T12:02:11+00:00","article:modified_time":"2024-06-18T12:16:13+00:00","article:publisher":"https:\/\/www.facebook.com\/hawlast","twitter:card":"summary_large_image","twitter:site":"@hawlast","twitter:title":"Responsive navigation bar with mobile hamburger menu | HTML, CSS, JS","twitter:description":"Responsive menu for your next HTML\/CSS Website This detailed tutorial on YouTube will give you the fundamentals of designing a responsive navigation bar using HTML, CSS and Javascript. Credit to http:\/\/www.youtube.com\/@Devistry The full code for a responsive navigation bar using HTML\/CSS\/ JS is shown below: You are free to use the code below: The HTML","twitter:creator":"@hawlast","twitter:image":"https:\/\/www.hawlast.com\/blog\/wp-content\/uploads\/2018\/08\/hawlast-get-online.jpg"},"aioseo_meta_data":{"post_id":"946","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-06-18 11:49:52","updated":"2025-06-04 07:37:38","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/posts\/946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/users\/375"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/comments?post=946"}],"version-history":[{"count":3,"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/posts\/946\/revisions"}],"predecessor-version":[{"id":951,"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/posts\/946\/revisions\/951"}],"wp:attachment":[{"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/media?parent=946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/categories?post=946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hawlast.com\/blog\/wp-json\/wp\/v2\/tags?post=946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}