Jump to content

Validation error there is no attribute "srcset"


Stefan444
 Share

Recommended Posts

[size=3][font=arial, helvetica, sans-serif]Hello,[/font][/size] [size=3][font=arial, helvetica, sans-serif]When validating W3C XHTML 1.0 Transitional I keep getting the error there is no attribute "srcset".[/font][/size][size=3][font=arial, helvetica, sans-serif]The code looks similar to the one on [url="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset/"]http://www.w3.org/ht...set/w3c-srcset/[/url], but it still doesn't work.[/font][/size] [size=3][font=arial, helvetica, sans-serif]<div class="imageself self" style="width:468px;height:121px;">[/font][/size][size=3][font=arial, helvetica, sans-serif]<img width="468" height="121" id="image-1111C3BE-A814-4536-B78D-5AE9BCA3AA66" class="mobile-shrunk" src="http://www.xxx.be/onewebstatic/3303f82ae3-DeBedenkerij_logo_white_hires.jpg" srcset="http://www.xxx.be/onewebstatic/3303f82ae3-DeBedenkerij_logo_white_hires.jpg 570w, http://www....white_hires.jpg 1x" style="display:block;" title="" alt="De Bedenkerij" /> </div>[/font][/size] [size=3][font=arial, helvetica, sans-serif]Thanks for any tips :-)[/font][/size] Edited by Stefan444
Link to comment
Share on other sites

If you intend to use HTML 5 elements and attributes you have to use the HTML 5 doctype. They go together. HTML 5 is going to continue being a draft until around 2020, but the W3C and the WHATWG told developers to start using it already.

Link to comment
Share on other sites

If I select the HTML5 verification a lot of other errors pop up.Most of them I could solve (Bad value DC.source/format,....) but there are also the errors "Attribute srcset not allowed on element img at this point" and the error in Google analytics script.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...