HTML Academy
The em and i tags, which are used to attract the user’s attention
Text markup17/21
Back to the list of tasks
  • 1. Let’s start the diary
  • 2. The ul tag, which is used to indicate an unordered list
  • 3. The ol tag, which is used to provide an ordered list
  • 4. The start and reversed attributes
  • 5. Nested lists
  • 6. The dl, dt and dd tags as well as description list
  • 7. The pre tag, which is used to designate preformatted text
  • 8. HTML entities
  • 9. The tag code, or code snippet
  • 10. Combining pre and code tags
  • 11. The tag q, which is used to format inline quotes
  • 12. The blockquote tag, which is used for calling out quotes
  • 13. The br tag, which is used to create a line break
  • 14. The sub and sup tags, which are used to indicate subscript and superscript
  • 15. The time tag, which is used to specify the date and time
  • 16. The em and i tags, which are used to attract the user’s attention
  • 17. The strong and b tags, which are used to strengthen or highlight text
  • 18. The del and ins tags, which are used to highlight changes
  • 19. The div and span tags, style containers
  • 20. Summary of “Text markup”
  • 21. Test: Marking up an article
The del and ins tags, which are used to highlight changes
  • Sign up
  • Log in

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

The strong and b tags, which are used to strengthen or highlight text

The mechanisms for highlighting words and phrases in text are not limited to these tags. You have learned how to italicize phrases, but now let’s figure out how we can bold text.

The <strong> and <b> (which is short for “bold”) tags are intended to highlight words and phrases. By default, both tags display text in the same way: they make text bold.

The <strong> tag indicates that the marked text is important. It can be used to highlight warnings or parts of a document that the user should see before continuing with the rest of the text. In this case, enclosing part of the text with the tag <strong> should not change the meaning of the sentence.

<strong>Please note!</strong> There is a pitfall here. <strong>You may fall into the pit</strong> if you get too close to the edge.

The <b> tag is intended to highlight text in order to attract attention to it, but in a way that does not attribute any other significance to it. You should use it only in cases where other highlighting tags are not appropriate. A typical example is the way in which the introductory sentence of an article is highlighted.

You enter a small room. Your <b>sword</b> becomes brighter. A <b>rat</b> runs swiftly along the wall.

Best of all, the differences between these tags will be noticeable to people who use some types of accessibility tools, including in particular the blind and the visually impaired. When a screen reader reads a website aloud, it will emphasize words that have been tagged with <strong> by changing intonation. This is in contrast to the less emphatic tone of voice that is used to read words enclosed in <b> tags.

The same goes for the tags <em> and <i>. The <em> tag “reader” will change the intonation of the voice that reads the word aloud.

Comments

  • index.html
  • style.css
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>The website of a beginning coder</title> <link rel="stylesheet" href="style.css"> </head> <body> <header> <p>Blog</p> <nav> Return to home </nav> </header> <main> <article> <h1>Day Ten. Summing up</h1> <time datetime="2018-11-28T12:00">12:00</time> <!-- Perform the first task in the following paragraph --> <p>I have completed the first week in my coder course.</p> <p>What I took away is that there is really nothing complicated about web layout. You just need to know what each tag is used for and use them in accordance with their intended function.</p> <!-- Perform the second task in the following paragraph --> <p>All I have left to do is to learn CSS, and that’s it: I will be a cool coder!</p> </article> <aside> Your ad could go here </aside> </main> <footer> Website footer </footer> </body> </html>
CSS
body { padding: 0 30px; font-size: 14px; line-height: 22px; font-family: "Georgia", serif; color: #222222; } h1 { font-size: 20px; line-height: normal; } nav { color: #888888; } aside { margin: 20px 0; color: #c4c4c4; } time { color: #6a2cce; }

What didn’t you like in this task?

Thanks! We’ll fix everything at once!

The code has changed, click “Refresh” or turn autorun on.

You’ve gone to a different page

Click inside the mini-browser to shift the focus onto this window.

100%
Goalscompleted
0
    1. Let’s enclose the text of the first paragraph in <b> tags.
    2. Enclose the word CSS in the third paragraph using the tag <strong>.
    1. Enclose the phrase to do in the tag that conveys the appropriate meaning.

    Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

    VISAMastercard

    Log in

    or

    Forgot your password?

    Sign up

    Sign up

    or
    Log in

    Restore access

    Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

    Forgot to connect your email to the profile? Email us and we’ll help.