Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you use SVGs in AMP web pages?

Tags:

svg

amp-html

Can you use SVGs in AMP web pages?

Can you use them with the amp-img tag's src attribute?

Can you use inline SVGs?

like image 613
Holly Avatar asked Jan 11 '18 20:01

Holly


1 Answers

1. Can you use SVGs in AMP web pages?

Yes you can, for more information Click Here

2. Can you use them with the amp-img tag's src attribute?

Yes you can example below

 <amp-img width="110" height="35" layout="responsive" src="logo.svg"></amp-img>

3. Can you use inline SVGs?

Yes you can example below

 <svg height="100" width="100">
  <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
  Sorry, your browser does not support inline SVG.  
</svg> 
like image 82
Bachcha Singh Avatar answered Jan 03 '23 20:01

Bachcha Singh