Forum Moderators: open
I am using the xhtml transitional standard,
and I keep getting this error:
<style type="text/css">
^Error: element "style" not allowed here; check which elements this element may be contained within
Where are the resources to find out what these errors mean,
and can anyone help me get this stinkin' page validated?
HTML permits any number of STYLE elements in the HEAD section of a document.
Needs to be in the head to validate.
It is nice to see that people are taking the time and trouble to validate their pages.
It's great to know that having written something that it should work on just about any browser, under any operating system, anywhere in the world, rather than taking a big chance that it might be visible to some visitors under certain conditions.
Of course, some XHTML pages with CSS do get messed up on Netscape 4 systems, whether or not they validate; but validation still gives it a better chance of working.
That did work well....too bad it was only for a simple entrance page....even still I was excited to have my first page validate. I have looked at some of my other pages, and they look GREAT in new browsers, but on NN4 they fall to pieces.
It is nice to have some backwards compatibility.
<added> By the way, thanks for the help Korkus....is there any good sites you know of to get hints/error explanations for validation?</added>
I just use [validator.w3.org...] but some of the error messages can be a bit cryptic at times; or the actual error may be some distance away from the perceived fault.
Common Validation Errors [webmasterworld.com]