CSS 06 font-family, font-size, font-style, font-weight 속성
프론트엔드/CSS2021. 3. 20. 07:00
초보개발자의 성장블로그
안녕하세요^^ 반갑습니다 좋은 하루 되세요~
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>font 속성</title>
<style>
h2.font_s{
color:blue;
font-family:"맑은 고딕";
font-size:30px;
font-style:italic;
}
p.font_p{
color:purple;
font-family:"돋움";
font-size:24px;
font-weight:bold;
}
</style>
</head>
<body>
<h2 class="font_s">초보개발자의 성장블로그</h2>
<p class="font_p">안녕하세요^^ 반갑습니다 좋은 하루 되세요~</p>
</body>
</html>

'프론트엔드 > CSS' 카테고리의 다른 글
| CSS 08 타입 선택자 사용하기 (0) | 2021.03.20 |
|---|---|
| CSS 07 a:link, a:visited, a:hover, a:active 로 링크 텍스트 꾸미기 (0) | 2021.03.20 |
| CSS 04 text-align, text-decoration, line-height 속성 사용하기 (0) | 2021.03.19 |
| CSS 03 color 속성으로 글자 색상 지정하기 (0) | 2021.03.19 |
| CSS 02 CSS 삽입 방법 (0) | 2021.03.19 |
댓글()
초보개발자의 성장블로그




