How can I embed schema.org markup in SVG?

I want to add semantics to SVG files and would like to use the schema.org conditions. Does SVG have syntax for this? My first attempt:

<svg:text xmlns:svg="xmlns="http://www.w3.org/2000/svg" x="100" y="200"   
       html:itemtype="http://schema.org/Person" xmlns:html="http://www.w3.org/1999/xhtml"
       >Joe Soap</svg:text>

Will it match the SVG and display in the appropriate tools? and will schema.org markup be recognized by search engines?

+2
source share
1 answer

I have never tried, but I think you can use RDFa , since SVG Tiny 1.2 allows attributes

  • about
  • content
  • datatype
  • property
  • rel
  • resource
  • rev
  • typeof

(You can use the element metadatawith RDF / XML .)

0
source

Source: https://habr.com/ru/post/1650224/


All Articles