Invalid DIV Tags?

Posted on 2012-08-14
Last Modified: 2012-08-14
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=""
                            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?
Question by:lrbrister
    LVL 3

    Accepted Solution

    It is an HTML5 thing. Have a look at
    LVL 50

    Assisted Solution

    by:Julian Hansen
    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

    Author Closing Comment

    Perfect. Thanks guys

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
    The viewer will learn how to count occurrences of each item in an array.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now