blogsmith Posted April 26, 2006 Share Posted April 26, 2006 Are tags like <b> <i> <font color=""> depracated?Do we have to use <span font-weight="bold"> instead?Thanks Link to comment Share on other sites More sharing options...
raimo Posted April 26, 2006 Share Posted April 26, 2006 Are tags like <b> <i> <font color=""> depracated?Do we have to use <span font-weight="bold"> instead?Thanks<{POST_SNAPBACK}> 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 More sharing options...
blogsmith Posted April 26, 2006 Author Share Posted April 26, 2006 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 <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
blogsmith Posted April 26, 2006 Author Share Posted April 26, 2006 Sigh! These are very difficult to remember and to type. Are they really necessary? Link to comment Share on other sites More sharing options...
scott100 Posted April 26, 2006 Share Posted April 26, 2006 Sigh! These are very difficult to remember and to type. Are they really necessary?<{POST_SNAPBACK}> Yes it's necessary if you want valid code, the more you use them the more familiar they will become Link to comment Share on other sites More sharing options...
blogsmith Posted April 26, 2006 Author Share Posted April 26, 2006 Yes it's necessary if you want valid code, the more you use them the more familiar they will become <{POST_SNAPBACK}> Is there a tutorial where I can go to learn them? Something like the HTML tutorial. I don't think I have seen them. Link to comment Share on other sites More sharing options...
scott100 Posted April 26, 2006 Share Posted April 26, 2006 CSS Tutorial: http://www.w3schools.com/css/default.aspCSS Examples: http://www.w3schools.com/css/css_examples.asp (very helpful) Link to comment Share on other sites More sharing options...
boen_robot Posted April 26, 2006 Share Posted April 26, 2006 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 More sharing options...
johneva Posted April 26, 2006 Share Posted April 26, 2006 Is there a tutorial where I can go to learn them? Something like the HTML tutorial. I don't think I have seen them.<{POST_SNAPBACK}> 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 More sharing options...
raimo Posted April 26, 2006 Share Posted April 26, 2006 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.<{POST_SNAPBACK}> 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 More sharing options...
boen_robot Posted April 26, 2006 Share Posted April 26, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now