Advertisement
RokiAdhytama

For Counter - Chapter 9

Jul 2nd, 2022
987
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html xmlns = "http://www.w3.org/1999/xhtml">
  2.    <head>
  3.       <title>Counter-Controlled Repetition</title>
  4.  
  5.       <script type = "text/javascript">
  6.          <!--
  7.          // Initialization, repetition condition and
  8.          // incrementing are all included in the for
  9.          // statement header.
  10.          for ( var counter = 1; counter <= 7; ++counter )
  11.             document.writeln( "<p style = \"font-size: " +
  12.                counter + "ex\">XHTML font size " + counter +
  13.                "ex</p>" );
  14.          // -->
  15.       </script>
  16.  
  17.    </head><body></body>
  18. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement