CSS 폰트

tpids·2024년 5월 30일

HTML, CSS

목록 보기
9/19
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        p{
            color: yellow;
        }
        span{
            color: red;
            font-size: 50px;
            font-weight: bold;
            font-style: italic;
            /*
                폰트(글꼴)을 여러개 나열하는 이유는 -> 사용자가 폰트가 없는 경우, 순서대로 대체!
                주의점! 느낌이 비슷한 폰트로만 나열해야 한다.
            */
            font-family: 'Courier New', Courier, monospace;
        }
    </style>
</head>
<body>
    <p>
        안녕하세요! 벌써 5월이 끝나갑니다. <span>집에가고싶어요!</span>
    </p>
</body>
</html>
profile
개발자

0개의 댓글