Schema.org是我一直用來添加微數據到我的第一個網站,但我發現該網站是非常模糊的,到目前爲止,我已經能夠找到答案的大部分問題在Stackoverflow或WebMaster上。正確使用Microdata和Schema.org指定「email」爲itemscope?
在一個頁面上我有模式設置爲
<div itemscope itemtype="https://schema.org/Person">
<h1><span itemprop="name">Name Here</span> — SEO</h1>
<h2 itemprop="address"><i>Manchester, New Hampshire</i></h2>
<h3><a href="mailto:[email protected]?Subject=Service%20Inquiry">Email Me</a>
—<span itemprop="email">[email protected]</span></h3>
</div>
沒問題的,我希望。
在我的網站的另一頁上,我只有電子郵件我的標題,因爲沒有其他信息是相關的。現在我有一個模式設置爲
<h2><a href="mailto:[email protected]?
Subject=Service%20Inquiry">Email Me</a> —<span itemscope
itemtype="https://schema.org/email">[email protected]</span></h2>
電子郵件是人的itemprop,但我無法找到的文檔說,我不能使用itemprop作爲項目類型。我是否正確使用了這個方法,並且模式的讀取方式與抓取工具不同,而不是itemprop使用電子郵件的方式?