Tutorials

XHTML: Common Validation Errors

October 2, 2008 - 1:16 pm

Unescaped Ampersand ("&")

Example:
<a href="foo.cgi?chapter=1&section=2">...</a>

Possible Validator Report: Unknown entity…

Solution: Always use &amp; in place of &.

XHTML: Common Validation Errors - continue reading …

Top

CSS Selectors

October 2, 2008 - 1:13 pm

In CSS, pattern matching rules determine which style rules apply to elements in the document tree. These patterns are called selectors and may range from simple element names to complex patterns. If all conditions in the pattern are true for a certain element, the selector matches the element and the appropriate style will be applied when the element is rendered in a CSS-capable browser.

CSS Selectors - continue reading …

Top

CSS Usage

October 2, 2008 - 1:11 pm

Overview

There are three ways of inserting style information:

  • In the header of a given HTML page (Internal Style)
  • Within a given tag (Inline Style)
  • In an separate file which is then linked to the HTML page by a reference in the page header (External Style)

CSS Usage - continue reading …

Top

CSS Syntax

October 2, 2008 - 1:00 pm

Selectors, properties & values

CSS syntax is made up of three parts:

  • selector (often the HTML element you wish to style)
  • property (the attribute you wish to change eg. background colour)
  • value (eg. the colour you want your background to be)

CSS Syntax - continue reading …

Top

CSS Basics

October 2, 2008 - 12:57 pm

What is CSS?

CSS stands for Cascading Style Sheets.

A style defines how an HTML element is displayed.

Style information can be stored:

  • In the header of a given HTML page (Internal Style)
  • Within a given tag (Inline style)
  • In a separate file which is then linked to the HTML page by a reference in the page header (External style)

CSS Basics - continue reading …

Top