+ 2
Why bgcolor attribute is not working in svg
3 Antworten
+ 6
bgcolor Supported tags:
body
marquee
table
tBody
td
tFoot
th
tHead
tr
👉The bgcolor attribute is not supported in HTML5.
Source: geekforgeeks
+ 4
Bro svg was introduced in html5 so it doesn't support the previous styles
Use CSS
U can use inline CSS
<svg .......style="background-color:skyblue;"
+ 2
use CSS instead
svg {
width:500px;
height:500px;
background-color:skyblue;
}