4

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:

enter image description here

1 Answer 1

3

HTML 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.

1
  • 1
    Thanks, makes sense!
    – Justin
    Commented Oct 3, 2022 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.