Add a menu with two command items.
Acceptance criteria
- 1.Add a menu with two command items.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <menu> Tag chapter. 5 of them ask you to build something small from scratch; 5 give you code that is already broken and ask you to work out why. Set aside about 90 minutes for the whole set, though you can do them in any order.
Nothing here is marked by a person. When you press Submit, the editor checks your code against the points listed under each task and tells you straight away what passed and what didn't (you need a free account to submit). If you get stuck, there are hints, and a worked solution once you've had a go. The first 2 tasks are free; the rest are part of the practice plan.
If it's been a while since you read the chapter, here is how it starts: “Learn how the HTML <menu> tag represents a toolbar containing an unordered list of commands.” Read the chapter.
1.Build a toolbarexercise · easy · 10 min
Add a menu with two command items.
Passes when: Add a menu with two command items.
2.One commandexercise · easy · 10 min · practice plan
Add a menu holding a single button.
Passes when: Add a menu holding a single button.
3.Label the toolbarexercise · easy · 10 min · practice plan
Give the menu an accessible label.
Passes when: Give the menu an accessible label.
4.Menu inside a toolbar regionexercise · easy · 10 min · practice plan
Put the menu inside a nav.
Passes when: Put the menu inside a nav.
5.A labelled editing toolbarexercise · medium · 10 min · practice plan
Build a labelled menu with three commands.
Passes when: Build a labelled menu with three commands.
6.Fix the divs used as commandsbug fix · easy · 8 min
Menu items are list items holding controls.
Passes when: Menu items are list items holding controls.
7.Fix the link used as a commandbug fix · easy · 8 min · practice plan
An action is a button, not a link.
Passes when: An action is a button, not a link.
8.Fix the unlabelled toolbarbug fix · easy · 8 min · practice plan
A toolbar needs a name.
Passes when: A toolbar needs a name.
9.Fix the menu outside the navbug fix · easy · 8 min · practice plan
The toolbar belongs inside its navigation region.
Passes when: The toolbar belongs inside its navigation region.
10.Fix the missing third commandbug fix · easy · 8 min · practice plan
Cut is missing from the toolbar.
Passes when: Cut is missing from the toolbar.
Between them these tasks cover Toolbars, menu vs ul and Command lists.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.