CSS 06 font-family, font-size, font-style, font-weight 속성

프론트엔드/CSS|2021. 3. 20. 07:00
font 속성

초보개발자의 성장블로그

안녕하세요^^ 반갑습니다 좋은 하루 되세요~

<!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>

댓글()
구독