Solved

W3C validation error in Facebook like box

Posted on 2011-09-15
3
1,510 Views
Last Modified: 2012-08-13
HI

My site coding was W3C standards before i install the Facebook like box.
Now as soon i installed the like box it is showing 7 errors on the site page.

Anyone have got success to fix this issue.

here is the link of like box plugin
http://developers.facebook.com/docs/reference/plugins/like-box/ 


My site is in PHP/My SQL
www.axis-holiday.com 

Please suggest
0
Comment
Question by:nitinkrjain
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
kpmartin earned 500 total points
ID: 36543733
Problem is <fb> tags are not valid so you need a workaround.  Here's a couple solutions:
http://www.liormark.com/develop/development-articles/facebook-fbml-w3c-validation-solved

http://www.jnorton.co.uk/blog/facebook-button-w3c-valid
enjoy!
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 36544477
Your DOCTYPE might be part of the issue.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Instead of that, try the HTML5 declaration:

<!DOCTYPE html>
<html>
etc...
0
 
LVL 1

Author Closing Comment

by:nitinkrjain
ID: 36547709
Thanks
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

688 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