December 3, 2026 - 08:49
HTML Lesson 06 — What Do strong, em and br Actually Do? Image
HTML & CSS Tutorials

HTML Lesson 06 — What Do strong, em and br Actually Do?

0 Comments

It is tempting to use strong whenever a word should look bold. But is the word important, or do we only want a visual effect? HTML distinguishes these purposes. It also distinguishes a line break from a new paragraph.

Start with the meaning

HTML
<p>Kaydetmeden çıkarsan <strong>değişikliklerin kaybolur</strong>.</p>
<p>Bu dosyayı <em>ben</em> hazırladım.</p>
<p>Ali Kahraman<br>Web geliştirme öğrencisi</p>
<hr>
<p>Şimdi kitap notlarına geçiyorum.</p>

The first sentence says that leaving without saving loses changes. Its strong element marks the important consequence. Browsers generally show it in bold, but importance is why we chose the element.

The second sentence says “I prepared this file,” emphasizing “I” with em. It suggests that I, rather than somebody else, prepared it. Moving the emphasis to “this file” changes what the sentence stresses. Browsers usually render em in italics, but not every desired italic style carries that meaning.

CSS can apply purely visual bold or italic styling. HTML's b and i elements also have their own semantic uses; they are not interchangeable replacements for strong and em in every context.

When does br make sense?

The example places a name and a role on two lines within the same text block. A br can fit an address, a poem or another piece of content where the line division matters. It has no closing tag.

Use separate paragraphs for separate ideas. Do not create large gaps by inserting five br elements. We will control spacing with CSS margins and padding. A browser wrapping a long line to fit its window is another mechanism; you do not need to insert a break at every visible line end.

hr is a thematic break

hr marks a thematic change. Our example moves from the personal introduction to book notes. The browser may display a horizontal line, but a decorative border around a box belongs to CSS instead.

Bold-looking text can have different roles

HTML
<p><strong>Save the file before closing the window.</strong></p>
<p>This lesson uses the term <b>markup language</b>.</p>
<p>I noted the phrase <i>carpe diem</i> in the book.</p>

The first conveys importance. The second draws attention to a term without necessarily increasing its importance. The third marks an alternate voice or expression. B and i have legitimate semantic uses; they are not universally incorrect substitutes to remove.

Purely decorative styling is a separate reason. Do not invent semantic importance merely because a design calls for italics or bold. Choose CSS when appearance is the actual goal.

Move the stress within a sentence

HTML
<p><em>I</em> prepared this file.</p>
<p>I prepared <em>this file</em>.</p>
<p>I <em>prepared</em> this file.</p>

The focus moves between the person, the object and the action. The words remain the same. Emphasis is therefore more than an arbitrary font choice. Assistive technologies can expose these semantics differently; do not promise identical spoken stress from every screen reader.

Compare a line break with paragraphs

HTML
<p>First idea.<br>Second idea.</p>

<p>First idea.</p>
<p>Second idea.</p>

The first has one paragraph with a forced break. The second has two paragraphs. Both can additionally wrap when the window narrows. Automatic wrapping and an authored br are distinct mechanisms.

Address lines can justify br. A blog post with a br after every sentence does not describe the boundaries between ideas. Repeated breaks also make later spacing changes unnecessarily awkward.

A thematic break is not a universal border

Hr can mark a scene or topic change. A decorative line below a heading can instead be a CSS border. Inserting hr after every paragraph repeats a meaning the content may not have.

Write two paragraphs about yourself. Mark one genuinely important statement with strong and one stressed word with em. Remove the tags and compare. Explain your choice in terms of meaning rather than only the appearance.

Move the emphasis

Move em from the Turkish word “ben” to “dosyayı.” Read the sentence aloud, stressing the marked word. The italic position changes, and so does the focus of the sentence.

Finally, replace the br with two paragraphs and compare the spacing. Choose according to whether the content is one block with two meaningful lines or two separate ideas, rather than according to the size of the gap alone.

Related Articles

Comments (0)

No comments yet. Be the first to comment!

Leave a Comment