How do I add percentage text to progress tags?

problem description

now the progress tag can only display a progress bar, but there is no progress percentage text, how to add text to the progress bar? Instead of displaying percentage text next to the progress bar

Sep.17,2021

you can try absolute positioning , as follows:

<progress><span>50%</span></progress>

<style>
progress {
    position: relative;
}
progress span {
    position: absolute;
    top: 0;
    right: 5px;
}
</style>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e57cf9-44195.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e57cf9-44195.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?