What’s happening: You’re giving a variable ($i in this case), an initial value of one; then creating a loop that checks every time the value of $i until it reaches 11; which never happens… It goes on a forever loop until it crashes the browser.
How to fix: Don’t specify the initial value of $i until you didn’t write the rest of the code, because the output will keep refreshing automatically, resulting in this issue.