<p>Progress: <progress value="32" max="200"><span id="p1">16</span>%</progress> </p> <script> var progressBar = document.getElementById('p1'); function updateProgress(newValue) { progressBar.textContent = newValue; } </script>