Why do we use min="0" while declaring progress bar. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do we use min="0" while declaring progress bar.

Because if i remove it still output comes to be same. https://code.sololearn.com/W6DIDIjdpFw7/?ref=app

29th Mar 2020, 6:27 AM
Himanshu Jha
Himanshu Jha - avatar
3 Answers
+ 2
default is 0 you can try specifying other values, and facilitate changes with JavaScript, and see what happens
29th Mar 2020, 8:33 AM
Gordon
Gordon - avatar
0
So if i completely remove min then also it does not changes anything in the above code? Why is so
29th Mar 2020, 10:12 AM
Himanshu Jha
Himanshu Jha - avatar
0
The 'min' value is 'minimum' value of the progress bar . You can even skip min attribute since the minimum progress is always zero.
25th May 2020, 4:13 AM
Mohamed Said
Mohamed Said - avatar