3 ms·
Ask HN: list of applicable CSS properties for each html tag?
Seems like such a trivial question, but I'm stumped..
Can someone point me to a webpage where I can see a list of CSS properties applicable to each html tag? (e.g. the styles applicable to an <a> are: x, y, z....)
If this question demonstrates some underlying misunderstanding of CSS then please let me know. I've just started learning CSS, and so far it is my least favorite 'means of instructing a machine what to do' ever...
Tried googling it, didnt find anything.
thanks
- noodle 18y agoyou "can" apply any css property to any element. some elements come with default behavior that might need to be overwritten. i think your best bet is to play around with it.
- tom101 18y ago> you "can" apply any css property to any element right, but if i understand correctly, only some of them are relevant / do anything - right? >i think your best bet is to play around with it. maybe, but I really dont like learning that way (which is why im not enjoying CSS at all so far..). i'd much rather just read the reference guide. i'm use to using a language reference, so that for any object/component I can quickly lookup the properties / styles applicable to it. Does such a thing for CSS not exist?
- noodle 18y ago> right, but if i understand correctly, only some of them are relevant / do anything - right? only because there is default behavior, which you can typically override. you can apply any css to <html> to movie it around and style it like a <div>, but you can't do that to <script>.
- deleted 18y ago[deleted]
- tom101 18y agothanks thepanister. i already use that site a lot, but it's not what im looking for. it's just a list of css properties. what i want is a list of the relevant css for each html tag. any ideas?