I am very new to HTML and CSS but while learning I ran into something that I was curious about.
How come when you want to style or change font size etc. you use :
.
Example: style="color: red; font-size: 50px"
.
But when you want to link to let's say your stylesheet you use =
.
Example: link type="text/css"; rel="stylesheet"; href="stylesheet.css"
.
What's the difference? Because basically when you say color: red
, your saying you want the color to = red
, so why not just use that? This is just a curiosity thing nothing serious but your answers are appreciated.