EIW Exercises: Style Sheets


Inline Style

Grab the web page dmy.html so you can edit it. Add inline style settings so that the following happens:

Document-wide style

Do the same thing, but this time don't use any inline styles - instead include the definition of style rules in the head of the document.

External style sheets

  1. Move the style rules from the head of the document to an external style sheet. Style sheet files usually end in ".css" !
  2. Find an web site that uses external style sheets, and set your document to use their style sheet (find one that makes the document look different!)
  3. Create a new HTML document (a small one is fine) that uses some of the styles defined in the external style sheet you found in the last part.