CSS | Styles | Colors | Type | Classes-IDs | Layout | Properties | Value Types
Tags are generally used repeatedly in an XHTML file. A CSS style can modify a single tag element, ignoring other identical tag elements. A Class or ID attribute is appended to the selected tag, then referenced in CSS with a given name.
Classes and IDs have only one difference and can be used interchangeably. A class can be declared multiple times. An ID can be declared only once. In the CSS file, a class is declared with the . period operator. An ID is declared with the # pound operator. Any name can be given to a class or ID, but must match the name appended to the XHTML tag. The CSS file is coded as...
The XHTML file is coded as...