Programming

Programming intro
Java

Markup

First webpage guide
HTML
XHTML

Style & Layout

CSS

Browser scripting

Javascript
VBScript
AJAX

Server scripting

PHP
ASP

Making money online

Make money online

CSS classes and ID's

Classes and ID's make it possible to specify a particular style for a variety of tags. With classes and ID's, you can also define different styles for the same HTML tag.

Styles for classes are specified with the .(dot) character followed by the class name in an internal or external stylesheet. ID's are specified with the # (pound sign) followed by the ID name in an internal or external style sheet.

Example:

<style type="text/css">
#text {
font-family: courier; 
font-size: 15pt; 
font-weight: bold; 
color: blue;

}

.green {

color: green;

}
</style>

For more details on Classes and ID's, read the Classes and ID's lesson.

Reference
HTML/XHTML
CSS
Javascript
AJAX

Practice

Online code editor
Step-by-step tutorials
Practical examples
Practical exercises

Reference

Terms glossary

Rate this site

Rate this site
Visitor comments