Is it allowed (and also consumed correctly by google) if I add HTML markup in my FAQ structured data? or should we strip out all HTML markup like
etc..?
How will content with markup be shown in the google search results?
example:
Webmasters Stack Exchange is a question and answer site for webmasters. It only takes a minute to sign up.
Sign up to join this communityHTML in the answer text is fine.
If you check the official documentation from Google, you will see that they actually use p
and b
tags themselves in some of the example code.
A common SEO trick is actually to include hyperlinks (a tag) in the answer. Google will display them in the search results!
Google will display the following HTML elements in the search results:
h1
h2
h3
h4
h5
h6
br
ol
ul
li
a
p
div
b
strong
So basically (sub)headlines, lists, links, bolding, italics, and paragraphs.
All other HTML will simply be ignored: tags like i
and em
.