<태그 class="클래스명">
.클래스명 {}
<태그 class ="클래스명1 클래스명2">
가능<태그 id="클래스명">
#클래스명 {}
⇒ 여러 요소를 스타일링 하고 싶으면 class, 한 요소만 스타일링 id
.css
로 css만 따로 작성 가능<head>
태그 내 <link href="css파일 경로" rel="stylesheet">
<style>
태그<태그명 style="속성1: 속성값; 속석2: 속성값;">
<link>
태그<!-- 주석 -->
/* 내용 */
color: 색 이름;
color: rgb(r값, g값, b값);
color: hex값;
font-weight
: 폰트 굵기, 100부터 900까지 100단위로, normal(400), bold(700)text-align
: 텍스트 정렬, left, right, centertext-decoration
: underline, overline, line-through, none 등line-height
font-family : "폰트명", "제2의 폰트", 폰트종류;
- 폰트명 사용, 없으면 제2의 폰트, 이것도 없으면 폰트종류 중 하나 사용<head>
태그에 넣고, 적용할 부분에 font-family
로 불러오기@font-face {
src: url("경로/폰트명");
font-family:"폰트 이름 주기"
}