Jump to content

jquery


jnf555

Recommended Posts

Validation Output: 1 Error 1. Error Line 12, Column 55: required attribute "TYPE" not specified <script src="http://code.jquery.com/jquery-latest.js"></script> ✉ The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.hi the validater gave me this message what type should i be adding and where, this is the code i am using$(document).ready(function(){$("b").fadeIn(6000, function (){});return false;}); <img src="./images/oldbull.jpg" alt="oldbull" width="300px" height="200px"><b><img src="./images/newbull.jpg" alt="newbull" width="300px"height="200"></b>any advice pleasejnf555

Link to comment
Share on other sites

the validator gave you exactly what to add.

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
the tutorials gives examples for including javascript as well.http://www.w3schools.com/js/js_whereto.asp
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...