simple text editor

by Daniel Hall

HTML

<body bgcolor = "black">
<h1 style="color: #00FFCD;">
Simple text editor
</h1>
<hr>
<button onclick="document.getElementById('te')
.style.fontFamily = 'Comic Sans MS'">
Comic Sans
</button>
<br />
<button onclick="document.getElementById('te')
.style.fontFamily = 'title';">
Title
</button>
<br />
<button onclick="document.getElementById('te')
.style.fontFamily = 'cursive';">
cursive
</button>
<textarea id="te"></textarea>
</body>