Tutorials

HTML Tutorial

All Tutorials Learning Tools Login

HTML Tutorial · Chapter 4 of 9

HTML Headings and Text

Use headings and paragraphs for readable pages.

h1 to h6 create heading levels. p creates paragraphs.

Use one main h1 per page when possible.

Headings sample Try it Yourself »
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Headings</title>
</head>
<body>
    <h1>CoderKiosk Web Lab</h1>
    <h2>Today's Lesson</h2>
    <p>Practice clear heading hierarchy.</p>
</body>
</html>

Classroom Tips

  • Do not skip heading levels randomly.
  • Keep paragraph text short and clear.