mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): clarify IDs vs classes usage in challenge (#62154)
Co-authored-by: Sanchit Kathpalia <sanchitkhthpalia.com>
This commit is contained in:
co-authored by
Sanchit Kathpalia
parent
2b008e5aa8
commit
75716c4dbb
+1
-1
@@ -38,7 +38,7 @@ In contrast to the `id` attribute, the `class` attribute value does not need to
|
||||
If you wanted to add multiple class names to an element, you can do so by separating the names by a space. Here is an updated example applying multiple classes to a `div` element:
|
||||
|
||||
```html
|
||||
<div class="box red-box"></div>
|
||||
<div class="box red-top"></div>
|
||||
```
|
||||
|
||||
To apply a set of styles to that `box` class, you can reference that class inside your CSS. Here is an example of setting `width`, `height`, and `border` properties to the element with the `class` name of `box`:
|
||||
|
||||
Reference in New Issue
Block a user