<style>
p {
font-weight: normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
}
</style>
속성
<html>
<head>
<meta charset="utf-8">
<style>
.variant {
font-variant: small-caps;
font-weight: bold;
}
<style>
</head>
<body>
<p><span class="variant">사과(Apple)</span> / 사과(Apple)</p>
<p><span class="variant">바나나(Banana)</span> / 바나나(Banana)</p>
<p><span class="variant">체리(Cherry)</span> / 체리(Cherry)</p>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<style>
p {
font-style: italic;
}
</style>
</head>
<body>
<h2>애국가</h2>
<p>동해물과 백두산이 마르고 닳도록 하느님이 보우하사 우리나라 만세</p>
</body>
</html>
속성
<style>
p {
font: <font-style><font-variant><font-weight><font-size/line-height><font-famliy> | caption | icon | menu | message-box | small-caption | status-bar
}
</style>
속성
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<p style="font:icon;">동해물과 백두산이 마르고 닳도록. 하느님이 보우하사 우리나라 만세</p>
<p style="font:menu;">동해물과 백두산이 마르고 닳도록. 하느님이 보우하사 우리나라 만세</p>
<p style="font:message-box;">동해물과 백두산이 마르고 닳도록. 하느님이 보우하사 우리나라 만세</p>
<p style="font:small-caption;">동해물과 백두산이 마르고 닳도록. 하느님이 보우하사 우리나라 만세</p>
<p style=font:16px/25px "맑은 고딕">동해물과 백두산이 마르고 닳도록. 하느님이 보우하사 우리나라 만세</p>
<p style="font:bold italic 12pt">동해물과 백두산이 마르고 닳도록. 하느님이 보우하사 우리나라 만세</p>
</body>
</html>
[CSS 기초] 문단 스타일 (1) (0) | 2021.04.20 |
---|---|
[CSS 기초] 텍스트 스타일 (0) | 2021.04.19 |
[CSS 기초] 글꼴 관련 스타일 (1) (0) | 2021.04.15 |
[CSS 기초] 주요 선택자 (0) | 2021.04.13 |
[CSS 기초] 스타일과 스타일 시트 (0) | 2021.04.12 |
댓글 영역