Microsoft Bing Does Not Support The data-nosnippet HTML Attribute
While Google supports the info-nosnippet HTML attribute, Microsoft Bing does not, clarified Fabrice Canel of Microsoft on Twitter.
The details-nosnippet attribute lets you designate textual areas of an HTML webpage not to be employed as a snippet in the look for benefits in Google, but it does not work for Bing.
Fabrice Canel stated “We do not help data-nosnippet tag.”
We do not help knowledge-nosnippet tag.
— Fabrice Canel (@facan) April 5, 2022
For Google, the support document points out that you can designate textual areas of an HTML webpage not to be used as a snippet. This can be completed on an HTML-element degree with the info-nosnippet HTML attribute on span, div, and segment aspects. The data-nosnippet is considered a boolean attribute. As with all boolean characteristics, any benefit specified is ignored. To make certain device-readability, the HTML part must be valid HTML and all suitable tags will have to be closed accordingly. Google commonly renders internet pages in get to index them, nevertheless rendering is not confirmed. Since of this, extraction of information-nosnippet may transpire both of those prior to and right after rendering. To avoid uncertainty from rendering, do not add or eliminate the info-nosnippet attribute of current nodes via JavaScript. When including DOM components via JavaScript, consist of the facts-nosnippet attribute as required when to begin with incorporating the aspect to the page’s DOM. If custom made components are made use of, wrap or render them with div, span, or area factors if you will need to use information-nosnippet.
All over again, Microsoft Bing does not hear to this attribute.
Discussion board dialogue at Twitter.