2-Header
Video
Steps
Let's work on the items that will go inside the
<header>tag now.First, the login menu. Our end goal, after adding CSS, will be something like this:
Let's add some code to stub out the menu.
If you ran the app right now, it should look like this:
Isn't it gorgeous?
Let's start to fill in details for each one of the list items, seen in the code as
<li>. The big three of Facebook, Twitter, and Google Plus (poor Google Plus) are good for now:Please note: These links will not go anywhere. The reason is the octothorpe symbol aka hashtag, pound sign, number sign, sharp sign, etc. You can find it in the
<a href>tag above. If you want it to work, replace the#with a URL.We're calling the image from the
imgfolder. We're also addingalthere. Doing so will provide a clear text alternative of the image for screen reader/visually impaired users.We're also setting up a class for future use with our CSS.
Let's add details for the login and basket:
Then, we can add some nav items for the menu.
If you run the app, here's how it should look up to this point.
Looks a bit better, but this isn't the '90s.
Let's work on the sidebar next.
Last updated