Add a progress bar that is 30 out of 100.
Acceptance criteria
- 1.Add a progress bar that is 30 out of 100.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <progress> 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: “The tag is used to display the progress of a task such as file uploads, downloads, or other operations. Unlike , represents completion of a task rather than a general measurement. The value attribute shows the current progress, and max defines the total amount.” .
1.Show progressexercise · easy · 10 min
Add a progress bar that is 30 out of 100.
Passes when: Add a progress bar that is 30 out of 100.
2.Set the maximumexercise · easy · 10 min · practice plan
Add a progress bar out of 5.
Passes when: Add a progress bar out of 5.
3.Label the barexercise · easy · 10 min · practice plan
Tie a label to the progress bar.
Passes when: Tie a label to the progress bar.
4.Add fallback textexercise · easy · 10 min · practice plan
Show a percentage for browsers without progress support.
Passes when: Show a percentage for browsers without progress support.
5.A labelled upload barexercise · medium · 10 min · practice plan
Build a labelled progress bar with fallback text.
Passes when: Build a labelled progress bar with fallback text.
6.Fix the div used as a progress barbug fix · easy · 8 min
There is an element for progress.
Passes when: There is an element for progress.
7.Fix the missing maximumbug fix · easy · 8 min · practice plan
Without max the value has no scale.
Passes when: Without max the value has no scale.
8.Fix the label with no targetbug fix · easy · 8 min · practice plan
The label must point at the bar's id.
Passes when: The label must point at the bar's id.
9.Fix the fallback put outsidebug fix · easy · 8 min · practice plan
Fallback text goes between the progress tags.
Passes when: Fallback text goes between the progress tags.
10.Fix the meter used for a taskbug fix · easy · 8 min · practice plan
Task completion is progress; meter is a measurement.
Passes when: Task completion is progress; meter is a measurement.
Between them these tasks cover Progress bars, value and max and Labels.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.