No <body> tags in HTML

  • Thread starter Thread starter Steve H
  • Start date Start date
S

Steve H

I just discovered that over one hundred of my pages did not
have the <body> tags--yet they displayed just fine in the
big three browsers. Why is this?

Luckily, I found a way to use FPs Find feature to locate
those pages that DON'T have <body> on the page!

Thanks,
Steve H
 
Why is this?

Luck. Browsers try hard to render your code. The </head> tag followed by
ANY HTML will cause a virtual implied <body>. But your page will not
validate, and if it contains a standards doctype, it will drop into quirks
mode, I believe.
 
Thanks! I added them just to be sure.
-----Original Message-----

Luck. Browsers try hard to render your code. The </head> tag followed by
ANY HTML will cause a virtual implied <body>. But your page will not
validate, and if it contains a standards doctype, it will drop into quirks
mode, I believe.


--
Murray




.
 
Back
Top