DEV Community

Discussion on: 7 cases where we can use HTML instead of CSS

Collapse
 
ludamillion profile image
Luke Inglis

While you can use the progress element with JS it's not very useful for most progress use cases without a way of updating the value attribute.

Collapse
 
moopet profile image
Ben Sinclair

Do you mean, "without JS"?
progress is fine without dynamic updates. Imagine something saying, "your profile is x% complete" or "you're on page 9 of 32 of this simple government tax form".

Collapse
 
ludamillion profile image
Luke Inglis

I did mean without thanks for the correction. Yes the progress element is still useful without dynamic updates. That's why I said 'most progress use cases'. In my experience (and I expect many other people's) most of the use cases for a progress bar (including the implied use case in the article) is to provide dynamic feedback for an ongoing process.

It is important to note the non-dynamic use cases though so thanks for that. They are definitely semantically meaningful use cases and progress is the best element for those too.