: Difference between ":" and "=" in HTML and CSS? 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
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.
More posts by @Si4351233
2 Comments
Sorted by latest first Latest Oldest Best
Each programming language has its syntax.
For HTML, styles' properties are defined by
property_name: property_value
And also for HTML, markup properties are defined by
markup_name = markup_value
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.