<div id="area">
</div>
var area = document.getElementById("area");
var name = "グレープ太郎";

// HTMLページ上で"area"のidをもつ要素内に、
// 変数nameを使った文字列を出力します
area.innerHTML = "<b>" + name + "</b>さん、こんにちは。";

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.