I’m studying the example given for the FCC Portfolio Project here:
User-Story 4 of that project requires the use of an element with the class “project-tile”.
In the example, the
a elements contain classes of “project project-tile”.
My questions are:
- Can you have a space in a class? (the space between “project” and “project-tile”?)
- Do portions of a class also become classes? For example, if I have a
class="a b-c", are both “a” and “b-c” classes then? Is “a b-c” also a 3rd class?
- Or is this some way of trying to indicate a parent-child relationship where it’s being signified that “project-tile” is a child of “project”?
I just never saw spaces in classes before. Thank you!