I'm trying to use strict XHTML and CSS to build a website. I need to have text that is bold, underlined, and normal in the same line. In old html I would have done it like this:
<b>Some Bold Text</b> <u>Some Underlined Text</u> Some Regular Text
I created a CSS class that bold's the text and another that underlines the text, but all the html tags I know of (such as <div> or <p>) insert new lines before and/or after.
I could easily do it if I knew of a tag that didn't do anything, like <font>. Then just do something like:
<font class="bold">Bold Text</font><font class="under">Underlined Text</font>
What is a good way to handle this?
<b>Some Bold Text</b> <u>Some Underlined Text</u> Some Regular Text
I created a CSS class that bold's the text and another that underlines the text, but all the html tags I know of (such as <div> or <p>) insert new lines before and/or after.
I could easily do it if I knew of a tag that didn't do anything, like <font>. Then just do something like:
<font class="bold">Bold Text</font><font class="under">Underlined Text</font>
What is a good way to handle this?