happy cat image

everdevel

WEB Coding Scratch Pad

<!doctype html>
<html>
<head>
<title>구구단 프로그램 만들기</title>
<script type="text/javascript" src="/material/js/jquery-3.1.1.min.js" ></script>
<script>
    window.onload = function(){
        document.getElementsByTagName('h1')[0].style.color = 'pink'
    }
</script>
<style>
    h2{color:skyblue}
</style>
</head>
<body>
    <h1>구구단 프로그램</h1>
    <?php
        for($a = 2; $a <= 9; $a++){
    ?>
    <h2><?=$a?>단</h2>
    <?php
        for($b = 1; $b <= 9; $b++){
            echo "{$a} * {$b} =". $a*$b ."<br />";
        }
    }
    ?>
</body>
</html>