<svgviewBox="0 0 400 100"xmlns="http://www.w3.org/2000/svg"><!-- Default fill opacity: 1 --><circlecx="50"cy="50"r="40"/><!-- Fill opacity as a number --><circlecx="150"cy="50"r="40"fill-opacity="0.7"/><!-- Fill opacity as a percentage --><circlecx="250"cy="50"r="40"fill-opacity="50%"/><!-- Fill opacity as a CSS property --><circlecx="350"cy="50"r="40"style="fill-opacity: .25;"/></svg>
Note: SVG2 introduces percentage values for fill-opacity, however, it is not widely supported yet (See Browser compatibility below) as a consequence, it is best practices to set opacity with a value in the range [0-1].