HTML มีแท็ก 6 แท็กสำหรับสร้างหัวข้อ คือ h1, h2, h3, h4, h5 และ h6 ใช้แท็กหัวข้อ <h1> ถึง <h6> ใดๆ แต่ละแท็กจะให้ขนาดหัวข้อที่ต่างกัน แท็ก <h1> กำหนดหัวข้อสำคัญที่สุด และ <h6> กำหนดหัวข้อสำคัญน้อยที่สุด
จำไว้ว่า ควรใช้แท็กเหล่านี้ภายในแท็ก <body>...</body>

ตัวอย่าง
<!DOCTYPE html>
<html>
<head>
<title>HTML Headings</title>
</head>
<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>
ผลลัพธ์
