multiple <html> sections in one page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maxgano
    New Member
    • Apr 2010
    • 2

    multiple <html> sections in one page

    Hi, I am trying to help a friend out with a few modifications to her website. I have found one page that appears to be a concatenation of three pages into one. There are literally three full sections of code in the page, each beginning with <html> and ending with </html> with what appear to be full sets of legitimate code for each with both head and body sections included. Two of the head sections contain links and style declaration.

    Before I dig into this, I just thought I would ask - is this some sort of technique that (despite cutting a fair amount of HTML code for over the past fifteen years) I have just never run across before? I am not even sure why the page is actually loading. Are the second and third sets of html, head and body tags simply being ignored.

    Wow, just when you think you have seen everything. Any help and or advice on why I should preserve this page as-is would be much appreciated.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    consecutive <html> tags are not allowed. it’s plain wrong. period.

    Comment

    • maxgano
      New Member
      • Apr 2010
      • 2

      #3
      Hah ! I think I figured it out. I am guessing the previous "helper" didn't have immediate ftp access to the site. So he went to the site, navigated to the page, then used view source to get a copy of the page code. But what he actually got was the compiled output generated by several include files in the original page code, each with html sets. He then probably copied it all into a new html file from the output without really looking at anything but the one change he needed to make. Thus, the consecutive html sections. Then he ships the file off to the site owner who uploads it to the site. That's my theory and I'm sticking to it.

      Thanks to Dormilich for confirming the wrongness of it all. Ah, the humanity !!!

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        Ah, the humanity !!!
        Two things are unlimited—human stupitity and the universe. But I’m not sure about the universe.
        Albert Einstein

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          Originally posted by Dormilich
          Two things are unlimited—human stupitity and the universe. But I’m not sure about the universe.
          Albert Einstein
          Two things are unlimited—human stupitity and the universe. But I’m not sure about the universe.

          Albert Einstein
          No, that was me. Just last Friday.

          Comment

          Working...