iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register

Go Back   WebForumz.com > Resources > FAQ > (X)HTML & CSS
Register All Albums Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Author


Guest Author
This author does not have an account on Webforumz.com - The guest author account is generic.

RSS Feed

Your Options
What is the difference between an ID and a CLASS in CSS?

learn about the different selectors within CSS

The key thing is that you can only use an ID name once in a HTML/XHTML document as opposed to a class which you can use multiple times.

In your CSS, you must represent the ID name with a starting pound (#) sign and a class with a starting period (.)

/* an id */
#content {
font-size: 14px;
}

/* a class */
.blogDate {
color: #333;
}

Another thing is that an element can have multiple classes.

<span class="right big">This text is aligned right and big</span>

Related Resources

Members's Comments No Comments. Be the first to comment on and rate this resource.


Search Engine Optimization by vBSEO 3.2.0 RC8