-
<font>??
I know that the <font> tag is depricated, but what's it's replacement? Sometimes I can use the <div> tag and a stylesheet, but that tag leaves a newline after it's closed. So now I'm using the <span> tag when I need to manipulate text. Is this how it should be done or is there something that I'm missing?
-
Span is exactly how it should be done.
-
Yeah span is correct, although you should use a more appropriate tag if there is one, e.g. use <abbr> if the selected text is an abbreviate, or <acronym> if it's, well, and acronym ;), etc, i.e. only use span when there is no more appropriate a tag.
-
I'd try to just apply a style to the best html tag that represents the content - span and div make it easy to apply arbitrary styles to text, but the other tags better represent your content.
-
Cool, thanks :) I was really confused about this for some reason.