Loop: For You can write a loop using For ... Next. For example;
<html>
<body>
<% for (int i=1; i<6; i++){ %>
<font size= <%= i %> >
Welcome </font> <br>
<%}%>
</body>
</html>
It will be executed by the server and convert into this html code;
<html>
<body>
<font size= 1 > Welcome </font> <br>
<font size= 2 > Welcome </font> <br>
<font size= 3 > Welcome </font> <br>
<font size= 4 > Welcome </font> <br>
<font size= 5 > Welcome </font> <br>
</body>
</html>
|