fill paths svg code example

Example 1: svg stroke color

<rect x="10" y="10" width="100" height="100" stroke="blue" fill="purple"
       fill-opacity="0.5" stroke-opacity="0.8"/>

Example 2: html path svg stop

<svg class="icon icon-person" width="25rem" height="25rem" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <style>
    path {
      stroke: black;
      stroke-width: 5 !important;
    }
  </style>
  <g transform="translate(2.5, 0)">
    <path d="M0 0 V 200"></path>
  </g>
</svg>

Tags:

Css Example