<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
tr:first-child {
background-color: pink;
}
</style>
<script type="text/javascript">
document.write("<table border=1>");
document.write("<tr>");
for(var i=2;i<=9;i++){
document.write("<td>"+i+"단 </td>")
}
document.write("</tr>");
for(var i=1;i<=9;i++){
document.write("<tr>");
for(var j=2;j<=9;j++){
document.write("<td>"+j+"X"+i+"="+(i*j)+"</td>");
}
document.write("</tr>");
}
document.write("</table>");
</script>
</head>
<body>
</body>
</html>
<!-- 구구단 테이블로 나오고 2단 3단 같은 단 표시는 색넣기 반복문-->
Insert title here