there is no attribute "data-over"
I get this error when I try to validate my page. I use dataover because it seems hard to roll over my image-menu bar in CSS. I also have a bit of java in b开发者_运维百科eginning line of my code.
Im using the transitional doc type so thats good I guess... Help? :)
there is no attribute "data-over"
… data-out="images/nav/home_btn.png" data-over="images/nav/home_roll.png" /></a>
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).
Custom data attributes are an HTML5 feature. It sounds to me like you're not using the HTML5 doctype:
<!DOCTYPE html>
精彩评论