Jump to content

Are <b> <i> <font color=""> depracated?


blogsmith
 Share

Recommended Posts

Are tags like <b> <i> <font color=""> depracated?Do we have to use <span font-weight="bold"> instead?Thanks

whole font -tag is deprecated<b> and <i> are not yet, but they are planned to be as deprecated in future.use CSS with Your fonts.Add this style-block Your document head-part (or external CSS-file without style tags):
<style type="text/css"><!--.bold_red{font-weight: bold;color: red;background-color: inherit;}.bold{font-weight: bold;}--></style>  

in body part:<span class="bold_red">Bold and red</span><div class="bold">Bold in here</div>Look, there is very good tutorial: :)http://www.w3schools.com/css/css_font.asp

Link to comment
Share on other sites

whole font -tag is deprecated<b> and <i> are not yet, but they are planned to be as deprecated in future.use CSS with Your fonts.Add this style-block Your document head-part (or external CSS-file without style tags):
<style type="text/css"><!--.bold_red{font-weight: bold;color: red;background-color: inherit;}.bold{font-weight: bold;}--></style>  

in body part:<span class="bold_red">Bold and red</span><div class="bold">Bold in here</div>Look, there is very good tutorial: :)http://www.w3schools.com/css/css_font.asp

Link to comment
Share on other sites

A small correction on raimo's post: the <b> and <i> tags, as well as the <u> tag and some other are already deprecated in XHTML's strict doctype. Scince XHTML 1.1 and future versions would come only in strict doctypes, we say those tags are deprecated already.The presentational attributes (like blogsmith's font-weight attribute) are also unavaiable for those strict doctypes.

Link to comment
Share on other sites

Is there a tutorial where I can go to learn them? Something like the HTML tutorial. I don't think I have seen them.

Once you have learnt the stuff at W3 schools these are handy sites too.http://css.maxdesign.com.au/index.htmhttp://www.alistapart.com/topics/code/css/
Link to comment
Share on other sites

A small correction on raimo's post: the <b> and <i> tags, as well as the <u> tag and some other are already deprecated in XHTML's strict doctype. Scince XHTML 1.1 and future versions would come only in strict doctypes, we say those tags are deprecated already.The presentational attributes (like blogsmith's font-weight attribute) are also unavaiable for those strict doctypes.

hmm? <b> and <i> are still in XHTML 1.1, if I can believe W3C? :)Those tags are not marked as deprecated (yet)?http://www.w3.org/TR/xhtml11/doctype.htmlXHTML 1.1 presentation module includes b, big, hr, i, small, sub, sup and tt tags.But <u>, <s> etc. HTML deprecated stuffs are already gone out in XHTML 1.1,and in XHTML 2 <b> and <i> are not existing anymore, so b and i will be setted as a deprecated "soon".http://www.w3.org/TR/xhtml2/elements.html
Link to comment
Share on other sites

hmm? <b> and <i> are still in XHTML 1.1, if I can believe W3C? :)Those tags are not marked as deprecated (yet)?http://www.w3.org/TR/xhtml11/doctype.htmlXHTML 1.1 presentation module includes b, big, hr, i, small, sub, sup and tt tags.But <u>, <s> etc. HTML deprecated stuffs are already gone out in XHTML 1.1,and in XHTML 2 <b> and <i> are not existing anymore, so b and i will be setted as a deprecated "soon".http://www.w3.org/TR/xhtml2/elements.html

Damn it... I hate being wrong :) .
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...