|
-
Jun 19th, 2002, 11:46 AM
#1
Thread Starter
Stuck in the 80s
<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?
-
Jun 19th, 2002, 11:50 AM
#2
Frenzied Member
Span is exactly how it should be done.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Jun 19th, 2002, 01:30 PM
#3
Frenzied Member
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.
-
Jun 19th, 2002, 02:10 PM
#4
Black Cat
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.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jun 19th, 2002, 05:28 PM
#5
Thread Starter
Stuck in the 80s
Cool, thanks I was really confused about this for some reason.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|