HTML : 뼈대
CSS : 스킨
Javascript : 동작
HTML은 head와 body로 이루어져 있고, 다양한 태그를 통해 웹문서의 구조와 내용을 정의할 수 있다.
<!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>
</head>
<body>
</body>
</html>
CSS는 head의 style태그 안에 클래스를 정의한 후, 해당 클래스를 HTML 요소에 적용시켜 사용한다.
<head>
<style>
.mytitle{
color:red;
}
</style>
</head>
<body>
<h1 class="mytitle">페이지<h1>
</body>
https://fonts.google.com/?subset=korean
https://getbootstrap.com/docs/5.3/components/buttons/
Javascript는 head의 script태그 안에 함수를 정의하고, 이를 이벤트로 호출하여 작동한다.
<head>
<script>
function hey(){
let a = 'hello';
console.log(a);
}
</script>
</head>
<body>
<button onclick="hey()">버튼 이름</button>
</body>
< script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" > < /script >
$('#test').함수(); <id="test"> : 태그에 함수를 적용해 변경 시킬 수 있다.