Help With Attribute Selectors

Help With Attribute Selectors
0

#1

So, as the title says, I got stuck on how to use attribute selectors to style elements. I just couldn’t figure it out. Can anyone explain or share a link to learn more about this? I’d really appreciate it. Thank you!


#2

The CSS basics go like this

h1 { <–Styles by tags

.classname { <–the . indicates styles by classes

#idname { <-- the # indicates styles by id


#3

It wasn’t my question exactly, I guess I didn’t make myself clear, as usual… Thank you for your reply :slight_smile:


#4

Can you clarify then what is causing you to be stuck?


#5

Now that I see it, me being sleepy was causing it because I didn’t check the code properly. I’m not trying to be rude, honestly. Thanks for help.


#6

Wasn’t trying to imply that you were. Get some rest. Helps a lot.