Switching from Strict to Transitional

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • metaphysics
    New Member
    • May 2007
    • 59

    Switching from Strict to Transitional

    I have been coding web pages for a few months now. Recently, I decided to drop tables and pick up using table-less CSS markup, and it has been going pretty well. I began using Strict DOCTYPEs, because I read they were better for CSS. I was about 98% done converting a phpNuke theme into table-less CSS when I realized that the page's DOCTYPE was Transitional. At first I didn't think it would be a problem, just a few changes to close the short tags. It worked fine in Firefox, however when I went to check it in IE, the page became all disoriented.

    If I wanted to change my Strict Markup into Transitional Markup, what changes should I make, and what should I pay attention to? The code is 100% valid. I will supply a link to the preview if necessary.
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    Trasitional is simply for those who are going from deprecated mark up to standard mark up. Change the DOC type to a script one, and run it through the validator.

    If that doesn't help much then post your link.

    Thanks, Death

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      As Death said, neither doctype will change how your markup is rendered. Some people get hold of the wrong one, though. Also, IE can't be trusted to follow all the rules so validated markup doesn't mean it will do what you want there.

      New pages should always use the strict doctype. You have no need to use transitional.

      Comment

      • metaphysics
        New Member
        • May 2007
        • 59

        #4
        Originally posted by Death Slaught
        Trasitional is simply for those who are going from deprecated mark up to standard mark up. Change the DOC type to a script one, and run it through the validator.

        If that doesn't help much then post your link.

        Thanks, Death
        Originally posted by drhowarddrfine
        As Death said, neither doctype will change how your markup is rendered. Some people get hold of the wrong one, though. Also, IE can't be trusted to follow all the rules so validated markup doesn't mean it will do what you want there.

        New pages should always use the strict doctype. You have no need to use transitional.
        I would love to agree that neither DOCTYPE will change how your markup is rendered. I am forced to use Transitional DOCTYPE, so I have no choice in that matter. I have sent both of you PMs with a link to the test code.

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          Like I said above, some people get hold of the wrong one. This is the wrong one:
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

          This is the right one:
          <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
          "http://www.w3.org/TR/html4/strict.dtd">

          Comment

          • metaphysics
            New Member
            • May 2007
            • 59

            #6
            Originally posted by drhowarddrfine
            Like I said above, some people get hold of the wrong one. This is the wrong one:
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

            This is the right one:
            <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
            Thank you, but the page needs to be Transitional. I WISH that I could keep it with Strict DOCTYPE, that'd make it a lot easier.

            Comment

            • drhowarddrfine
              Recognized Expert Expert
              • Sep 2006
              • 7434

              #7
              Yes, I forgot. But you still have the wrong one.

              <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
              "http://www.w3.org/TR/html4/loose.dtd">

              Comment

              • metaphysics
                New Member
                • May 2007
                • 59

                #8
                Wow, I didn't think that the answer could be so simple. Thank you for your patience.

                Comment

                Working...