Click to See Complete Forum and Search --> : where are the bold tags going?
7hunters
11-24-2003, 08:17 PM
Something that annoys me is to be slinking through someones code and see <small><strong><em> .
I'm not sure why I'm so hung up on it. Can anyone tell me why this is surely becoming the standard and why we're migrating away from <b> and <i>?? (Ugh' and the small tag, oh' how I hate that why not just set it in the CSS and be done and when it's right beside a font tag I get a migraine there and then.)
I'm new here :) I have been playing around building websites for a few years now and finally have almost gotten decent at it. :rolleyes:
Paul Jr
11-24-2003, 08:30 PM
http://www.w3.org/TR/REC-html40/present/graphics.html#edef-B
That might be of some help to you.
<strong> and <em> make much more semantic meaning than <b> or <i> would - If you just need bold or italicized text, you can do it easily with style sheets.
The reason you see it more and more is because some programs to edit html put that code in for you so they put <strong> when <b> would be just fine.
ray326
11-25-2003, 09:52 AM
The current direction of the Web is the "semantic Web". I.e., the HTML document should "make sense" rather than "define how it should look". <B> and <I> are "presentational" tags; <STRONG> and <EM> are "semantic" tags that browers typically render as bold and italic respectively. Now that you've got a lot of 20th century Web experience under your belt, come on into the 21st century Web design. Read A List Apart (http://www.alistapart.com) and get Zeldman's book, 'designing with web standards'.
Originally posted by Shto
The reason you see it more and more is because some programs to edit html put that code in for you so they put <strong> when <b> would be just fine. Or, when web developers who know what they are doing create that pages, with semantic markup:
About <b> and <i>From http://www.w3.org/TR/REC-html40/present/graphics.html#h-15.2
The following HTML elements specify font information. Although they are not all deprecated, their use is discouraged in favor of style sheets.
What <strong> and <em> actually mean, semantically:
[url]http://www.w3.org/TR/REC-html40/struct/text.html#h-9.2.1[/url
EM and STRONG are used to indicate emphasis.
Robert Wellock
11-25-2003, 11:45 AM
Anybody would think you have been reading the Technical Recommendations; at current state in XHTML 1.1 <b> <i> have been removed in favour of CSS for the above reasons.