마크업언어로 작성된 문서를 표현하는 방법을 전해주는 언어
(폭포처럼) 쏟아지는 형태로 부모 요소의 스타일 속성이 자식 요소에도 그대로 적용됨
selector{
property: value;
}
<head>
<link rel="stylesheet" href="main.css" />
</head>
<Head></head> 요소 안에 작성<head>
<style>
h1{
border:1px solid;
}
</style>
</head>
<body>
<div style="background-color:yello">
</div>
</body>
red, green, tomato, teal, papayaplum, teal, gold, silver, magenta ... rgb(red,green,blue)rgba(red, green, blue, alpha) : alpha = 투명도(0~1)#red+green+blue 색상 별 2자리씩 나타냄텍스트 배치
text-decoration-linetext-decoration-styletext-decoration-color h1{
text-decoration: yellow underline wavy;
}
폰트 두께
1줄 당 높이
자간 공백
글자 크기