<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script>
alert("hello,world!");
</script>
</head>
<body>
</body>
</html>
经验
1.代码要写在<script></script>里面;(当然还有其他的外联)
2.alert 是弹出的意思;
结果