Multimedia and Technology Training At the UC Berkeley Graduate School of Journalism
As we emphasized in our introductory HTML tutorial HTML 101, HTML is a markup language, not a layout language. In other words, HTML is all about defining the logical structure of a document, not how it looks. A completed HTML document should tell the browser where paragraphs stop and start, which elements are headlines, which are quotations, which are images, which are lists, and so on. It should say nothing about what fonts or colors are used, where the sidebar lives, which direction the menu flows in, or anything else that relates to document display.
Why is this important? For three main reasons:
CSS, or Cascading Style Sheets solve these problems (and more) with a straightforward syntax that lets you create and apply design rules to unstyled HTML documents.
This tutorial is divided into two parts: CSS 101 (this part) covers CSS basics: decorative elements, lists, tables, margins and padding, borders, and related techniques. CSS 201 will cover CSS page layout techniques. Both tutorials assume you've already read HTML 101.
Comments? Contact us | ©2007-2009 The Regents of the University of California.
Comments
No comments yet.
Add your comment
Login to post a comment.