Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Mar 2011
    Posts
    164
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Pls review this doctype/ open graphic <head>

    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

    Code:
    <!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"
          xmlns:og="http://ogp.me/ns#"
          xmlns:fb="http://www.facebook.com/2008/fbml">
      <head>
    <title>XXXXX</title>
        <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
                       weapons."/>
    <link rel="shortcut icon" href="/images/favicon.ico" />
    
    <Whole bunch of javascript />
    </head>

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    Regular Coder
    Join Date
    Mar 2011
    Posts
    164
    Thanks
    7
    Thanked 0 Times in 0 Posts
    thanks buddy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •