Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html xmlns = "http://www.w3.org/1999/xhtml">
- <head>
- <title>Counter-Controlled Repetition</title>
- <script type = "text/javascript">
- <!--
- var counter = 1; // initialization
- while ( counter <= 7 ) { // repetition condition
- document.writeln( "<p style = \"font-size: " +
- counter + "ex\">XHTML font size " + counter +
- "ex</p>" );
- ++counter; // increment
- }
- // -->
- </script>
- </head><body></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement