Style Guide - Code and Presentations

Style Guide for Writing HTML Code

Equally as important as designing a well organized web presentation is the practice of creating well designed HTML documents. Two primary reasons for keeping HTML documents consistently constructed are:

The following practices are required for all HTML code handed in for assignments and tests.

  1. Unless absolutely required by the behaviour of the Element tags (such as preformatted text), text must be separated from the tags to enhance readability.
  2. When nesting various tags within other tags, indent each nested set whenever possible to clearly show which tag sets belong together.
  3. Keep start and end tags organized by either leaving spaces between the first and last characters on the line, such as with headings, or by aligning the tags vertically to clearly show the scope of the element, such as with lists.
  4. Only nest elements within other elements if allowed under the HTML DTD. And end the innermost element before ending an out element.
    Use this:
    <BLOCKQUOTE>
        <ADDRESS>
           <B>  Website Design Course  </B>
    
           <P>
             <B>
                Bill Cassidy            <BR>
                St. Lawrence College    <BR>
                Kingston, Ontario       <BR>
             </B>
        </ADDRESS>
    </BLOCKQUOTE>
    

    Instead of this:

    <ADDRESS>
         <BLOCKQUOTE>
           <B>  Website Design Course
    
           <P>
                Bill Cassidy            <BR>
                St. Lawrence College    <BR>
                Kingston, Ontario       <BR>
           </B>
        </ADDRESS>
    </BLOCKQUOTE>
    
  5. Do not use an element for something other than the purpose for which it was designed. For example, headings were meant to be headings.
  6. Always include a TITLE for your document in the HEAD section.
  7. Always provide ALTernative text for images.
  8. Use comments sparingly!
  9. Include the following META tags in each HTML document handed in for assignments:
      <META NAME="Author"      CONTENT="Your Name">
      <META NAME="Date"        CONTENT="Date Assignment Due">
      <META NAME="Description" CONTENT="CIS500 - Assignment # n">
          

Style Guide for Presentations

Structure

Here are a number of issues to keep in mind when designing an effective web presentation.

This listing is far from complete, but provides a good starting point for developing effective web presentations.

Home Page | Session 3 Index | Public Identifiers | Design Principles