[CSS]글꼴 꾸밈 관련 스타일 시트

suyeon·2022년 8월 25일
1

CSS

목록 보기
3/6
post-thumbnail

글꼴 꾸밈 관련 스타일 시트

속성설명
color색이름, RGB글자색지정
font-family글꼴이름글꼴(글씨체)
font-size절대값, 상대값, 길이글자크기
font-stylenormal, italic글자모양
font-variantnormal, small-caps작은 크기의 대문자로 지정하기
font-weightnormal, bold, bolder글자의 굵기

 <html>
<head>
<title>글꼴 꾸밈 관련 스타일 시트</title>
<style>
	H1{
		font-family : 굴림체;
		font-weight : lighter;
		color : red;
	}

	P{
		font-family : 궁서체;
		font-weight : bolder;
		font-style : italic;
		font-size : 20pt;
	}

</style>

</head>
<body>

<center>
	<h1>스타일시트 적용하기</h1>
	<br><hr>

	<p>
		글자의 크기는 20포인트이고, 이탤릭체이며 폰트의 종류는 궁서체입니다.
	</p>
</center>

</body>
</html>

profile
📖개발블로그📖

0개의 댓글