<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
display: inline-block;
text-align: center;
width: 18px;
}
</style>
</head>
<body>
<script>
var i, j, k;
for(i=65; i<=69; i++)
{
for(j=69; j>i; j--)
document.write(" ");
for(k=65; k<=i; k++)
document.write("<div>"+String.fromCharCode(k)+"</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>