• in
InterCourses
CoursesBlogs
0
← Introduction to HTML
○What is HTML?○Elements, Tags, and Attributes○Your First Complete Page
○Headings and Comments●Paragraphs, Emphasis, and Line Breaks○HTML Lists
○Hyperlinks○Images○Applying Styles to HTML
○Div and Span○HTML Tables○Classes and IDs
○Project 1 - Visiting Card Structure○Project 1 - Visiting Card Actions
○The Head Element and Page Title○Meta Tags○HTML Entities
○HTML Forms○Input Types○Checkboxes and Radio Buttons○Textarea and Select
○Embedding Video○Embedding Audio○Iframes
○Semantic HTML Tags○Details, Figure, and Figcaption
○Project 3 - Resume Semantic Structure○Project 3 - Resume Links and Actions

Paragraphs, Emphasis, and Line Breaks

After headings, paragraphs are the next most important text element. This lesson covers <p>, emphasis tags, line breaks, and horizontal rules.

The <p> tag

Browsers collapse all whitespace in HTML. This means line breaks in your source file are ignored:

html
<body>
    This is a sentence.
    This is another sentence.
</body>

Both sentences appear on the same line in the browser. To display them as separate paragraphs, wrap each in <p> tags:

html
<body>
    <p>This is a paragraph.</p>
    <p>This is another paragraph.</p>
</body>

Now each paragraph gets its own block with spacing above and below.

Line breaks: <br>

Sometimes you need a new line inside a paragraph without creating a new paragraph — for example, in a poem or address:

html
<p>
    123 Main Street<br>
    Springfield, IL 62701
</p>

<br> is a self-closing tag — it has no content and no closing tag.

Tip: Avoid using <br> to add vertical spacing between sections. That is CSS's job.

Emphasizing text

TagDefault appearanceWhen to use
<em>ItalicStress emphasis — changes the meaning of the sentence
<strong>BoldStrong importance, urgency, or warning
<i>ItalicTechnical terms, foreign words, titles (no semantic emphasis)
<b>BoldKeywords, product names (no extra importance)
html
<p>This is <em>emphasized</em> text and this is <strong>important</strong> text.</p>

Prefer <em> and <strong> over <i> and <b> — they carry semantic meaning for screen readers.

Horizontal rule: <hr>

<hr> draws a horizontal line to visually separate sections of content:

html
<p>Section one content.</p>
<hr>
<p>Section two content.</p>

Like <br>, it is self-closing.

Your Task

The starter page has an empty body. Build a short article:

  1. Add an <h1> title.
  2. Add at least two <p> paragraphs of text.
  3. In one paragraph, use <em> and <strong> to emphasize some words.
  4. Use a <br> inside one paragraph to create a line break mid-paragraph.
  5. Add a <hr> between the two paragraphs.
Hint 1
1 / 4
HINT 1

Wrap text in <p>...</p> to create a paragraph — the browser adds spacing automatically.

Loading editor…
READY
intercourses
html