www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Etc. > The Coffee Lounge

    The Coffee Lounge Relax and discuss the latest topics of the day.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 03-04-2007, 10:46 PM
    Mr Initial Man's Avatar
    Mr Initial Man Mr Initial Man is offline
    Registered User
     
    Join Date: Sep 2004
    Location: At the corner of WALK and DONT WALK
    Posts: 1,473
    Is this what the W3C is gunning for?

    Yes, this webpage is purely satirical. But, like most satire, it seeks to make a point. In this case, the point is that of trying to get rid of a lot of tags that are, in my mind, still useful. Check it out, particularily the coding.

    Just a warning: It won't work in IE; there are CSS rules in there that IE does NOT support.

    http://mrinitialman.furtopia.org/Stu.../elementml.xml
    __________________
    Coach Random Comic
    Reply With Quote
      #2  
    Old 03-04-2007, 11:49 PM
    drhowarddrfine's Avatar
    drhowarddrfine drhowarddrfine is offline
    Registered User
     
    Join Date: May 2005
    Posts: 2,044
    Well, you're cheating and you know you are. Just because you can do it that way doesn't mean you should.

    If anything, you are showing the flexibility of xml over html. As the tags are deprecated, the usability of css increases and the need for those tags disappears. I can hardly wait till I can reliably shed (x)html and html altogether. I might even be able to do it now if I take the time to find out.
    Reply With Quote
      #3  
    Old 03-05-2007, 12:20 AM
    Mr Initial Man's Avatar
    Mr Initial Man Mr Initial Man is offline
    Registered User
     
    Join Date: Sep 2004
    Location: At the corner of WALK and DONT WALK
    Posts: 1,473
    Damn right I'm cheating!

    As for (X)HTML, I hope it never goes away entirely. The reason is this: I think we NEED to have predefined markup languages such as XHTML, SVG, MathML, so we don't have to reinvent the wheel every time we make a website. Besides, when I use XSLT to turn XML into something readable on the internet, you know what it's transformed into? XHTML!
    __________________
    Coach Random Comic
    Reply With Quote
      #4  
    Old 03-05-2007, 01:12 AM
    felgall's Avatar
    felgall felgall is offline
    Computer Consultant
     
    Join Date: Mar 2005
    Location: Sydney, Australia
    Posts: 7,982
    There is a clear distinction between what should be in (X)HTML and what should be CSS.

    If the same code describes what it is correctly for people viewing on mobile phones, computer screens, braille keyboards, and listening via a web reader then it belongs in the HTML. If it doesn't make sense for all those people then it should be defined in a stylesheet targetted at the appropriate media.

    People listening to a site can't hear fonts and centered and aligned right and things like that so those things are meaningless to them and shouldn't be cluttering up the HTML any more than the HTML should contain information on whether to use a male or female voice when speaking the content.
    Reply With Quote
      #5  
    Old 03-05-2007, 01:24 AM
    Mr Initial Man's Avatar
    Mr Initial Man Mr Initial Man is offline
    Registered User
     
    Join Date: Sep 2004
    Location: At the corner of WALK and DONT WALK
    Posts: 1,473
    You have a point. I know, I'm lazy and much prefer the (usually) smaller presentational tags (like <sup>) to <span class="superscript">. In a story I'm writing, I use <i> tags here, there, and everywhere, since it's easier for me to write <i>Guten Tag</i> than it is for me to write <span class="character_speaks_a_foreign_language_here">"Guten Tag"</span> followed by span.character_speaks_a_foreign_language_here{font-style:oblique;}, especially considering I use that over and over again.
    __________________
    Coach Random Comic
    Reply With Quote
      #6  
    Old 03-05-2007, 05:37 AM
    NogDog's Avatar
    NogDog NogDog is online now
    High Energy Magic Dept.
     
    Join Date: Aug 2004
    Location: Ankh-Morpork
    Posts: 14,009
    There is absolutely nothing wrong semantically with <i>"Guten Tag"</i>. You can give it more meaning as <i lang='de'>"Guten Tag"</i> (in case a really clever text-to-speech reader can read in multiple languages). And of course you can add class and/or id attributes to it as needed for CSS attributes.

    Note that neither the <i> nor the <b> tag has been deprecated, though when either is being used for reasons of emphasis, then the <em> or <strong> tags make more sense; but when you are displaying foreign language text which by typographic conventions is typically set in an Italic font, the <i> tag would seem to make perfect sense. Non-semantic tags like <span> and <div> should only be used when you need to designate some sort of grouping of content where no meaningful tag makes sense.
    __________________
    "That's what the gods are! An answer that will do! Because there's food to be caught and babies to be born and life to be lived and so there is not time for big, complicated, and worrying answers! Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be." -- from Nation, by Terry Pratchett
    freelancer.internet.com
    Email me

    Last edited by NogDog; 03-05-2007 at 05:46 AM.
    Reply With Quote
      #7  
    Old 03-05-2007, 08:55 AM
    Mr Initial Man's Avatar
    Mr Initial Man Mr Initial Man is offline
    Registered User
     
    Join Date: Sep 2004
    Location: At the corner of WALK and DONT WALK
    Posts: 1,473
    Thing is, I don't think <i>"Guten Tag"</i> would be possible in XHTML 2.0. I was checking the tag list on w3.org and didn't see it. I don't use the lang attribute, since the language used is a fictional one.
    __________________
    Coach Random Comic

    Last edited by Mr Initial Man; 03-05-2007 at 08:59 AM.
    Reply With Quote
      #8  
    Old 03-05-2007, 11:18 AM
    drhowarddrfine's Avatar
    drhowarddrfine drhowarddrfine is offline
    Registered User
     
    Join Date: May 2005
    Posts: 2,044
    Quote:
    we NEED to have predefined markup languages
    XML Namespaces.
    Quote:
    I don't think <i>"Guten Tag"</i> would be possible in XHTML 2.0.
    That's what css is for.
    Reply With Quote
      #9  
    Old 03-05-2007, 12:28 PM
    the tree's Avatar
    the tree the tree is offline
    Hotter than you
     
    Join Date: Jun 2004
    Location: England
    Posts: 3,023
    I'm fairly sure the correct markup should be
    Code:
    <q lang="de">Guten Tag</q>
    As that would mean something, <span> wouldn't and neither would <i>.
    __________________
    Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
    (2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.
    Reply With Quote
      #10  
    Old 03-05-2007, 01:13 PM
    Mr Initial Man's Avatar
    Mr Initial Man Mr Initial Man is offline
    Registered User
     
    Join Date: Sep 2004
    Location: At the corner of WALK and DONT WALK
    Posts: 1,473
    Quote:
    Originally Posted by drhowarddrfine
    XML Namespaces.
    Ah, but isn't one of those namespaces the HTML namespace, which you're itching to be rid of?

    Quote:
    Originally Posted by drhowarddrfine
    Quote:
    Originally Posted by Mr Initial Man
    I don't think <i>"Guten Tag"</i> would be possible in XHTML 2.0.
    That's what css is for.
    But then we're back to <span class="character_speaks_a_foreign_language_here">"Guten Tag"</span>

    Quote:
    Originally Posted by the tree
    I'm fairly sure the correct markup should be
    Code:
    <q lang="de">Guten Tag</q>
    As that would mean something, <span> wouldn't and neither would <i>.
    I'll use <q> when the browsers handle it consistently. That is, when it no longer has those bloody quotation marks!
    __________________
    Coach Random Comic
    Reply With Quote
      #11  
    Old 03-05-2007, 11:47 PM
    Stephen Philbin's Avatar
    Stephen Philbin Stephen Philbin is offline
    Thuper Moderator
     
    Join Date: Mar 2004
    Posts: 3,065
    Quote:
    Originally Posted by drhowarddrfine
    Quote:
    Originally Posted by MIM
    we NEED to have predefined markup languages.
    XML Namespaces.
    That doesn't make a lick of sense. What do XML namespaces have to do with your stated desire to replace a well established and meaningful markup language with a meaningless and unknown one?

    As for the original topic, I don't really agree. The subtractions made from the markup "vocabulary" seem perfectly sensible to me. The subtractions I know of anyway.
    Reply With Quote
      #12  
    Old 03-06-2007, 12:02 AM
    Mr Initial Man's Avatar
    Mr Initial Man Mr Initial Man is offline
    Registered User
     
    Join Date: Sep 2004
    Location: At the corner of WALK and DONT WALK
    Posts: 1,473
    Well, isn't the point of getting rid of presentational tags to get rid of code bloat? Which looks more bloated? <i></i> (7 characters) or <span class="italic"> </span> (28 characters). Particularily when used over and over again?
    __________________
    Coach Random Comic
    Reply With Quote
      #13  
    Old 03-06-2007, 12:09 AM
    theuedimaster's Avatar
    theuedimaster theuedimaster is offline
    Elation by Information
     
    Join Date: May 2004
    Location: The Big M
    Posts: 677
    No, it's not about bloat. It's about EFFICIENCY. And efficiency is about having all the gears of a machine be distinct and not be conflicting with each other. It's about mobility, it's about organization, it's about accessibility. Plato's definition of Justice IMO.
    __________________
    <? Damn Browser Incompatibilities ?>
    Dell 1505~2.0 Core Duo~1 gig DDR2-533~ Radeon x1400(256mb)~ Hitachi 100gb 7200rpm
    <? Go Blue. ?>

    Last edited by theuedimaster; 03-06-2007 at 12:11 AM.
    Reply With Quote
      #14  
    Old 03-06-2007, 12:11 AM
    Mr Initial Man's Avatar
    Mr Initial Man Mr Initial Man is offline
    Registered User
     
    Join Date: Sep 2004
    Location: At the corner of WALK and DONT WALK
    Posts: 1,473
    Well, <i> still looks a bit more efficient to me, though I could be wrong. :-/ Unless looking solely at file sizes isn't the way to go. ^^;
    __________________
    Coach Random Comic
    Reply With Quote
      #15  
    Old 03-06-2007, 12:15 AM
    theuedimaster's Avatar
    theuedimaster theuedimaster is offline
    Elation by Information
     
    Join Date: May 2004
    Location: The Big M
    Posts: 677
    Exactly, looking at file sizes is not the only way of looking at it. <i> is quicker, and efficient if you think of efficient in terms of the quickest way of doing something, but having something done quick is not always the best. Sure, when hardware specs were low, having software do things in the quickest manner possible was key. But now that we have gotten by that limitation in terms of html, we have to turn to other needs such as accessibility and mobility. By seperating all the parts of the machine, instead of having it all mixed up in a black box, we can more clearly fix things and find the information we want.

    Basically, all the arguments you can use for supporting object oriented design can also support the separation of HTML into XHTML, CSS, etc.
    __________________
    <? Damn Browser Incompatibilities ?>
    Dell 1505~2.0 Core Duo~1 gig DDR2-533~ Radeon x1400(256mb)~ Hitachi 100gb 7200rpm
    <? Go Blue. ?>
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 04:35 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.