The - selector selects HTML elements with a specific class attribute.
Answers
Answered by
1
Answer:
class selector selects elements with a specific class attribute. To select elements with a specific class, write a period (.) character, followed by the name of the class. You can also specify that only specific HTML elements should be affected by a class.
Explanation:
SYNTAX:
.class {
class { css declarations;
class { css declarations;}
EXAMPLE:
p.hometown {
p.hometown { background-color: yellow;
p.hometown { background-color: yellow;}
Similar questions