font-family, font-weight, line-height

유석현(SeokHyun Yu)·2022년 11월 14일
0

CSS

목록 보기
11/32
post-thumbnail
<!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>Document</title>
        <style>
            #p1 {
                font-size: 2rem;
                font-weight: bold;
                line-height: 2;
                font-family: "Times New Roman", Times, serif;
            }
            #p2 {
                font: bold 2rem/2 "Times New Roman", Times, serif;
            }
        </style>
    </head>
    <body>
        <p id="p1">Hello World<br />Hello World 2</p>
        <p id="p2">Hello World<br />Hello World 2</p>
    </body>
</html>

profile
Backend Engineer

0개의 댓글