{"id":11885,"date":"2020-03-13T01:15:39","date_gmt":"2020-03-13T05:15:39","guid":{"rendered":"http:\/\/info.template-help.com\/?p=11885"},"modified":"2020-03-13T06:17:26","modified_gmt":"2020-03-13T10:17:26","slug":"html-how-to-create-a-menu","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/html-how-to-create-a-menu.html","title":{"rendered":"HTML. How to create a menu"},"content":{"rendered":"<p>This tutorial shows how to create a  menu in HTML. Usually to create a menu we use an onordered list. You can for sure use the div, span, p or other tags but unordered list gives you more flexibility in future stling of the menu. <\/p><!--more-->\r\n<p>First of all open your HTML page with your editor. <\/p>\r\n<p>The onordered list is created using the &lt;ul&gt; tags. Open the ul tag and close it:<\/p>\r\n\r\n<pre class=\"brush:html\">\r\n&lt;ul&gt;&lt;\/ul&gt;\r\n<\/pre>\r\n\r\n<p>Then you need to add the list items to the list. Each menu button will be asingle list item.<\/p>\r\n<p>Let&#8217;s create a menu with 5 items:<\/p>\r\n\r\n<pre class=\"brush:html\">\r\n&lt;ul&gt;\r\n\t&lt;li&gt;Home&lt;\/li&gt;\r\n\t&lt;li&gt;About&lt;\/li&gt;\r\n\t&lt;li&gt;Services&lt;\/li&gt;\r\n\t&lt;li&gt;Partners&lt;\/li&gt;\r\n\t&lt;li&gt;Contacts&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n<\/pre>\r\n\r\n<p>The last thing that we need is to add links to our menu buttons. Links in HTML are created using the &lt;a&gt; tag. <\/p>\r\n\r\n<pre class=\"brush:html\">\r\n&lt;ul&gt;\r\n\t&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Home&lt;\/a&gt;&lt;\/li&gt;\r\n\t&lt;li&gt;&lt;a href=&quot;#&quot;&gt;About&lt;\/a&gt;&lt;\/li&gt;\r\n\t&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Services&lt;\/a&gt;&lt;\/li&gt;\r\n\t&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Partners&lt;\/a&gt;&lt;\/li&gt;\r\n\t&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contacts&lt;\/a&gt;&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n <\/pre>\r\n\r\n<p>As you can see each &lt;a&gt; tag has a href parameter. Href parameter defines the URL or the file that the menu item is linked to. Replace the # symbol with the filename or the URL to activate the links.<\/p>\r\n\r\n<hr \/>\r\n\r\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.templatemonster.com\/javascript\/zemez-responsive-navbar-javascript-94576.html\" target=\"_blank\" rel=\"noopener noreferrer\">Zemez Responsive Navbar JavaScript<\/a><p\/>\r\n\r\n<img loading=\"lazy\" src=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/11\/zemez-responsive-navbar-javascript.jpg\" alt=\"Zemez Responsive Navbar JavaScript.\" width=\"760\" height=\"435\" class=\"alignnone size-full wp-image-86552\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/11\/zemez-responsive-navbar-javascript.jpg 760w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/11\/zemez-responsive-navbar-javascript-150x86.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2011\/11\/zemez-responsive-navbar-javascript-300x172.jpg 300w\" sizes=\"(max-width: 760px) 100vw, 760px\" \/>\r\n\r\n<p style=\"text-align: center;\"><a class=\"btn\" href=\"https:\/\/www.templatemonsterpreview.com\/demo\/94576.html\" target=\"_blank\" rel=\"noopener noreferrer\">Demo<\/a> | <a class=\"btn\" href=\"https:\/\/www.templatemonster.com\/javascript\/zemez-responsive-navbar-javascript-94576.html\" target=\"_blank\" rel=\"noopener noreferrer\">Download<\/a><\/p>\r\n\r\n<p>When developing the site, &#8220;the fewer clicks, the better&#8221; concept should be considered. You should help your visitors find the information they want as quickly as possible. The site must respond instantly to the user&#8217;s request. How to make sure your website navigation meets all these requirements? Take a moment to check a highly customizable Navbar JavaScript developed by Zemez.<\/p>\r\n\r\n<p>The product offers a fully responsive and cross-browser compatible design. Zemez provides 8 amazing layouts for you to choose the most suitable option for your project. Pick up fixed and fullwidth layouts either in a dark or light color scheme. Easy-to-integrate Navbar Script does not require any specific technical knowledge.<\/p> \r\n\r\n<p>More features:\r\n<ul><li>Dropdowns and megamenus<\/li>\r\n<li>Mobile app style look<\/li>\r\n<li>jQuery 1.11+\/jQuery Easing 1.1+ are required<\/li>\r\n<li>Single code for all devices<\/li>\r\n<li>Effective 24\/7 support<\/li><\/ul><\/p>\r\n\r\n \r\n\r\n<!--more--> \r\n<!--more-->\r\n\r\n\r\n\r\n<!--more-->","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to create a menu in HTML. Usually to create a menu we use an onordered list. You can for sure use the div, span, p or other tags but unordered list gives you more flexibility in future stling of the menu.<\/p>\n","protected":false},"author":2,"featured_media":11889,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[253],"tags":[2411,896,571],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/11885"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=11885"}],"version-history":[{"count":6,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/11885\/revisions"}],"predecessor-version":[{"id":86551,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/11885\/revisions\/86551"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/11889"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=11885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=11885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=11885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}