Reputation: 3188
I use some social network functionality for my site for that i add
<div class="share-buttons share-buttons-tab" data-buttons="twitter,facebook,google,pinterest" data-style="medium" data-counter="true" data-hover="true" data-promo-callout="true" data-float="left"></div>
and i get w3c error for the attribute which is reside in this div
So how can i solve this
Below is screenshot of w3c validation
I got some thing like this in my page source
<html class="javascript wf-myriadpro-n4-active wf-myriadpro-n6-active wf-myriadpro-n7-active wf-leaguegothic-n4-active wf-active" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>
in red color is this problem?
Upvotes: 1
Views: 317
Reputation: 3188
I got the answer of My Question for that i need to set <!DOCTYPE HTML>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
%%Panel.HTMLHead%%
<body>
Now all the the error are solve it just because of the page DOCTYPE is not HTML 5
**data-buttons
data-style
data-counter
data-hover
data-promo-callout**
This all attribute support in HTML5. I got this after long research.
I hope this will also help to other.
Upvotes: 1