質問編集履歴
3
<script src="sample.js"></script> を</body>の直前に修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -22,12 +22,12 @@
|
|
22
22
|
body { font-size:14pt; color:#666; }
|
23
23
|
</style>
|
24
24
|
</head>
|
25
|
-
<script src="sample.js"></script>
|
26
25
|
<body onload="init();">
|
27
26
|
<h1>Hello!</h1>
|
28
27
|
<p id="msg"></p>
|
29
28
|
<input type="text" id="txt1">
|
30
29
|
<button onclick="clickBtn();">Click</button>
|
30
|
+
<script src="sample.js"></script>
|
31
31
|
</body>
|
32
32
|
</html>
|
33
33
|
```
|
2
DOCTYPEで互換モードに切り替わっている可能性の指摘を頂き、<!DOCTYPE html>に変更しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,8 +11,7 @@
|
|
11
11
|
### 該当のソースコード
|
12
12
|
|
13
13
|
```javaScript
|
14
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
15
|
-
|
14
|
+
<!DOCTYPE html>
|
16
15
|
|
17
16
|
<html>
|
18
17
|
<head>
|
1
<script src="sample.js"></script> を </body>の直前に持ってきました。「front-size」という指定を修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,11 +19,11 @@
|
|
19
19
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
20
20
|
<title>Sample</title>
|
21
21
|
<style>
|
22
|
-
h1 {
|
22
|
+
h1 {font-weight:bold; color:#999; padding:3px; }
|
23
23
|
body { font-size:14pt; color:#666; }
|
24
24
|
</style>
|
25
|
-
<script src="sample.js"></script>
|
26
25
|
</head>
|
26
|
+
<script src="sample.js"></script>
|
27
27
|
<body onload="init();">
|
28
28
|
<h1>Hello!</h1>
|
29
29
|
<p id="msg"></p>
|