font-family: <글꼴이름>[, <글꼴 이름>, <글꼴이름>]
body {
font-family: "맑은 고딕", 돋움, 굴림 }
}
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200&display=swap');
<html>
<head>
<meta charset="utf-8">
<style>
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200&display=swap');
p {
font-family: "Oswald script=latin rev=2"; font-weight: 200; font-style: normal; line-height: 1.482;
}
</style>
</head>
<body>
<p>동해물과 백두산이 마르고 닳도록 대한사람 대한으로 길이 보전하세</p>
</body>
</html>
font-size: <절대 크기> | <상대 크기> | <크기> | <백분율>
font-size 글자 크기 단위
팁
<html>
<head>
<meta charset="utf-8">
<style>
p {
font-size: 1em;
}
</style>
</head>
<body>
<p>동해물과 백두산이 마르고 닳도록 대한사람 대한으로 길이보전 하세</p>
</body>
</html>
[CSS 기초] 텍스트 스타일 (0) | 2021.04.19 |
---|---|
[CSS 기초] 글꼴 관련 스타일 (2) (0) | 2021.04.16 |
[CSS 기초] 주요 선택자 (0) | 2021.04.13 |
[CSS 기초] 스타일과 스타일 시트 (0) | 2021.04.12 |
[HTML 기초] 기타 다양한 폼 요소들 (0) | 2021.04.08 |
댓글 영역