JS 쓰는 것도 위와 같은 세 가지이며, 가장 권장되는 방법 역시 external이다. 근데 수업 때는 왔다갔다해야 되니까 Internal로 함.
SELECTOR {
ATTR1:VALUE1;
ATTR2:VALUE2;
...
선택자
*
모든 항목
<TAG>
.CLASS_NAME
.
찍어야 됨
#ID
지정된 id를 갖는 부분에 적용된다.
<!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>스타일 적용</title>
<link rel="stylesheet" href="./style.css"/>
<style>
.temp{
color: blue;
}
</style>
</head>
<body>
<p id="tmp">External</p>
<p class="temp">Internal</p>
<p style="color:blueviolet; font-size:14pt"";>Inline</p>
</body>
</html>
#tmp{
color: red;
}