Class Session: Wednesday Dec 31, 1969

HTML: The Structural Layer of Web Design

Preparation for this Session

Learning Web Design

Sections from Mozilla Developer Network (MDN) will serve as our primary reference material: Check out this link if you like, but don't start reading here. Start reading the sections below.

When you are reading the getting started section, you will read about a lot a different tools. All we need for this class is a browser and a text editor.

Read over as carefully as possible:
  1. Getting started with the web
  2. Dealing with Files
  3. HTML Basics
  4. HTML Text Fundamentals
  5. Creating Hyperlinks

If you already have experience with a favorite text editor, you are free to use it instead of Atom, but I will be using Atom, so you might want to at least give it a try.

Atom is an open source cross platform text editor that works on Macs and Windows. That is my tool of choice when I am developing, so I will use it a lot this session. You can get Atom here.

Dreamweaver is also a very good text editor. You will need to have access to the Adobe Creative Suite to try it out:

If you have a Windows laptop, you might want to download Notepad ++. It is both useful and free.

You might want to download Brackets. It is cross-platform (it works on Macs and PCs).

I use Firefox when I develop websites mainly because I have been using it for about 20 years. Chrome is good too. When I am demonstrating how to view source code or use developer tools, I will be doing it with Firefox and/or Chrome. Edge and Safari are too specific to the PC and Mac. You should test out your site and see how it looks on Edge and Chrome, but don't depend on them for development purposes.

Read over the class notes and do your best to memorize the bare minimum code for an HTML page.

top/reload prep panel

Online video Lecture links

Video 1: Getting Started Task 02.01

Intro | 1:31: Grade Sheet overview | 3:45: Download & Setup Starter Theme

Video 2: Getting Started Task 02.01

Atom Introduction & Add project | 1:57 Viewing local files in browser | 3:15: overview of 02.01 index page

Video 3: Getting Started task 02.01

Atom: Edit the Primary Navigation System using relative links | 5:05: Linking the CSS files

Here is a link to a directory of files that I will go over during today's lecture

HTML is the acronym for Hypertext Markup Language

Body and Head Tags

The fundamental structure of html is the two-part model of <head> and <body> . Every valid HTML page must include a head and a body.

The head and body can be thought of as "markup" content containers:


The browser display ignores white space and comments, so the block below will render the same as the block above:

     <!-- Head CONTENT goes here.-->

     <!-- Body CONTENT goes here.-->
  1. The head and body markup must be wrapped in open < and close > brackets.
  2. The markup and the brackets are called tags: <head> <body>
  3. The end tag has a forward slash between the first angle bracket and end tag name. </head> </body>
  4. The vast majority of html tags must have a start and end tag, but there are exceptions which we will cover later.
  5. Everything in brackets is invisible when viewed in a browser.
  6. The comments in the containers are in markup, so they are invisible, as well.
  7. To view the invisible parts of a web page, you can can right click on the browser window and choose "view source".

The HTML tag

Note the definite article "the". There are various html tags all of which can be an html tag. But we are specifically talking about the master every-thing-goes-in-here  primary HTML tag.

The head and body tag must be wrapped in the primary html tag container:


Doctype Declaration

A Doctype Declaration must be placed at the very beginning. It is one of those exceptions that does not require an end tag. The entire tag is contained in two brackets.

<!DOCTYPE html>

The Doctype is necessary for legacy reasons and because there are other types of documents, XML for example, which we will talk about in a later class. The curent html doctype is HTML5. The HTML5 doctype is implied. You do not need to put the 5 in the doctype declaration.

Final Required parts of code

There are just a few more requirements to make this a valid web page. We need to put a title in the head and we should put at least an h1 tag and an p tag in the body.

<!DOCTYPE html>
    <title>Demo Web Page</title>
    <h1>Demo Web Page</h1>
     This is a demo web page. It represents the bare minimum layout for a simple web page.

Text Editors

Online HTML Tutorials

Quick links

opal login: ssh
opal password: ONYEN password


Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Office hours by appointment.