<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
display: inline-block;
text-align: center;
width: 25px;
}
</style>
</head>
<body>
<script>
var i, j;
for(i=1; i<=10; i++)
{
for(j=1; j<=i; j++)
document.write("<div>"+ j*i +"</div>");
document.write("<br>");
}
</script>
<p><strong>Note</strong>: In this example, the structure of the pattern is more important. So little <a href="/css" target="_blank">CSS</a> is added.</p>
</body>
</html>