<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title>Szorzotabla</title> <style> body { font-family:monospace; background-color:black; color:white; } table { border-collapse:collapse; border:1px solid gray; } td { border:1px solid gray; padding: 10px; } </style> </head> <body> <table> <tr> <?php for ($x = 1; $x <= 10; $x++) { echo "<td>"; for ($y = 1; $y <= 10; $y++) { echo $x . "*" . $y . "=" . $x*$y . "<br />\n"; } echo "</td>"; } ?> </tr> </table> </body> </html>