what determines how many times a for loop will run?
The For Loop. The for loop is used when you know in advance how many times the script should run. Explanation: The example below defines a loop that starts with i=0. The loop will continue to run as long as i is less than, or equal to 10. i will increase by 1 each time the loop runs. Note: The increment parameter could also be negative, and the <= could be any comparing statement. How to use the for loop to loop through the different HTML headers.