CSS selectors
I have this piece of html right here
and I am styling it this way
I would like to know if the middle part of my css is an okay way to select children elements, any tips would be appreciated. I am doing it this way to avoid using too many classes for single elements
2 Replies
If you ever decide to add/remove/re-order the elements, you'll need to adjust those selectors as well. Also, when reading the css, you have no idea what it is.
So yes, be a bit more specific
"How we can help" is a title, so use a headings tag (h2,h3,...), easy to select in css.
Okay thank you for the tips. Does using headings instead of divs for a title help with SEO?