JavaScript
<html> <head><title>Factorials</title></head> <body> <h2>Table of Factorials</h2> <script> <!-- var fact = 1; for(i = 1; i < 10; i++) { fact = fact*i; document.write(i + "! = " + fact + "<br>"); } --> </script> </body> </html>Looks like this.
document.write
does not work with XHTML. 2 of 65