CSS 18 CSS의 사용 위치
프론트엔드/CSS2021. 4. 3. 15:31

p3 {
color: green;
background-color: yellow;
}
<!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>
<!--외부스타일시트적용방법-->
<link type="text/css" rel="stylesheet"href="01_스타일시트사용위치.css"></link>
<style>
p2{ /*내부스타일시트적용방법*/
color: blue;
}
</style>
</head>
<body>
<!--인라인스타일시트적용방법-->
<p1 style="color: red;">인라인스타일시트적용</p1><br>
<p2>내부스타일시트적용</p2><br>
<p3>외부스타일시트적용</p3><br>
</body>
</html>'프론트엔드 > CSS' 카테고리의 다른 글
| CSS 20 기본 선택자 - 속성 선택자 (0) | 2021.04.03 |
|---|---|
| CSS 19 CSS의 우선순위 (0) | 2021.04.03 |
| CSS 17 list-style-type 과 list-style-image 속성으로 글머리 형태 설정하기 (0) | 2021.03.21 |
| CSS 16 background-position 속성으로 배경 이미지 위치 설정하기 (0) | 2021.03.21 |
| CSS 15 background-repeat 속성 사용하기 (0) | 2021.03.21 |
댓글()
초보개발자의 성장블로그




