The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
One thing confuses me, however: what's the difference between CLASS and ID? This may be obvious to a seasoned programmer but I'm new to this and I'm confused. If possible could someone explain when I should use CLASS and when I should us ID and, please, don't get *too* technical otherwise I'll get lost!
Thanks in advance.
Now I'm off to remove all traces of tables from my website ...
Class is a set of properties you can give to any element.
You can use the same class in as many elements as you like, whereas Id's have to be unique for each element.
#anID {
properties go here
}
.aClass {
properties go here
}
Page Content
--- 'anID' can only be called on once.
Page Content
Page Content
a link
--- 'aClass' can be called on may times.
One thing confuses me, however: what's the difference between CLASS and ID? This may be obvious to a seasoned programmer but I'm new to this and I'm confused. If possible could someone explain when I should use CLASS and when I should us ID and, please, don't get *too* technical otherwise I'll get lost!
Thanks in advance.