T1000Android Posted August 15, 2011 Share Posted August 15, 2011 Hello guys! Since the <font> tag is deprecated, how do i style a single word? Lets say if i wanted to turn only one word in a sentence red, without using the <font> tag. Link to comment Share on other sites More sharing options...
Ingolme Posted August 15, 2011 Share Posted August 15, 2011 Put a <span> tag around it and use CSS to target and style the span. YOu can use a classname if you want to. Link to comment Share on other sites More sharing options...
Drycodez Posted August 15, 2011 Share Posted August 15, 2011 <p>I am a <span style="color:red"> RED </span> word.</p> Link to comment Share on other sites More sharing options...
T1000Android Posted August 16, 2011 Author Share Posted August 16, 2011 Thanks guys! I am really new at this. Just finished the tutorial on HTML on this site and i didnt know about the <span> tag thanks.i also dont know what a classname is. Link to comment Share on other sites More sharing options...
Drycodez Posted August 16, 2011 Share Posted August 16, 2011 a class in html, is an attribute that allow you to link to a specific style in css. Link to comment Share on other sites More sharing options...
T1000Android Posted August 17, 2011 Author Share Posted August 17, 2011 Please tell me how to use that class dilly. Link to comment Share on other sites More sharing options...
Drycodez Posted August 17, 2011 Share Posted August 17, 2011 If you wish to learn how to use it, then you must have a basic understanding of CSS (cascading style sheet). Goto: w3schools.com and see css tutorial. Link to comment Share on other sites More sharing options...
T1000Android Posted September 11, 2011 Author Share Posted September 11, 2011 Oh thanks! Im learning CSS now and i know about classes and ids now. Link to comment Share on other sites More sharing options...
Drycodez Posted September 11, 2011 Share Posted September 11, 2011 Oh thanks! Im learning CSS now and i know about classes and ids now.ok! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.