How to fix the facebook login button w3 validator error

Total Post:159

Points:1117
 1963  View(s)
Ratings:
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">
<head>
    <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.
  1. Post:604

    Points:4228
    Re: How to fix the facebook login button w3 validator error

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!