Results 1 to 5 of 5

Thread: <font>??

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    <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?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.

  3. #3
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    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.

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  5. #5

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Cool, thanks I was really confused about this for some reason.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width