Computer >> 컴퓨터 >  >> 프로그램 작성 >> JavaScript

CSS에서 font-weight 속성 사용

<시간/>

font-weight 속성은 글꼴이 얼마나 굵거나 밝게 표시되는지를 늘리거나 줄이는 데 사용됩니다. font-weight 속성은 글꼴의 굵기를 지정하는 기능을 제공합니다. 가능한 값은 보통, 굵게, 더 굵게, 더 밝게, 100, 200, 300, 400, 500, 600, 700, 800, 900일 수 있습니다.

<html>
   <head>
   </head>
   <body>
      <p style = "font-weight:bold;">This font is bold.</p>
      <p style = "font-weight:bolder;">This font is bolder.</p>
      <p style = "font-weight:300;">This font is 500 weight.</p>
   </body>
</html>