为什么编写的网页出不来?

来源:百度知道 编辑:UC知道 时间:2024/09/22 16:53:13
我编写了一个网页,内容是这样的:html>
<haed>
<tltle>javascript实例</tltle>
</haed>
<body>
<script language="javascript">
document.write("让我们尽情的在javascript知识的海洋里遨游吧!");
</script>
</body>
</html>
为什么出来的网页上只显示了“javascript实例”?

你的代码有些问题
参考下面:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<tltle>javascript实例</tltle>
</head>
<body>
<script type="text/javascript">
document.write("让我们尽情的在javascript知识的海洋里遨游吧!");
</script>
</body>
</html>

<haed><meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
</haed>
<title>javascript实例</title>
<bod