体内的元标记 [英] Meta Tags In Body

查看:96
本文介绍了体内的元标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的网站www.nacts.com.au上添加我的喜欢"按钮,以添加到我们的Facebook页面上的按钮,但收到此消息:

I am trying to get my like button on my website www.nacts.com.au to add to the ones on our Facebook page but receive this message:

您的拥有标签ouside.这是因为您的格式不正确,并且它们在分析树中的位置降低了,或者是您不小心将Open Graph标记放在了错误的位置.无论哪种方式,您都需要先修复它,然后标签才能使用.

You have tags ouside of your . This is either because your was malformed and they fell lower in the parse tree, or you accidentally put your Open Graph tags in the wrong place. Either way you need to fix it before the tags are usable.

但是实际上它是这样放置在PHP下的

But it is actually placed like this under PHP

    <!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" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://developers.facebook.com/schema/" "html xmlns:fb="http://ogp.me/ns/fb#" >
    <head>
    <title>North Australia Career &amp; Training Services</title>
     <meta property="fb:app_id" content="191402794307447" />
     <meta property="og:title" content="North Australia Career & Training Services" />
     <meta property="og:type" content="website" />
     <meta property="og:url" content="http://www.nacts.com.au" />
     <meta property="og:image" content="http://nacts.com.au/images/NACTS4.png" />
     <meta property="og:site_name" content="NACTS" />
     <meta property="fb:admins" content="566419298" /> 
     <meta property="og:description" content="North Australia Career & Training Services"> 
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <meta name="msvalidate.01" content="3123382E32539EBE8C53C2CA69F7510D" />
     <meta name="google-site-verification" content="bExkQFnEooJVIoZIm70CO8H8Yjx_FfyyCC6hNE_SeoA" />
     <meta name="keywords" content=" training rockhampton, training rocky, rockhampton training,training,train,career development,mining,course,Resumes, Resumes Rockhampton, Tenders,Tender Writing, Marketing,business services,Rockhampton Business Services ,Courses,North Rockhampton Training,Industry Courses,Workplace Development,Rockhampton Career Advice,Career Development Rockhampton,RPL,North Australia,career,training Services,funding, Grants" />
</head>     

我在做什么错了?

推荐答案

问题的答案在错误描述中.您必须在HTML代码的<head />部分中嵌入og:元标记.请在此处阅读有关开放图标记如何工作​​的更多信息: http://ogp.me

The answer to your issue is in the error description. You have to embed the og: meta tags in the <head /> section of the HTML code. Please read more about how open graph tags work here: http://ogp.me

编辑

基于对问题的编辑,现在知道了www.nacts.com.au的URL,进行故障排除要容易得多.

Based upon the edits to the question, now knowing the URL of www.nacts.com.au, it's much easier to troubleshoot.

我确实看到了一个BODY部分而不是HEAD中的元标记.是<meta property="fb:page_id" content="148187795268337">

I do see one meta tag that is in the BODY section and not in the HEAD. It is <meta property="fb:page_id" content="148187795268337">

这篇关于体内的元标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