Invalid DIV Tags?

Working wth VisualStudio 2010, .Net 4.0 and VB.Net

On a web page I inherited it has the following tag

<div style="float: left" class="fb-like" data-href="http://www.facebook.com/pages/ourpage/1234567893214569"
                            data-send="false" data-layout="button_count" data-show-faces="false">

I'm getting "Not a valid attribute of element 'div'"

Is this a HTML5 thing and how do I handle?
Larry Bristersr. DeveloperAsked:
Who is Participating?
 
John SmithConnect With a Mentor Commented:
It is an HTML5 thing. Have a look at http://developers.facebook.com/docs/reference/plugins/like/.
0
 
Julian HansenConnect With a Mentor Commented:
data- is an HTML5 specific enhancement for attributes that contain user defined data. You can put any attribute you like into a tag as long as you prefix it with 'data-'.

This will cause a validation error against old HTML specifications.

Make sure your doctype is set to html

<!doctype html>

Other than that you should be able to ignore them
0
 
Larry Bristersr. DeveloperAuthor Commented:
Perfect. Thanks guys
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.