TGViewer
Web Development Web Development @webdevcoursefree ยท 79.7K subscribers
Post #4071 727
๐ŸŒ Web Development Roadmap โ€” Part 15

HTML Headings, Paragraphs & Text Formatting

Now let's learn the most common HTML elements used to display and organize text on a webpage.

1. HTML Headings

HTML provides six heading levels:

<h1>Main Heading</h1>
<h2>Section Heading</h2>
<h3>Subsection Heading</h3>
<h4>Smaller Heading</h4>
<h5>Smaller Heading</h5>
<h6>Smallest Heading</h6>


The hierarchy is:

<h1> Most important

โ†“

<h2>

โ†“

<h3>

โ†“

<h4>

โ†“

<h5>

โ†“

<h6> Least important

2. <h1> โ€” Main Heading

Usually, <h1> represents the main heading of a page.

<h1>My Portfolio</h1>


For example:

My Portfolio

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

About Me

Projects

Contact

3. <h2> โ€” Major Sections

Use <h2> for major sections under the main heading.

<h1>My Portfolio</h1>

<h2>About Me</h2>
<h2>My Projects</h2>
<h2>Contact</h2>


4. <h3> โ€” Subsections

If a section contains smaller sections, use <h3>.

<h2>My Projects</h2>

<h3>Web Development Projects</h3>
<h3>JavaScript Projects</h3>


This creates a logical content hierarchy.

5. Paragraphs

Use <p> for normal paragraphs.

<p>
I am learning web development and building websites.
</p>


Multiple paragraphs can be written separately:

<p>HTML provides the structure of a webpage.</p>

<p>CSS controls its appearance.</p>

<p>JavaScript adds interactivity.</p>


6. Bold Text

Use <strong> when the text has strong importance.

<p>
<strong>Important:</strong> Save your work regularly.
</p>


The browser normally displays it in bold.

7. Italic or Emphasized Text

Use <em> to emphasize text.

<p>
This is <em>very important</em>.
</p>


The browser normally displays emphasized text in italic.

8. <br> โ€” Line Break

<br> moves content to the next line.

<p>
Hello!<br>
Welcome to my website.
</p>


Result:

Hello!

Welcome to my website.

However, <br> should not normally be used to create large spaces between sections. CSS should handle layout and spacing.

9. <hr> โ€” Thematic Break

<hr> represents a thematic break between sections.

<h2>About Me</h2>
<p>Information about me.</p>

<hr>

<h2>Projects</h2>
<p>My recent projects.</p>


The browser normally displays a horizontal line.

10. <mark> โ€” Highlighted Text

<p>
Learn <mark>
HTML</mark> before moving to CSS.
</p>


The browser normally highlights the marked text.

11. <small> โ€” Smaller Text

<p>
Website Terms <small>Last updated in 2026</small>
</p>


It represents side comments or small print.

12. Putting Everything Together
  • โค 3
More from @webdevcoursefree
  1. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
  2. Oct 8, 2026<h1>Web Development</h1> <p> Web development is the process of creating websites and web aโ€ฆ
  3. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  4. Oct 7, 2026๐ŸŒ Web Development Roadmap โ€” Part 14 HTML Document Structure Before learning individual HTโ€ฆ
  5. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  6. Oct 5, 2026The browser reads the HTML structure and builds the webpage from these elements. Key Takeaโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’