html head title Hello title meta charset UTF-8 style ul font-family Ti

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
<head>
<title>Hello!</title>
<meta charset='UTF-8'>
<style>
ul
{
font-family: 'Times new roman', serif;
}
</style>
<script>
function onClick()
{
var messageBox = document.getElementById('message');
document.getElementById('messages').innerHTML += '<p>' + messageBox.value + '</p>';
messageBox.value = '';
}
</script>
</head>
<body>
<input type='text' id='message'/>
<input type="button" onclick="onClick();" value='Отправить' />
<div id='messages'></div>
</body>
</html>