Jump to content

Validation help


Html

Recommended Posts

Ok, not sure what to do here...

# Error  Line 9 column 61: end tag for "img" omitted, but OMITTAG NO was specified....er><img border="0" src="banner.gif" alt="My blue ocean"><a /></center>You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".✉# Info Line 9 column 8: start tag was here.<center><img border="0" src="banner.gif" alt="My blue ocean"><a /></center># Error Line 25 column 37: end tag for "param" omitted, but OMITTAG NO was specified.<param name="src" value="ocean2.mov">✉# Info Line 25 column 0: start tag was here.<param name="src" value="ocean2.mov"># Error Line 26 column 37: end tag for "param" omitted, but OMITTAG NO was specified.<param name="autoplay" value="false">✉# Info Line 26 column 0: start tag was here.<param name="autoplay" value="false"># Error Line 27 column 38: end tag for "param" omitted, but OMITTAG NO was specified.<param name="controller" value="true">✉# Info Line 27 column 0: start tag was here.<param name="controller" value="true"># Error Line 28 column 11: there is no attribute "src".<embed src="ocean2.mov" width="160" height="120"You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.✉# Error Line 28 column 30: there is no attribute "width".<embed src="ocean2.mov" width="160" height="120"✉# Error Line 28 column 43: there is no attribute "height".<embed src="ocean2.mov" width="160" height="120"✉# Error Line 29 column 9: there is no attribute "autoplay".autoplay="false" controller="true">✉# Error Line 29 column 28: there is no attribute "controller".autoplay="false" controller="true">✉# Error Line 29 column 34: element "embed" undefined.autoplay="false" controller="true">

Link to comment
Share on other sites

# Error Line 9 column 61: end tag for "img" omitted, but OMITTAG NO was specified....er><img border="0" src="banner.gif" alt="My blue ocean"><a /></center>You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".✉# Info Line 9 column 8: start tag was here.<center><img border="0" src="banner.gif" alt="My blue ocean"><a /></center># Error Line 25 column 37: end tag for "param" omitted, but OMITTAG NO was specified.<param name="src" value="ocean2.mov">✉# Info Line 25 column 0: start tag was here.<param name="src" value="ocean2.mov"># Error Line 26 column 37: end tag for "param" omitted, but OMITTAG NO was specified.<param name="autoplay" value="false">✉# Info Line 26 column 0: start tag was here.<param name="autoplay" value="false"># Error Line 27 column 38: end tag for "param" omitted, but OMITTAG NO was specified.<param name="controller" value="true">✉# Info Line 27 column 0: start tag was here.<param name="controller" value="true"># Error Line 28 column 11: there is no attribute "src".<embed src="ocean2.mov" width="160" height="120"You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.✉# Error Line 28 column 30: there is no attribute "width".<embed src="ocean2.mov" width="160" height="120"✉# Error Line 28 column 43: there is no attribute "height".<embed src="ocean2.mov" width="160" height="120"✉# Error Line 29 column 9: there is no attribute "autoplay".autoplay="false" controller="true">✉# Error Line 29 column 28: there is no attribute "controller".autoplay="false" controller="true">✉# Error Line 29 column 34: element "embed" undefined.autoplay="false" controller="true">

Link to comment
Share on other sites

For tags like <img>, <br>, etc that don't have a closing tag, close them using />. For example:

<img src="picture.jpg" alt="pic" /><br />

Link to comment
Share on other sites

It depends on what you're validating forfor xhtml you need closure of tags including the param tag <param .............../> tagfor html you don'tthere's a typo I spotted though - the anchor closing tag is </a> not <a/> and it's the same for both html & xhtmlregardsnibe

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...