Previous task
Text markup with HTML7/10
Back to the list of tasks
  1. 1. Paragraphs
  2. 2. Headings and subheadings
  3. 3. Unordered list
  4. 4. Ordered list
  5. 5. Multilevel list
  6. 6. Description List
  7. 7. Strong and b tags
  8. 8. Em and i tags
  9. 9. Line breaks and separators
  10. 10. Preformatted text
Nest task
  • Courses
  • Sign up
  • Log in

Loading...
It will be ready in a few seconds.

  • Theory
  • Theory

Strong and b tags

In the previous tasks, you learned about elements that are used to mark up large blocks of text: headings, paragraphs, and lists. In this and the next tasks, we will learn about elements for marking up small phrases and individual words.

The first two tags are designed to indicate the importance of a word or phrase.

The <strong> tag determines the importance of the tagged text.

The <b> tag is intended to highlight text without making it more important. This tag is often used to highlight the first introductory paragraph (lead) in news or articles.

Visually both tags are the same, they bold the text.

  • index.html
HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Strong and b tags</title> </head> <body> <h1>Text markup</h1> <p>Learn how to add text content to a simple HTML page: paragraphs, headings, subheadings, lists, and more.</p> <p>You've previously learned about the tags needed to create a simple HTML page and some of the service tags that are not displayed in the browser.</p> <p>In this article, we'll explore tags for marking up text. You can only use them inside the &lt;body&gt; tag.</p> </body> </html>

The code has changed, click "Update" or enable autorun.

You have moved to another page

Click inside the mini-browser to highlight this window.

100%
GoalsCompleted
0
    1. Highlight the introductory paragraph: wrap the entire text of the first paragraph inside the <b> tag.
    2. Highlight an important detail: enclose the word "only" inside the <strong> tag in the third paragraph.

    © 2023-2024, codehero.pro