Saturday, 16 February 2013

How to create a loop through a HTML Headings


Program:
<!DOCTYPE html>
<html>
<body>

<%
dim i 
for i=1 to 6
   response.write("<h" & i & ">Heading " & i & "</h" & i & ">")
next
%>

</body>
</html>

Output:

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Thamks for watching...Comment it...

No comments:

Post a Comment