Why does the color of span have to be inline style to work?
It doesn’t have to be inline to work, it’s just that inline styles take precedence over internal styles. You can learn about css cascading priority
It doesn’t have to be inline to work, it’s just that inline styles take precedence over internal styles. You can learn about css cascading priority