<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>热身</title>
</head>
<body>
<p id="p1">我是第一段文字</p>
<p id="p2">我是第二段文字</p>
<script type="text/javascript">
document.write("hello");//输出内容为"hello"。
document.getElementById("p1").style.color="blue";//将第一段文字的颜色设置为蓝色。
</script>
</body>
</html>