Does Microdata (for rich snippets) have to be visible to the visitor to be displayed in Google search results?
I want to add the rich snippet to my page, but I don't want it in the format that is required. So I thought I could add it as a hidden div
, but I'm not sure if that will work.
<div style="visibility:hidden;height:0px;" itemscope itemtype="http://schema.org/LocalBusiness">
<div itemprop="name"><asp:Literal ID="ltTitle" runat="server" /></div>
<div itemprop="description"><asp:Literal ID="ltMetadescription" runat="server" /></div>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress"><asp:Literal ID="ltAddress" runat="server" /></span>
<span itemprop="postalCode"><asp:Literal ID="ltZipcode" runat="server" /></span>
<span itemprop="addressLocality"><asp:Literal ID="ltCity" runat="server" /></span>
<span itemprop="addressRegion"><asp:Literal ID="ltProvince" runat="server" /></span>
<span itemprop="addressCountry"><asp:Literal ID="ltCountry" runat="server" /></span>
</div>
</div>