Can you use SVGs in AMP web pages?

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?

1 answer

  • answered 2018-01-12 07:51 Bachcha Singh

    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>