I wonder if I can embed js and css files over the area of the html document:
<script type="text/javascript" src="../../media/js/jquery.js"></script>
<script type="text/javascript" src="../../media/js/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="../../media/css/cupertino/jquery-ui.css" />
<html>
<head>
</head>
<body>
<body>
</html>
this is because I want to put them in the same php file where I include all the files (php, js and css). I tried this and it seems to work. the output of the html file will be shown in the same way as the above code, including the lines above the html tag.
Are there any hidden disadvantages to this?
source
share