ボタンのクリックで日付と時刻を取得するための次のコードがあります。出力を別の色で取得したい..どのような変更が必要ですか?
<!DOCTYPE html>
<html>
<head>
<script>
function displayDate()
{
document.getElementById("demo").innerHTML=Date();
}
</script>
</head>
<body>
<h1>My First JavaScript</h1>
<p id="demo">click on the button bellow.....</p>
<button type="button" onclick="displayDate()">Display Date</button>
</body>
</html>