Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: 3Re: My favorite HTML font style tag is...

by theAcolyte (Pilgrim)
on Aug 20, 2003 at 17:28 UTC ( [id://285299]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to 3Re: My favorite HTML font style tag is...
in thread My favorite HTML font style tag is...

Ya, my XHTML is garbage, thanks for reminding me.

The reason for using <em> over <i> or <b> in this situation is the idea of structure vs. presentation.

In an ideal world, your HTML would only mark up your content structurally ...

  • <em> rather then <i> or <b> for emphasis
  • <code> rather then <pre> for mono-spaced code
  • <h1> for a headline instead of <font>

Why bother, you ask? (Well, even if you don't....) Because not all devices that render HTML pages are visual -- example, if someone is looking at your page on a Palm Pilot, then the palm can interpret emphasis the best way it can. Also, search engines are better equiped to deal with structural markup -- markup that signifies what type of data something is.

Once you can do all your mark-up structurally, you can use CSS to have your HTML visually styled in the user-agents that can handle it, and the ones that can't will still be able to digest it easily.

  • Comment on Re: 3Re: My favorite HTML font style tag is...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://285299]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.