1 reply [Last post]
listerd
listerd's picture
User offline. Last seen 25 weeks 1 day ago. Offline
rank Regular
Regular
Timezone: GMT-4
Joined: 2007-02-08
Posts: 47
Points: 17

What is the difference between . and #

Is there a hard and fast rule?

Thanks

Vade
Vade's picture
User offline. Last seen 1 year 10 weeks ago. Offline
rank Enthusiast
Enthusiast
Joined: 2007-08-13
Posts: 315
Points: 276

. represents a class, which

. represents a class, which can be refernced many times in the same page whereas # represents an ID which must be referenced only once per page.

HTML Dog do a very good description of the two here