Ok I've been wondering this for a while, I figured this would be a good place to ask about it. What exactly is the difference between these sets of tags?
| Code: |
<b>Bold</b>
<strong>Strong</strong>
|
I cannot tell the difference at all in these. Can anyone give me an example of when it would be better to use <strong> instead of <b>? Because the strong tag just seems unpractical if they are identical in use.
Also there are these also:
| Code: |
<i>italics</i>
<em>emphasized</em>
|
| Code: |
<kbd></kbd>
<code></code>
<samp></samp>
|
| Code: |
<var></var>
<cite></cite>
<dfn></dfn>
<address></address>
|
If anyone could clarify this up for me that would be great 
html and xhtml.. that's usually the difference.. html tag <b> and xhtml tag <strong> it's about validation.
Hmmm, because <b> validates as xhtml and so does <i>. So is it just a matter of preference?
both are the same but the difference of the language.
I think Strong and emphasize are CSS b and i are html
strong isnt css..
font-weight:bold; is css..
The difference is that b and i specifically indicate bold and italic, whereas strong and em indicate that different types of emphasis be applied to that text - someone using a console browser or a screen reader has no concept of bold or italic, but emphasis is possible (eg a different colour or different tone of voice). Hence, the W3C recommends using strong and em. In practice, b==strong and i==em for all user-agents I know of. HTH.
<i> and <b> describe graphical representation - form
<strong> <em> describe meaning, importance - subject
| Azmo wrote: |
strong isnt css..
font-weight:bold; is css.. |
Thanks!!!!!!!
| JayBee wrote: |
<i> and <b> describe graphical representation - form
<strong> <em> describe meaning, importance - subject |
That's a good way of putting it. Personally I use <i> and <b> in preference to <strong> and <em> to keep code size down, but HTML is supposed to set structure, not style.
The short and stupid of it... the 'strong' tag emphasizes something you are 'saying' as where 'b' formats text...
Although they appear the same, they semantically mean something different. For the majority, browsers handle the two tags identically. Readers on the other hand actually handles them a bit differently a lot of the time - strong will be used to enunciate or emphasize a particular piece of text more so than it will with something formatted with the bold tag...
<i> and <b> are old presentation tags which are deprecated (as every presentation tags, since presentation must be done in CSS).
Try to open a page in a mobile phone, and you'll see the difference between <b> (which means nothing) and <strong> (which means "this is important"). | Azmo wrote: |
| html and xhtml.. that's usually the difference.. html tag <b> and xhtml tag <strong> it's about validation. |
No. <b> is deprecated both in HTML and in XHTML...