1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Benifits of valid HTML?

Discussion in 'HTML & Website Design' started by Rory M, Jul 3, 2008.

  1. CaffinePhil

    CaffinePhil Banned

    Messages:
    945
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #21
    You'd have to aim specifically for the mobile device standards to get them to display ideally on a phone etc.
     
    CaffinePhil, Jul 4, 2008 IP
  2. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #22
    And something I completely forgot about earlier.

    It depends why its invalid, as to if its a real problem or not.

    If you are missing an alt tag, its not the end of the world (matter of fact, it won't make a difference at all). Missing the DOCTYPE, and you kiss goodbye any form of cross-browser compatibility.
     
    rochow, Jul 4, 2008 IP
  3. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #23
    Well, alt tag helps in Google Image Search optimization.

    Anyways, one thing we can say for sure - validity won't do any harm. It isn't SO important but it's a sign of professionalism and quality.

    One good advantage of valid xhtml I think should be mentioned is that it can be easily converted to xml or to some other formats that are used in pdas and cellphones. Definately easier that not valid xhtml.
     
    risoknop, Jul 4, 2008 IP
  4. Rory M

    Rory M Peon

    Messages:
    1,020
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #24
    Browsershots is a great site; thank you :D
     
    Rory M, Jul 4, 2008 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #25
    This is only true if the valid XHTML is also well-formed (usually is if it's valid), and follows the protocol for XML (Valid XHTML does not have to because it's served as text/html).

    One for-instance is character entities. You can have valid XHTML with <pre>&copy;</pre> but it's not one of the XML "character entities" (you get only 5). Since one of the 5 is not recognised by HTML, you really only get 4 (<pre>&gt; &lt; &amp; &quot;</pre> as <pre>&apos;</pre> is XML-only). There's some other things like this which I've run across. If you write your XHTML as if it was really XML while keeping HTML browsers in mind, then yeah, you can do it.
     
    Stomme poes, Jul 5, 2008 IP
  6. Rory M

    Rory M Peon

    Messages:
    1,020
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #26
    Well, it took me an hour but I finally ironed out all the bugs and have valid XHTML and CSS :D
     
    Rory M, Jul 5, 2008 IP
  7. Cmain

    Cmain Peon

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #27
    Having Valid and Semantic code helps in many areas. It helps search engines, flexibility, and support for screen readers.
     
    Cmain, Jul 5, 2008 IP
  8. CaffinePhil

    CaffinePhil Banned

    Messages:
    945
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #28
    Just out of curiosity, are most blog theme's (wordpress in particular) coded to the standards?
     
    CaffinePhil, Jul 7, 2008 IP
  9. Rory M

    Rory M Peon

    Messages:
    1,020
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #29
    I would have thought that the official ones would be, you could always use the W3C validator to check yours
     
    Rory M, Jul 7, 2008 IP
  10. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #30
    Most are coded well because Wordpress does most of the work.

    Emphasise on the most, its quite easy to still do a bad job of it :D
     
    rochow, Jul 7, 2008 IP
  11. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #31
    Well, wordpress uses crap like target="_blank" etc and isn't all that semantic...which is why Dan Schulz is working on a "semantic WordPress" so that everyone can has cheezeburger and eat it too.
     
    Stomme poes, Jul 7, 2008 IP
  12. CaffinePhil

    CaffinePhil Banned

    Messages:
    945
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #32
    Go Dan!

    I'll test my theme out later today and see how messed up it is.
     
    CaffinePhil, Jul 7, 2008 IP
  13. Rory M

    Rory M Peon

    Messages:
    1,020
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #33
    What is wrong with "_blank"?
     
    Rory M, Jul 7, 2008 IP
  14. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #34
    No valid strict XHTML, plus its a pain in the ass
     
    rochow, Jul 7, 2008 IP
  15. Rory M

    Rory M Peon

    Messages:
    1,020
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #35
    Right, is there an equivalent that is valid XHTML?
     
    Rory M, Jul 7, 2008 IP
  16. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #36
    Nope, have to use some scripting.
     
    rochow, Jul 7, 2008 IP
  17. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #37
    You are not supposed to decide instead of the user whether he should leave the current tab/window or not. That's not right.

    It's his/her own browser and he/she will open links in new tab or window if he/she wants but you shouldn't be forcing him/her.
     
    risoknop, Jul 7, 2008 IP
  18. jprice259

    jprice259 Peon

    Messages:
    100
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #38
    You are welcome! :)
     
    jprice259, Jul 7, 2008 IP
  19. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #39
    Validation enhances interoperability -- correct rendering in all user agents. However, web pages can, and do, fail validation and still display pretty much as expected in graphical Browsers anyway due to their built-in Markup discrepancy compensation -- in other words depending on the error compensating properties of individual Browsers.

    Validation does catch many easily corrected Markup errors and the resultant code is consequently easy to maintain or change. Pages containing invalid Markup may not display or function correctly in Screen Readers, BRAILLE interpreters and Textual Browsers or when incorporated into other applications. As we move toward the Semantic Web, the rigors of XML will result in a greater requirement for Valid Markup.

    Valid and well formed Markup also bespeaks careful craftsmanship and that appeals to many web authors.

    James
     
    jamesicus, Jul 7, 2008 IP
  20. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #40
    I await Teh Semantic Web. I like the idea, but I read a paper somewhere on Why It Will Fail, I think the page is called MetaCrap, and makes some good points-- the whole semantic web thing doesn't only depend on semantic, valid, well-written and well-formed pages, but that people bother to do everything else right too.

    I liked his example with the Plam Pilot. : )
     
    Stomme poes, Jul 8, 2008 IP