+ 1

How to use loops( for, while ) in html,

I just tried to make a loop inside my web page but, the code i run was not correct, I just want, how to use the for loop and while loop in HTML. Syntax with example..

16th Jan 2021, 9:51 AM
Sunny Kumar
Sunny Kumar - avatar
9 Respostas
+ 6
Sunny Kumar use javascript ,and by the way you could have google a bit to find yourself if html supports loop or not or what type of language html is. Javascript will let you use loops and also lets you manipulate dom i.e.html document.
16th Jan 2021, 10:02 AM
Abhay
Abhay - avatar
+ 5
You can't ,html doesn't understands loop.
16th Jan 2021, 9:57 AM
Abhay
Abhay - avatar
+ 2
Sunny Kumar HTML is not a programming language. So you can't use loop. What is your problem?
16th Jan 2021, 10:05 AM
AÍąJ
AÍąJ - avatar
+ 2
Stefan [less active] thanks buddy 👍
16th Jan 2021, 12:15 PM
Sunny Kumar
Sunny Kumar - avatar
+ 1
So what can I do in this case, anything else ...
16th Jan 2021, 9:59 AM
Sunny Kumar
Sunny Kumar - avatar
+ 1
Thanks for your support Abhay, i have just forgotten about JavaScript🙂 . And I Am AJ ! I know, HTML is a markup language not a programming language, but thanks for you reply 🙂
16th Jan 2021, 10:41 AM
Sunny Kumar
Sunny Kumar - avatar
0
Sunny Kumar as I Am AJ ! said, use JavaScript instead. HTML is not a programming language so it doesn't understand programming concepts (i.e loops, conditions, ...). You may use JavaScript instead as I said above. ✔✔ There is no way to write loops in HTML. You should understand that! Thx.
16th Jan 2021, 11:43 AM
Stefan
Stefan - avatar
0
HTML - - Markup Language.... Loops in programming languages ----- I Am AJ !
18th Jan 2021, 5:32 AM
Name
Name - avatar