Hello there!
I have a code below, and I don’t know why it didn’t refresh the html every 5 secs. Actually, I embedded a site in that html (e.g. https://www.example.com ).
I already solved my problem. I just tried a code on my “https://www.example.com” and it works great because when I tried @jonatandor35 's code, it didn’t work on my end, and I didn’t know any html coding that’s why I haven’t yet understood the script that he suggested. By the way, I used a repeater which is shown in my html that’s why you can see a dataset in the code below. But still thank you very much guys!