<!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>Step01_hello.html</title>
<style>
/* 여기는 css 영역입니다. 별표는 css 영역의 주석*/
h1{
color: red;
background-color: yellow;
}
p{
color: blue;
background-color: beige;
font-size: 50px;
}
</style>
<script>
//여기는 JavaScript 영역이다.
console.log("하나");
</script>
</head>
<body>
<script>
//여기도 JavaScript 영역이다.
console.log("둘");
</script>
<h1>대제목입니다.</h1>
<p>단락입니다.</p>
<script>
//여기도 JavaScript 영역이다.
console.log("셋");
alert("안녕하세요!");
</script>
</body>
</html>
위의 코드에서 console.log가 적용된 모습

위의 코드에서 alert가 적용된 모습