Is There Any Difference Between And - Codecademy

Skip to ContentProfile image of ljproudSubmitted by ljproudabout 12 yearsIs there any difference between <b> and <strong>

I had just used <b></b> for bold, and did not know that <strong></strong> existed before now. Is there a difference or any reason to use one over the other? <b> is less typing

Answer 52665feeabf821e3d00024c4

2 votes

Permalink

Hello ljproud,

StackOverFlow.

From MDN,

Why use <em></em> vs <i></i>? They produce exactly the same result, right?

Not exactly. The visual result is, by default, the same - both tags render its content in italics. But the semantic meaning is different. The tag represents stress emphasis of its contents, while the <i> tag represents text that is set off from the normal prose, such as the name of a movie or book, a foreign word, or when the text refers to the definition of a word instead of representing its semantic meaning.

An example for <em> could be: “Just do it already!”, or: “We had to do something about it”. A person or software reading the text would pronounce the words in italics with an emphasis.

An example for could be: “The Queen Mary sailed last night”. Here, there is no added emphasis or importance on the word “Queen Mary”. It is merely indicated that the object in question is not a queen named Mary, but a ship named Queen Mary . Another example for could be: “The word the is an article”.

I hope that helps :)

Profile image of GaurangTandonSubmitted by GaurangTandonabout 12 years

5 comments

Profile image of ljproudSubmitted by ljproudabout 12 years

I appreciate the thoughtful response but it doesn’t answer my question. When would one use b over strong? As an aside: I get the difference between a title and emphasis. Still if they’re both italics, I know that’s never mattered when using any word processor because the usage is implied.

Profile image of ljproudSubmitted by ljproudabout 12 years

got it. “For the blind, web browsers, and mobile phones.” http://stackoverflow.com/questions/271743/whats-the-difference-between-b-and-strong-i-and-em Thank you stackoverflow

Profile image of GaurangTandonSubmitted by GaurangTandonabout 12 years

Oh , I am really sorry ! in a bit hurry , I didn’t realize I gave an explanation of em and i . Nevertheless , here is an MDN explanation you can check out (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong) for strong and b tag difference :)

Profile image of ljproudSubmitted by ljproudabout 12 years

thanks

Profile image of GaurangTandonSubmitted by GaurangTandonabout 12 years

:)

Popular free courses

  • Free course

    Learn SQL

    In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.
    • Checker DenseBeginner Friendly.4 Lessons
  • Free course

    Learn JavaScript

    Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.
    • Checker DenseBeginner Friendly.11 Lessons
  • Free course

    Learn HTML

    Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Checker DenseBeginner Friendly.6 Lessons
Explore full catalog