Is it valid too...
Moderator: General Moderators
Is it valid too...
Is it valid too include <script>, <link> or <style> elements in the body of you document? If so then what would be the difference in placing them in the head or body of you document?
Try it & see if it validates. The answer will probably vary depending on which DOCTYPE you're using.
For speed, Yahoo suggests putting all CSS as far up in the document as possible, and all Javascript as far down.
For speed, Yahoo suggests putting all CSS as far up in the document as possible, and all Javascript as far down.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
My strict practices...
I do not use the style element ever with the obvious exception for troubleshooting/forum posts.
Code: Select all
<html>
<head>
<link>
<script>
</head>
<body>
</body>
</html>