Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

My favorite HTML font style tag is...

by tye  (Monk)
on Aug 18, 2003 at 18:28 UTC ( [id://284668]=poll: print w/replies, xml ) Need Help??

Vote on this poll

<i>
[bar] 73/15%
<b>
[bar] 107/22%
<u>
[bar] 3/1%
<strike>
[bar] 40/8%
<tt>
[bar] 45/9%
<big>
[bar] 12/2%
<small>
[bar] 16/3%
<font>
[bar] 54/11%
<span>
[bar] 137/28%
487 total votes
Replies are listed 'Best First'.
Re: My favorite HTML font style tag is...
by jeffa (Bishop) on Aug 18, 2003 at 20:24 UTC
    TacoVendor beat me to the <blink> joke, so i'll have to be serious. I voted for <tt>, because until i started hanging out at the Monastery, i never used this tag. I like to use it in my posts to markup CPAN modules, subroutines, methods, and variables, as long as i don't have to use the [ or < symbols (which require escaping or 'inline' <code> tags). Here is an example.
    That's why i like [cpan://Time::Piece]. Not only is it a drop-in replacement for <tt>localtime</tt> and <tt>gmtime</tt>, <tt>Time::Piece</tt> also ...
    Pesonally, i think the extra typing is worth it, but some might claim it's not being lazy. ;)

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    

      I'm a nitpicker. I admit it. Since you're using <tt> to show emphasis, you should really use <EM> </EM> and then use your stylesheet to make your EM equivalent to teletype.

      - Erik

      ---------------------------------------------------------------------------

      Promoting web standards since 3 PM today.

        Why? What's the difference. I am sure that there is a good one, but i don't understand why you just say "you should this!" without explaining why. Also, if you were a nitpicker then you would have said "use <em> tags" instead, because that's the XHTML way (all lower cased elements).

        Letsee, i just tested this html:

        <p>this is <i>italic</i></p> <p>this is <em>emphasis</em></p> <p>this is <tt>teletype</tt></p>
        and viewed it with lynx, which 'rendered' the <i> and <em> tags, but not the <tt> tag. If this is what you were referring to, then yes, i should switch. But i probably won't. ;)

        jeffa

        L-LL-L--L-LL-L--L-LL-L--
        -R--R-RR-R--R-RR-R--R-RR
        B--B--B--B--B--B--B--B--
        H---H---H---H---H---H---
        (the triplet paradiddle with high-hat)
        
Re: My favorite HTML font style tag is...
by TacoVendor (Pilgrim) on Aug 18, 2003 at 19:11 UTC
    You forgot <blink>

      Netscape hethen! <marque> for ever!

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated

        Oh, yeah, I loved <marque>. Tags that gave you government sanction to go out and capture other people's web pages and hold them for ransom? Can't beat it...

        Oh wait, yes you can. :-\



        If God had meant us to fly, he would *never* have given us the railroads.
            --Michael Flanders

        I think you're suffering from loose vowels :) - and memory loss :)

        Netscape heathen! <marquee> forever!

        And <marquee> was an IE tag :)

        .02

        cLive ;-)

      Blink is not a standard tag, so it doesn't work everywhere. Plus it's annoying!

        <blink> is my favorite tag for exactly those reasons :)

        -silent11
Re: My favorite HTML font style tag is...
by Cine (Friar) on Aug 18, 2003 at 18:35 UTC
    span?

    T I M T O W T D I
        Bloody vikings ...

        --
        tbone1
        Ain't enough 'O's in 'stoopid' to describe that guy.
        - Dave "the King" Wilson

        Don't ruin a good joke with such feeble things as facts ;)

        T I M T O W T D I
      span is just like <div style=display:inline>. A quite useless tag that many HTML designers don't even know existed.
        Not useless. (caveat untested code) Say you have a css:
        Warning.*{ color=#YELLOW }

        and you code in your html
        print "<SPAN CLASS="WARNING">"My warning</SPAN>";
        all over the place, and then your phb says "make the warning section have a blue backround", all you have to do is update your css and then with no code change to current code base and a simple one line update to the css you're done!
Re: My favorite HTML font style tag is...
by Plato (Friar) on Aug 19, 2003 at 09:10 UTC
    I personally like the‹SUP› and ‹SUB› tags.
    Pity they weren't included also.

    PLATO

Re: My favorite HTML font style tag is...
by Courage (Parson) on Aug 19, 2003 at 07:14 UTC
Re: My favorite HTML font style tag is...
by Joost (Canon) on Aug 19, 2003 at 11:44 UTC
    Hate all of them. <em> <cite> <del> <code> <strong> <h1> etc are so much better. Maybe sometimes I'd use <div> and <span> but I try to avoid it.

    Joost.

    -- #!/usr/bin/perl -w use strict;$;= ";Jtunsitr pa;ngo;t1h\$e;r. )p.e(r;ls ;h;a;c.k^e;rs ";$_=$;;do{$..=chop}while(chop);$_=$;;eval$.;

      <div> is widely used for the CSS box layout. The alternative is to devolve into nested tables. Sure, for simple text markup, <div> isn't used much, but its becoming invaluable for designers (and will become more so when/if IE ever fixes its CSS support).

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      Note: All code is untested, unless otherwise stated

        But most of the time I see <div> tags used where a <p> or some other tag that actually has meaning would be better. The problem with (or the point of) <div> and <span>. tags is that they don't have any meaning. This means that you are putting information (content) in a 'block' that appears to have no meaning at all.

        Though I can see the use of the construct in some cases, just applying <div> and <span> anywhere you want a layout change is bad practice.

        For instance, this:

        <p> <span class="bold">Some header</span><br> Some paragraph. </p>

        Is much better written:

        <h3>Some header</h3> <p> Some paragraph. </p>

        - Don't laugh too hard at the above example, I've seen plenty of this in real sites made by supposedly professional companies.

        Joost.

        -- #!/usr/bin/perl -w use strict;$;= ";Jtunsitr pa;ngo;t1h\$e;r. )p.e(r;ls ;h;a;c.k^e;rs ";$_=$;;do{$..=chop}while(chop);$_=$;;eval$.;
Re: My favorite HTML font style tag is...
by blaze (Friar) on Aug 19, 2003 at 00:57 UTC
    I like the sarcasm that italics can imply...if used correctly
    -Robert

    Hopefully there will be a witty sig here at some point
Re: My favorite HTML font style tag is...
by mattriff (Chaplain) on Aug 19, 2003 at 15:35 UTC
    I voted for <font> for two reasons:

    1. I don't care for serif fonts, and I can use it to specify sans-serif ones.

    2. I know <font> is considered "bad," but my knowledge of HTML is only current up until the time I got out of school and got my "real job" programming. :)

    Well, that's not entirely true. I have learned just enough CSS to rip off, er, borrow some from other people's pages.

    I remember the first time I saw a page that changed the default font. It took me 15 minutes to read the source and rush to update all my pages.

    - Matt Riffle
      Sr. Systems Programmer, pair Networks, Inc.
      (although, I speak only for myself; code is untested unless otherwise stated)

