Forum Moderators: open

Message Too Old, No Replies

HTML Question

<html> within <html>

         

fashezee

4:30 pm on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I recently attained a contract to maintain a web site and the previous web design
was using many SSI for many pages. In some pages; it occurs that there is an <html> document
within a <html> document. Some thing like:

<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
</HEAD>
<BODY>

<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>

</BODY>
</HTML>

I would remove the <html><body> etc... tags from the part that is being in included via SSI,
however, the programming integrated within the document does not work when I remove the
duplicate tags.

I would like to know how much of problem this is with the standards as well as with the Search Engines
if I where to leave the duplicate <html> <body> tags..?

Sinner_G

4:38 pm on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's a tough one. Normally, the page should not work when there are duplicate html and body tags. What exactly happens when you remove the ones in the include?

fashezee

5:13 pm on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No validation works; the javascript rollovers don't work either. It's really funny, I can't seem
to find the problem. Thats why I'm contemplating just leaving it as is.

I just want to know what the implications are?

g1smd

10:09 pm on May 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Implications are that it may not work in some browsers, and may trip up some spiders.

You are advised to fix it.

It will be more than duplicate <html> tags.

You'll need to fix the <head> and contents, as well as duplicate <body> ... </body> tags.

A lot of work, but will worth doing.