473,808 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multiple <html> sections in one page

2 New Member
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 2423
Dormilich
8,658 Recognized Expert Moderator Expert
consecutive <html> tags are not allowed. it’s plain wrong. period.
Apr 21 '10 #2
maxgano
2 New Member
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 Recognized Expert Moderator Expert
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 Recognized Expert Expert
@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
2934
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
3056
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. If I use that code on the same file, it works fine. But I'd like to use it on a separate php file so that it'd be easier to modify in the future because that same function can be called from other files too... When I include the external php...
9
2010
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 appends the trailer /after/ the closing </HTML> of the document, separated by a blank line. I therefore have a few questions : 1) Assuming HTML 4.01 Transitional, can anything legitimately follow the closing </HTML> tag ?
10
1630
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 transform results as expected, beginning with <html> and ending with </html> but then I see the following immediately after that: <HTML> <HEAD>
2
2101
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 Taras
4
3951
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, and more than a few redirects. One that is stumping me is a small page that includes a document object redirect in the <body> tag's onload() event. Like this: <body
1
2247
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 $dom->childNodes->length; ?>
1
2253
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=" + poster + ">Choose Poster of a " + animal + "</a>";
3
1904
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 : ) there are so many front pages and but i have a connection include page to use print metatags.. so, what if i put metatags before the <html> tag? is it work for search engines? (especially google and yahoo)
3
3447
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 browser/os/version-specific css bugs may be addressed without coding. eg: <HTML class="_IE _IE7 _Win _IE7Win"> The closest I've come is document.body.parentNode (line 22, below), but this of course requires that my script be executed from within body... I'd prefer to...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10631
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10374
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.