The validator doesn't work too well on script code. It is meant for HTML. There are tricks you can use if having that green 'you've been a good boy' screen pop up in the validator is important to you. Generally, making scripts external or commenting them out using the:
Code:
<script type="text/javascript">
<!--
code goes here
// -->
</script>
convention works. Making scripts external is the preferred method. About the BR tag, try:
HTML Code:
<br> <br>
There is a way around just about everything the validator 'doesn't like' but, it is better to learn how to code to standards and not worry about the validator too much. It is most useful as a sort of 'dumb' proofreader type tool.
Bookmarks