Usually a progress bar is updated as time progresses, often using JavaScript. The example below mimics a task that repeats ad infinitem and shows the progress in numerical and graphical form using <span> and <progress> elements:

Fraction of time elapsed since task last started:
- as a percentage: 0%
- as a <progress> element: