SlowFlight
Programmer
I have a web site which contains background music. The music plays all right in all my browsers. But when I try to validate the pages, the only thing that comes up as not valid is the code for the background music.
This is my code:
<bgsound src="sounds/NA2earth.mid" loop="infinite" />
These are the errors I get:
Line 14, column 13: there is no attribute "src"
Line 14, column 40: there is no attribute "loop"
Line 14, column 52: element "bgsound" undefined
This is the explanation to the first two errors:
“there is no attribute ‘FOO’ for this element (in this HTML version)”
You have used an attribute with an element that is defined not to have that attribute. This is most commonly caused by using vendor-specific attributes without setting the document type appropriately.
This is the explanation to the third error:
“element ‘FOO’ undefined”
You've used an unknown tag (represented here by ‘FOO’). Make sure the DTD indicated by your DOCTYPE actually includes this element.
And this is how my DOCTYPE is set:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
<html xmlns=" xml:lang="en" lang="en">
Any suggestions as to how I can get this to validate?
Sailor Skip
This is my code:
<bgsound src="sounds/NA2earth.mid" loop="infinite" />
These are the errors I get:
Line 14, column 13: there is no attribute "src"
Line 14, column 40: there is no attribute "loop"
Line 14, column 52: element "bgsound" undefined
This is the explanation to the first two errors:
“there is no attribute ‘FOO’ for this element (in this HTML version)”
You have used an attribute with an element that is defined not to have that attribute. This is most commonly caused by using vendor-specific attributes without setting the document type appropriately.
This is the explanation to the third error:
“element ‘FOO’ undefined”
You've used an unknown tag (represented here by ‘FOO’). Make sure the DTD indicated by your DOCTYPE actually includes this element.
And this is how my DOCTYPE is set:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
<html xmlns=" xml:lang="en" lang="en">
Any suggestions as to how I can get this to validate?
Sailor Skip