4 ms·
> The difference between a div class and a div id ... [is] the kind of brutal lessons that first timers slog through and few master (and that’s the simple stuff
by chimeracoder 15y ago
> The difference between a div class and a div id ... [is] the kind of brutal lessons that first timers slog through and few master (and that’s the simple stuff).
Really? Just think of the class as a surname and the id as a social security number - many people can have the same surname, and those that have the same one have something in common. Only one person can have a given SSN.
What's hard about it? Okay, one is denoted by '.' and the other by '#', but I'm not sure how something like that gets more complicated.
CSS and Javascript can be a pain overall, but in the end, if you need to know much more than the above, you should really just be learning to use the entire toolbox, not picking and choosing the tools that you think you want (which are oftentimes not the ones you really need).