Web Design Tutorial > Overview | Resources | Design | Pages | Sites | Praxis

Building Pages

This section deals with the mechanics of building Web pages—this is the crux of the tutorial.

Raw Materials

The HTML page is the basic molecule of the Web. It is the package for content on the Web, since Web sites are simply (admittedly a gross oversimplification) collections of Web pages. HTML pages contain both the content (text, pointers to images and other content, etc.) and the instructions for how to put it all together in a pleasing display. A Web page combines four elements: the actual content, HTML, CSS, and Javascript.

Four Basic Elements of HTML Pages

  1. The Content: the actual content of the page is the point of the page. It’s easy to get excited about whizzy effects and a dazzling color palette, but remember that people visit for the content. Very few people care about the design as long as it doesn’t get in the way, and then they care a lot.
  2. Hypertext Markup Language (HTML)
    • An HTML file is a simple text file, where annotations in a language called HTML (HyperText Markup Language) have been embedded in the text. No special editor is required for working with HTML, although specialized editors can be a big help. Editors like Dreamweaver highlight the HTML code when you are working on a Web page, and typically can check your code for syntax errors.
    • HTML provides a way to describe both the semantics (what it "means") and the presentation (how it looks) of the information on a Web page.
    • HTML also provides hypertext linking, a mechanism for describing relationships between things.
    • HTML is wrapped around the actual content of the page.
  3. Cascading Style Sheets (CSS) enhance HTML by providing richer ways to describe the appearance, meaning, position, and behavior of elements in an HTML page.
  4. Javascript (JS) is a programming language that runs inside Web browsers. Javascript programs can directly (and asynchronously) interact with Web pages and Web servers. Javascript is typically used to display menus and image rollovers, and it is the core technology behind Ajax.

How Elements Combine to Create HTML Pages

Here are 6 ways in which these elements are combined to create Web pages.

  1. Provide Content: HTML contains or links to text, images, links, and embedded multimedia.
  2. Page Mechanics: HTML is used to provide non-content info needed to display the page properly: doctype, style information, Javascript code, page meta information (keywords, etc). HTML also is used to load files containing CSS styling and Javascript functions.
  3. Provide Structure via HTML: boxes (DIVs), spans, paragraphs, lists, tables, headings, forms, hypertext links
  4. Control Appearance: a combination of HTML and CSS
    • Typography: Font families. Sizes. Serif vs sans. Small caps. Italics. Bold. Drop caps. Text alignment. Line height (leading) and spacing (tracking).
    • Colors and Transparency: how they are represented and applied.
    • Borders: can be applied to any or all 4 sides of any container.
    • Margins and Padding: how to separate an element from things around it.
    • Backgrounds: colors and images can be used as backgrounds of elements.
  5. Provide Position via CSS: absolute and relative positioning, floating
  6. Implement Behaviors via CSS and Javascript: CSS can define actions to be taken when certain events occur, such as mousing over a menu item. Javascript can watch events for something of interest, or control elements on the screen. Here is another example of using Javascript to control something dynamically.

Basic Page Structure

HTML Syntax

HTML Reference

CSS Syntax

Layout with CSS

Javascript

Back to TOP Page UP Page DOWN

1280