...

/

Basic HTML Code

Basic HTML Code

Let's start out with the basic HTML code to design a layout for our top-level menu.

Let’s dive right into the top-level menu by putting the elements into HTML.

When considering how to structure HTML, you should be thinking about how to group the things you want to build. For the top-level menu, we can create a group for the menu that encompasses the entire component and a group for each menu item. Let’s create some divs for our groups.

We have a basic HTML layout for a menu, and because this will be static (it won’t change), we can define it directly in our HTML. This is the equivalent of ...