Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

Inline Text Tags | HTML Course lesson | BraveProgrammer
  1. Courses
  2. /
  3. HTML Course

Lesson 45 of 55

·HTML

Inline Text Tags

8 min

Course progress82%

What you'll learn

Keep these ideas in mind as you work through the lesson.

4 points
  • Difference between semantic (`<strong>`, `<em>`) and visual‑only (`<b>`, `<i>`) tags
  • When to use each inline element
  • Accessibility impact of semantic emphasis
  • Best‑practice cheat‑sheet for quick reference
  • Inline Formatting

    Use these tags to emphasize or style small fragments of text without breaking flow.

    TagSemantic meaningVisual default
    <strong>Strong importanceBold
    <em>EmphasisItalic
    <b>Visual bold only (no semantic weight)Bold
    <i>Visual italic only (no semantic weight)Italic
    <u>Underline (non‑semantic)Underlined
    <small>Side comment or fine printSmaller font
    <mark>Highlighted textYellow background
    <sub> / <sup>Subscript / SuperscriptSmaller, lowered / raised
    <abbr>Abbreviation (requires title)Underlined in some browsers
    <cite>Title of a workItalic
    <code>Inline code snippetMonospace
    <kbd>Keyboard inputMonospace with border

    Accessibility note

    Screen readers give extra weight to <strong> and <em> because they convey meaning, while <b> and <i> are used only for visual effect. Use semantic tags whenever possible.

    Tip: Use <abbr title='...'> to provide the full expansion of abbreviations; this helps both users and search engines understand the content.


    Quick cheat‑sheet

    • Meaningful emphasis: <strong> / <em>
    • Pure visual styling: <b> / <i>
    • Annotations: <abbr>, <cite>, <code>, <kbd>
    • Highlighting: <mark>
    • Fine‑print: <small>

    Apply these tags sparingly to keep the markup readable and the visual hierarchy clear.

    Make it stickPractice what you've learned1 quiz · 2 practical tests · Optional activities from HTML CourseBrowse activities
    Previous lessonThe `<template>` Element – Declaring Inert Template ContentContinue to lesson 46Using `<meter>` and `<progress>` for UI ElementsBack to HTML Course curriculum