Home > DeveloperSection > Forums > How to fix the facebook login button w3 validator error
Samuel Fernandes
Samuel Fernandes

Total Post:159

Posted on    May-16-2013 2:01 AM

 Facebook API Facebook API 

 1 Reply(s)
 1562  View(s)
Rate this:
Hi Expert!

In my project I have added connect button code as follows. I have used HTML 5.

<fb:login-button>Login with Facebook</fb:login-button>
My doctype declaration us as follows.

<!doctype html>
<html lang="en">
    <meta charset="utf-8" />
When i use the above code i had a following error in w3 validator with HTML5.

line 219 column 24 - Error: Element fb:login-button not allowed as child of element li in this context. (Suppressing further errors from this subtree.

How to fix this error in HTML5. 

Thanks in advance.


Total Post:604

Posted on    May-16-2013 8:06 AM

Hi Samuel!

You can try as following

<html lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">

Modified On May-20-2013 04:33:52 AM

Don't want to miss updates? Please click the below button!

Follow MindStick