Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: list of applicable CSS properties for each html tag?
4 points by tom101 on March 11, 2009 | hide | past | favorite | 4 comments
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




you "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.


> 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?


> 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]


thanks 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?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: