View Full Version : Pls review this doctype/ open graphic <head>

05-12-2011, 11:43 AM
Hi - thanks.

The following is to add the Open Graphs Tags to my page. Can you see why there seems to be a conflict with the line in red? If I allow the line in red to be published, errors are thrown up. Should I try to merge this line or does the other lines cancel it out?

Thanks Very Much

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ALLOWING THIS CAUSES AN ERROR -->
<html xmlns="http://www.w3.org/1999/xhtml"
<meta property="og:title" content="The Rock"/>
<meta property="og:type" content="movie"/>
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
<meta property="og:site_name" content="IMDb"/>
<meta property="fb:admins" content="USER_ID"/>
<meta property="og:description"
content="A group of U.S. Marines, under command of
a renegade general, take over Alcatraz and
threaten San Francisco Bay with biological
<link rel="shortcut icon" href="/images/favicon.ico" />

<Whole bunch of javascript />

05-12-2011, 11:50 AM
META tags should be placed inside the <HEAD> </HEAD>. Of course that if you place it outside the HEAD (or even outside the HTML tag, your case) will bring errors :). Put it inside the head.

05-12-2011, 11:51 AM
thanks buddy