What are the kosher tags: em, i, strong or b?

0 like 0 dislike
45 views
There are HTML tags designed (sort of) for the same pre-rendered and the same. For example a pair of em and i, strong and b.

What formatting tags "correctly" apply (where appropriate formatting tags, for example when making topics/comments here, on habré, on StackOverflow, etc.)?

I myself am leaning towards em/strong because they are more, so to speak, semantic. On the other hand, i/b, like, concise.
by | 45 views

7 Answers

0 like 0 dislike
In the W3C specifications, the EM and STRONG tags made in a section of Structured text -> Items phrases.
EM: Indicates emphasis.
STRONG: Indicates stronger emphasis.
Appearance to display all of the elements of phrases is determined by the browser. These tags may be considered, for example, Text-to-Speech engine to change tone or volume of voice.
\r
At the same time, B and I refer to Formatting -> Fonts and give a clear indication to the browser what font to render the fragment.
I: Renders as italic text style.
B: Renders as bold text style.
by
0 like 0 dislike
i/b — visual design does not make any sense, sort of.
by
0 like 0 dislike
strong has more weight for search engines before the bold, but it can not be abused, of course.
by
0 like 0 dislike
Html5 is about the same. Tags and redefined so that a low — profile selection — strong selection.
by
0 like 0 dislike
EM is designed to intonational accents. In the English tradition such places are italicized. In the Russian language to do so is not accepted, and intonational accent stands out context, construction of sentences. Therefore, for typesetting Russian texts this tag is inappropriate.
\r
STRONG is designed to highlight. And all the rest (of the above), in my opinion, from the evil one.
\r
In HTML 4 this difference, I think, is implied, but expressed wryly. But in HTML 5 is very clear: stress emphasis (check out examples!) and strong importance.
by
0 like 0 dislike
I use i/b in the layout elements, and em/strong is used when you publish posts.
by
0 like 0 dislike
i and b I use for design decisions when using CSS only is impractical (e.g., navigation, image captions, etc. — why devote a span, which is to assign bold, if it is possible to allocate to b?), but strong and em in the main page content to highlight part of the phrase/paragraph/...
by

Related questions

0 like 0 dislike
1 answer
asked Jun 12, 2019 by Cyberial
0 like 0 dislike
1 answer
asked Apr 27, 2019 by brachkoff
110,608 questions
257,186 answers
0 comments
28,802 users