Which is the correct CSS syntax?
The selector points to the HTML element you want to style. The declaration block contains one or more declarations separated by semicolons. Each declaration includes a CSS property name and a value, separated by a colon.
The CSS Syntax is made up of three parts:
a selector,
a property,
a value
Syntax: selector {property: value}
The CSS properties specify what to style of the targeted HTML elements.
Here is a CSS rule example:
div { border-bottom: 1px solid red; font-weight : bold; }?
This example creates a CSS rule that targets all div elements and then sets the CSS properties border-bottom and font-weight for the targeted elements.
How do you insert a comment in a CSS file?
Which property is used to change the background color?
How do you add a background color for all <h1> elements?
Which CSS property is used to change the text color of an element?
Which CSS property controls the text size?