Forum Moderators: open
The wc3 validator says that the script that I'm using (I don't write JS) produces an error:
tag <style> missing required attribue "type".
I understand it needs an attriube similar to an alt tag but I'm not sure what to put in there.
Can I just put something in there to describe what the JS is for, i.e., falling snowflakes?
thanks
Lori
<script type="text/javascript" src="sourcefile.js"> ... or do you think about the inline style tag:
<style type="text/css"> ... or possibly the external stylesheet tag:
<link rel="stylesheet" type="text/css" media="screen" href="stylesheet.css"> IMHO, one of these three will be the right one for you.
You need to add the following attribute to the style tag to tell the browser that it contains CSS:
<style type="text/css">
/* css stuff here */
</style>
Similarly, any script tags containg JavaScript should look like this:
<script type="text/javascript">
// js stuff here
</script>
Don't use the language attribute in script tags any more, it's discontinued (for the doctype I suspect you're using).