Another newby question, since I got such good help on my last one...
I've figured out how to set the colour of text by creating a class of the <p> or <body> tags (if thats how you say it). But what if I just want to change the colour or weight of text of of a word in a sentence, so that there is no line break between it and the other words?Use a <span></span> tag, and then format the span tag in the css. You only need set a class or ID if you plan to use other span tags that you wanted formatted differently.Use <span></span> tags for colour, but use <strong></strong> and <em></em> for bold and italics.What makes those words special so you'd like them to be rendered differently?there could be other cool tags that you'd use as wellOK, thanks!
I'm so glad I found this forum.
PS. I know that there are some tags that I'm supposed to avoid using, like for example the <font> tag. Is there anywhere I can go to see a list of these tags, so that I can know what to avoid?Deprecated:
tags (<!-- m --><a class="postlink" href="http://www.w3schools.com/html/html_reference.asp">http://www.w3schools.com/html/html_reference.asp</a><!-- m -->)
attributes (<!-- m --><a class="postlink" href="http://skaiste.elekta.lt/Books/O'Reilly/Bookshelfs/books/webdesign/wdesign/appc_02.htm">http://skaiste.elekta.lt/Books/O'Reilly ... ppc_02.htm</a><!-- m -->)
W3C list (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/appendix/changes.html#idx-deprecated">http://www.w3.org/TR/REC-html40/appendi ... deprecated</a><!-- m -->)Originally posted by Daniel T
... use <strong></strong> and <em></em> for bold and italics.
That's not entirely correct, is it? You use <em></em> and <strong></strong> to give text emphasize and strong emphasize respectively, but it doesn't tell how to render them visually. But ok, yes, I know most (many?) visual browsers render these tags in italics and bold respectively.Originally posted by J.Karlsson
That's not entirely correct, is it? You use <em></em> and <strong></strong> to give text emphasize and strong emphasize respectively, but it doesn't tell how to render them visually. But ok, yes, I know most (many?) visual browsers render these tags in italics and bold respectively.
That was exactly the reason for my question. It could be all she really wants to do is style one or both of those differently than their defaults.
I've figured out how to set the colour of text by creating a class of the <p> or <body> tags (if thats how you say it). But what if I just want to change the colour or weight of text of of a word in a sentence, so that there is no line break between it and the other words?Use a <span></span> tag, and then format the span tag in the css. You only need set a class or ID if you plan to use other span tags that you wanted formatted differently.Use <span></span> tags for colour, but use <strong></strong> and <em></em> for bold and italics.What makes those words special so you'd like them to be rendered differently?there could be other cool tags that you'd use as wellOK, thanks!
I'm so glad I found this forum.
PS. I know that there are some tags that I'm supposed to avoid using, like for example the <font> tag. Is there anywhere I can go to see a list of these tags, so that I can know what to avoid?Deprecated:
tags (<!-- m --><a class="postlink" href="http://www.w3schools.com/html/html_reference.asp">http://www.w3schools.com/html/html_reference.asp</a><!-- m -->)
attributes (<!-- m --><a class="postlink" href="http://skaiste.elekta.lt/Books/O'Reilly/Bookshelfs/books/webdesign/wdesign/appc_02.htm">http://skaiste.elekta.lt/Books/O'Reilly ... ppc_02.htm</a><!-- m -->)
W3C list (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/appendix/changes.html#idx-deprecated">http://www.w3.org/TR/REC-html40/appendi ... deprecated</a><!-- m -->)Originally posted by Daniel T
... use <strong></strong> and <em></em> for bold and italics.
That's not entirely correct, is it? You use <em></em> and <strong></strong> to give text emphasize and strong emphasize respectively, but it doesn't tell how to render them visually. But ok, yes, I know most (many?) visual browsers render these tags in italics and bold respectively.Originally posted by J.Karlsson
That's not entirely correct, is it? You use <em></em> and <strong></strong> to give text emphasize and strong emphasize respectively, but it doesn't tell how to render them visually. But ok, yes, I know most (many?) visual browsers render these tags in italics and bold respectively.
That was exactly the reason for my question. It could be all she really wants to do is style one or both of those differently than their defaults.