Jalpesh Patel
Jalpesh Patel

Reputation: 3188

In social networking getting W3c error

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

  1. data-buttons
  2. data-style
  3. data-counter
  4. data-hover
  5. data-promo-callout

So how can i solve this

Below is screenshot of w3c validation

error list in w3c site 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

Answers (1)

Jalpesh Patel
Jalpesh Patel

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

Related Questions