header file and <link.... directive
===

I have a header.php file that uses few <link type="text/css...../>
I have an index.php file that looks something like:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0     Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Test </title>
    </head>
    <body>
    <?php require_once('header.php'); ?>
    <div>
    Main content.....
    </div>

    </body>
    </html>
Everything seems and looks OK.

I go to http://validator.w3.org/ to validate index.php and I get the error of incorrect positioning of the <link.....> (document type does not allow element "link" here) refering to the fact that "link" should be inside the <head> ....</head> not the <body>....</body>
Not sure what to do next.


Also I have in several of my .php files several <link ....> to .css files. I would like to consolidate all the <link...in one file and add THIS file to the .php files. Not sure how.

I also have a "stupid" question.

I use several .js files like for example:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>
I guess I do not need to download the file locally, right?

Any help is very much appreciated.