시작하기 - Google Fonts

김몬지·2021년 10월 1일
0

Google Fonts

구글에서 제공하는 웹폰트 나눔고딕 사용 (굵기 400, 700)
main.css에 상속될 수 있도록 bodyfont-family: 'Nanum Gothic' 적용

Google Fonts

코드

HTML

  <link rel="preconnect" href="https://fonts.gstatic.com" />
  <link href="https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700&display=swap" rel="stylesheet" />

CSS

body {
    font-family: 'Nanum Gothic', sans-serif;
}
profile
프론트엔드 공부하는 사람

0개의 댓글