본문 바로가기

개발/HTML

h1~h6 제목 태그

반응형

h1~h6 제목 태그

HTML 제목은 <h1> ~ <h6>태그로 정의됩니다.

<h1>가장 중요한 제목을 정의합니다. <h6>가장 덜 중요한 제목을 정의합니다. 

 

코드

<!DOCTYPE html>
<html>
<body>

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>

</body>
</html>

 

결과

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

 

 

출처 : https://www.w3schools.com/html/html_basic.asp

 

HTML Basic

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

관련 글

2022.02.05 - [개발/HTML] - HTML(Hyper Text Markup Language)이란?

 

반응형
LIST