적용 방법

JS 쓰는 것도 위와 같은 세 가지이며, 가장 권장되는 방법 역시 external이다. 근데 수업 때는 왔다갔다해야 되니까 Internal로 함.

작성 방법

선택자

SELECTOR {
	ATTR1:VALUE1;
	ATTR2:VALUE2;
	...

선택자

<!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;
}

Untitled