"ID" and "Class" are two of the most important attributes of objects in a web page. However, I am pretty confused of how to use them.
I understand that "class" is for a style. How about ID? In the HTML books I read, sometimes ID can be used for a style and sometimes ID can be used for identifying the object.
Also, what will happen if I use both "ID" and "Class" for different styles?
Thanks in advance.
Seaport
I understand that "class" is for a style. How about ID? In the HTML books I read, sometimes ID can be used for a style and sometimes ID can be used for identifying the object.
Also, what will happen if I use both "ID" and "Class" for different styles?
Thanks in advance.
Seaport