Is There Any Difference Between And - Codecademy
Có thể bạn quan tâm
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 votesPermalink
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 :)
5 comments
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.
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
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 :)
thanks
:)
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
Từ khóa » B Vs Strong
-
What's The Difference Between And , And ?
-
The Strong Importance Element - HTML: HyperText Markup Language
-
Difference Between Strong And Bold Tag In HTML - GeeksforGeeks
-
Strong And Bold Tags - Seobility Wiki
-
What Is The Difference Between B And Strong: Your Short Guide
-
What Is The Difference Between And , And Tags
-
What's The Difference Between And In HTML?
-
Bold Vs Strong HTML Tag - Importance Of Bold & Strong Tag In SEO
-
Is There A Reason To Use Strong Instead Of Bold ? - Quora
-
HTML Strong Tag - W3Schools
-
, Vs , - HTML DOM - v
-
How Will I Know Where Should I Use Tags Or Tags?
-
B Vs Strong? I Vs Em? What's The Difference? - Silkstream