WEB.HTML
chapter15 : font
GAWON
2023. 5. 18. 09:20
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>글꼴 크기</h1>
<font size="1">글꼴 크기 1</font>
<font size="2">글꼴 크기 2</font>
<font size="3">글꼴 크기 3</font> <!-- 기본 크기 3 -->
<font size="4">글꼴 크기 4</font>
<span style="font-size: 5px">글꼴 크기 5</span> <!-- 동적 크기 변경 -->
<font size="6">글꼴 크기 6</font>
<font size="7">글꼴 크기 7</font>
<font size="8">글꼴 크기 8</font> <!-- 글꼴 크기는 7까지만 가능 -->
<font size="-1">글꼴 크기 2</font> <!-- 기본 크기 -1 -->
<font size="+1">글꼴 크기 4</font> <!-- 기본 크기 +1 -->
<hr>
<h1>글꼴 색상</h1>
<!-- #RGB : R(00~FF), G(00~FF), B(00~FF) -->
<font color="#000000">이 문장은 검정색</font><br>
<font color="#FFFFFF">이 문장은 하얀색</font><br>
<font color="#FF0000">이 문장은 빨간색</font><br>
<span style="color: yellow;">이 문장은 노란색</span><br>
<hr>
<!-- 윈도우 기본 글꼴 위치 : C:/Windows/Fonts > 각 글꼴 우클릭 > 속성 > 자세히 > 제목에 적힌 값 사용 -->
<font face="맑은 고딕">맑은 고딕</font><br>
<font face="궁서">가나다라마바사</font><br>
<span style="font-family: 궁서체">가나다라마바사</span>