JavaScript (web browser)

This code is written in javascript wrapped in html tags to allow it to be instantly viewed in a browser. Paste the code into a text editor like notepad and make sure the file extension is .html or .htm and not .txt. After the file has been saved, then it can be viewed in most web browsers.

<html>
< head></head>
< body>
< script type=”text/javascript”>
< !–
var row = 0;
var column = 0;
document.write (‘<table border=”1″>’);
document.write (‘<TR>’);
document.write(‘<Th colspan = “12”>Multiplication Table</th>’);
document.write (‘<tr>’);
document.write (‘<td align=”center”>x’);
for (row = 1; row != 11; row++)
{
document.write(‘<td align=”right”>’ + row);
}
document.write(‘<tr>’);
for (row = 1; row != 11; row++)
{
document.write(‘<td align=”right”>’ + row)
for (column = 1; column != 11; column++){
document.write (‘<TD align=”right”>’ + column*row);
}
document.write (“</tr>”);
}
document.write(“</table>”);
//–>
< /script>
< /body>
< /html>