svg: Difference between revisions
Jump to navigation
Jump to search
m (Fix: replaces deprecated <source> tag with <syntaxhighlight>) |
m (Fix: corrects syntaxhightlight lang attribute) |
||
Line 8: | Line 8: | ||
Here is a simple example: | Here is a simple example: | ||
<syntaxhighlight lang= | <syntaxhighlight lang=xml> | ||
<svg class="h-card" viewBox="0 0 200 200" height="200" width="200"> | <svg class="h-card" viewBox="0 0 200 200" height="200" width="200"> | ||
<circle cx="50%" cy="50%" r="100" fill="gold"/> | <circle cx="50%" cy="50%" r="100" fill="gold"/> |
Revision as of 23:59, 30 November 2022
This article is a stub. You can help the microformats.org wiki by expanding it.
The class attribute is allowed on SVG elements. As such, there are rich possibilities for embedding microformats with or in them.
Example
Here is a simple example:
<svg class="h-card" viewBox="0 0 200 200" height="200" width="200">
<circle cx="50%" cy="50%" r="100" fill="gold"/>
<text class="p-name" x="25" y="110" font-size="30">
Example Co.
</text>
</svg>