Scalable Vector Graphics (SVG) Question:
Download Job Interview Questions and Answers PDF
List the example for SVG file?
Answer:
Following code snippet is an example that draws a circle.
★ SVG code always starts with <svg> tag.
★ <?xml version="1.0" standalone="no"?>
★ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
★ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
★ <svg width="100%" height="100%" version="1.1"
★ xmlns="http://www.w3.org/2000/svg">
★ <circle cx="200" cy="100" r="50" stroke="blue" stroke-width="2" fill="yellow"/>
★ </svg>
★ SVG code always starts with <svg> tag.
★ <?xml version="1.0" standalone="no"?>
★ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
★ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
★ <svg width="100%" height="100%" version="1.1"
★ xmlns="http://www.w3.org/2000/svg">
★ <circle cx="200" cy="100" r="50" stroke="blue" stroke-width="2" fill="yellow"/>
★ </svg>
Download SVG Interview Questions And Answers
PDF
Previous Question | Next Question |
List the advantages of SVG? | How you can perform embed SVG in HTML? |