css · CSS Basics
Which is the correct CSS syntax?
Answers
- a {font-weight: bold; }
- {a:font-weight: bold; }
- a {font:weight: bold }
- a :font:weight = bold;
This is a hyperlink.
``` In this example, any hyperlink in the paragraph would be displayed in bold. It's important to use the correct syntax to ensure that the browser correctly interprets your styling instructions. Incorrect syntax may result in styles not being applied as intended, leading to inconsistencies and visual defects in your webpage design. Following conventions and best practices also makes your code easier for others to read and understand.