SVG default color question

If I don’t specify a color filler for the center of the triangle, it’s automatically black without any color given.

Why is this?

<svg width="92" height="109" viewbox="0 -3 85 106">
  <path fill="currentColor" style=" stroke: #e77d19; stroke-width:3px;" d="M81 44.6c5 3 5 7.8 0 10.8L9 98.7c-5 3-9 .7-9-5V6.3c0-5.7 4-8 9-5l72 43.3z"></path>
</svg>

As an exercise, why don’t you try searching for some likely keywords in your favorite search engine? “svg background-color” would probably be a good start.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.