Jump to content

omitting the root element


jimfog

Recommended Posts

I have put the head section of a page, including the doctype in a file which is included in a php pagewith the known "include" contruct. IN this file I do not put the html tag:

<!DOCTYPE html>    <head>	    <title>test</title>	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />		 <link rel="stylesheet"  href="css/admingeneral.css"/>	    <script  type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" ></script>	    <script type="text/javascript" src="js/js-code.js"></script>    </head>

The funny thing is that when the browser loads the page the html element appears in the page(by looking at the source). How that can be, since I have omitted that tag as you see above?

Link to comment
Share on other sites

what are the contents just the included file, and what is the code it is being included into?

Edited by thescientist
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...