473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.
Apr 20 '10 #1
4 2401
Dormilich
8,658 Expert Mod 8TB
consecutive <html> tags are not allowed. it’s plain wrong. period.
Apr 21 '10 #2
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 !!!
Apr 21 '10 #3
Dormilich
8,658 Expert Mod 8TB
Ah, the humanity !!!
Two things are unlimited—human stupitity and the universe. But I’m not sure about the universe.
Albert Einstein
Apr 21 '10 #4
drhowarddrfine
7,435 Expert 4TB
@Dormilich
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.
Apr 21 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
5
by: Ben | last post by:
hi all, just wondering if it is possible to call a function that resides on external php file before any <html> tag?? i have a code that sets a cookie which needs to be called before <html> tag....
9
by: Philip TAYLOR | last post by:
Configuring a new instance of IIS, I noticed that it allows an HTML-formatted document trailer to be appended to every document served. Unfortunately, on checking its behaviour, I find that it...
10
by: Kathy Burke | last post by:
Hi, in trying to discover why my RegisterStartUpScript wouldn't work (I do NOT see it in the HTML source), I looked at the HTML source of a page where I do an XslTransform. First, I get the...
2
by: taras.di | last post by:
Hi everyone, Is it possible to place javascript outside of <html> tags? I'm trying it on mozilla atm, and it seems to be working, but I was more worried about the older browsers. Cheers ...
4
by: Mark G. | last post by:
Hello. I am attempting to write a "scraper" to download information from a commercial web site. Oddly enough, they don't want to make this easy for me! Their pages include plenty of Javascript,...
1
by: yawnmoth | last post by:
I'm trying to mess around with PHP5's DOM functions and have run into something that confuses me: <?php $dom = new DOMDocument(); $dom->loadHTML('<html></html>'); echo...
1
by: John | last post by:
Hi var poster="<html><head..... etc .... </html>"; var animal='dog'; The string contains images and text that changes. Originally I wanted to do something like print "<a href=" +...
3
by: Silmaril | last post by:
hi everyone, i have a question about place of metatags. i've started to seo for active webpage of our client(which is not coded by me) ,but website is very bad coded then i'm a lazy programmer...
3
by: Arodicus | last post by:
This is bugging me: how do I reference the topmost node (HTML) within a document? I'd like to set a class on it, which specifies various browser/os/versions so that several...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.