자바 스크립트는 head, body, html 아무곳에서나 사용해도 된다.
단, html 밑에 사용하면 오류가 발생할 수 있다.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
document.write("Title 바로 아래 ...<p>")
</script>
</head>
<body>
<h1>js Location</h1>
<script type="text/javascript">
document.write("body 안에 ...<p>")
</script>
</body>
<script type="text/javascript">
document.write("body 아래 ...<p>")
</script>
</html>
<script type="text/javascript">
document.write("html 아래 ...<p>")
</script>