Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include multiple XML namespaces in HTML5

I'm trying to include Facebook's OpenGraph new meta tags but when I add the required namespaces that would have worked in XHTML, HTML5 won't validate.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml" dir="ltr" lang="en-US">

Where is the proper place to put these namespaces with HTML5?

like image 918
Scott C Avatar asked Dec 28 '22 12:12

Scott C


1 Answers

There are no namespaces in HTML5 AFAIK:

http://mortalpowers.com/news/no-namespaces-in-html5

like image 184
Mikko Ohtamaa Avatar answered Jan 02 '23 07:01

Mikko Ohtamaa