기초 및 언어/▶ HTML & CSS
3. CSS_글자와 관련된 속성 알아보기
by 류딩이
2025. 9. 6.
p {
font-family: "Times New Roman", Arial, sans-serif;
font-size: 20px;
font-style: italic;
font-weight: bold;
font-variant: small-caps;
line-height: 1.5;
font: italic small-caps bold 20px/1.5 "Times New Roman", serif;
}
📌 font 속성 요약
- font-family : 글꼴 지정
- font-size : 글자 크기
- font-style : 글자 기울임 (normal / italic / oblique)
- font-weight : 굵기 (normal / bold / 100~900)
- font-variant : 작은 대문자(small-caps)
- line-height : 줄 간격
- font : 단축 속성 → style variant weight size/line-height family 순서