doctype tag, validation

Discussion in 'HTML & Website Design' started by ycc, May 30, 2009.

  1. #1
    So, here I am again, asking for assistance :) I have really received good help here in the past. Members of this forum have pointed out code validation as an important step. I have noted this but I have, unfortunately, some older pages that "Quirk along" as I think you could call it.

    The page for my present concern is this:
    http://web.telia.com/~u17103363/doc/Ubuntu_installation_noCD.htm

    It is an introduction to how to pxe-boot Ubuntu-Linux, written in Swedish.

    In its present state (without using any doctype-tag) it "works" in FF, Opera, Chrome and MSIE 6-8.

    When I test the page I test the following:

    1. The Ubuntu logotype slides into position at page-load (the round logo slides into the box with rounded corners)
    2. The "back-to-top"-arrow (public domain script) slides down as you scroll down
    3. If you f.ex. press the text marked
    [innehåll]
    the contents will appear in a quickly expanding, moving box.

    I have tried introducing doctype tags, but it does not work.

    For example, putting the following tag at top, will make the Ubuntu logo slide into a bad position, but IE8 will display it correctly.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    Code (markup):
    What should I do?

    Introduce the doctype tag above and try to patch the code into correct display?
    Or should I just leave the page "Quirking along"?

    Or something else?

    Thanks
     
    ycc, May 30, 2009 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    Leave it alone unless you want to do the work. Adding a doctype changes the rules which is why things move and you would have to re-code the site.
     
    drhowarddrfine, May 30, 2009 IP
  3. ycc

    ycc Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    drhowarddrfine,

    Thanks for advice.

    But from now on, I will put doc-type tags at the top of NEW pages I start to make.

    (When I recheck the page again, I must also admit that I never made the public domain script for "sliding arrow linking to back-to-top" work in Opera, apart from that I think thet page works as expected in the browsers mentioned.)
     
    ycc, May 31, 2009 IP