BuildNC
BuildNC

Reputation: 275

What is the syntax for target multiple tags in css

How should one go about targeting multiple html tags at once in css? Is it essentially just:

h1 h2 h3 h4 h5 h6 {
     font-weight:lighter;
}

Upvotes: 0

Views: 117

Answers (1)

Jameyson MacDonald
Jameyson MacDonald

Reputation: 92

You need commas like this:

h1, h2, h3, h4, h5, h6 {
font-weight:lighter;
}

Upvotes: 1

Related Questions