Re: My favorite HTML font style tag is...
by talexb (Chancellor) on Aug 19, 2003 at 15:04 UTC

    I didn't vote -- my favourite tag wasn't on the list. I guess span comes the closest.

    My favourite is the <p> tag, along with its brother, </p>. Using the two together means I'm XML compliant and balanced. That's important for an ex-C programmer .. since many of us are unbalanced.

    --t. alex
    Life is short: get busy!
Re: My favorite HTML font style tag is...
by vili (Monk) on Aug 19, 2003 at 17:42 UTC
    I must say I am partial to <head>
    despite not being a font style tag, although >b< is nice too,
    as it makes things stand out rather well

    vili is addicted to sniffing 802.11
      I must say I am partial to <head>
      Who isn't?
Re: My favorite HTML font style tag is...
by cLive ;-) (Prior) on Aug 19, 2003 at 20:04 UTC

    Hmmm, this poll's about as relevant as asking what my favorite air molecule is. And, <font> isn't even html!

    All of those tags can be changed through CSS (and should be, to suit your document).

    What is the question? What is your favorite structural markup? What is your favorite display markup?

    I like <p> because it structurally defines a paragraph? I like <i> because it suggests displaying in italics?

    <b style="font-weight: normal; font-style: italic">This is bold</b> <i style="font-weight: bold; font-style: normal;">This is italic</i>

    .02

    cLive ;-)

    Update: ty ChemBoy - Ok, it's valid, but deprecated and not recommended :)

    Update 2: since my other reply is nested deeply, let me link to CSS Zen Garden here too.

      And, <font> isn't even html!
      oh?



      If God had meant us to fly, he would *never* have given us the railroads.
          --Michael Flanders

Re: My favorite HTML font style tag is...
by neilwatson (Priest) on Aug 20, 2003 at 23:39 UTC
    Die <font> die!

    Sorry, had flashback of cleaning up someone's Frontpage code.

    Neil Watson
    watson-wilson.ca

Re: My favorite HTML font style tag is...
by Mago (Parson) on Aug 19, 2003 at 13:32 UTC


    small - Expert´s Font
Re: My favorite HTML font style tag is...
by sauoq (Abbot) on Aug 21, 2003 at 21:09 UTC

    None of the above. (HTML sucks.)

    -sauoq
    "My two cents aren't worth a dime.";
    
Re: My favorite HTML font style tag is...
by synistar (Pilgrim) on Aug 22, 2003 at 13:15 UTC

    Actually CSS should have been included as an option. Since any type of presentational HTML should be avoided if possible. Centralize all of your styling in your CSS files and you have one place to change the look of your site. Decided that h2 headers on your site should be white with a blue background? Change one line of CSS to update your whole site.

    Check this page for examples of applying lots of different style sheets to the same page: http://www.csszengarden.com/

<div> for style
by jonadab (Parson) on Aug 22, 2003 at 18:50 UTC

    I normally use <div>, but I voted <span>, which basically amounts to the same thing. The only other style tags I use with any regularity are <em>, <strong>, and <cite>. Of these, <strong> is the one I use most by far -- but not nearly as much as <div>. I do sometimes apply styles to other tags (<p> and <td> come to mind), but in those cases I'm not including the tag for the purpose of applying style (unless you count semantic things like paragraphitude as style, which I don't), so I don't think those count as style tags.


    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
Re: My favorite HTML font style tag is...
by porqui (Acolyte) on Aug 25, 2003 at 21:28 UTC
    because I have a thing for <span>ish ladies

View List Of Past Polls


Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2024-03-28 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found