Wed, Oct 20

Web page construction

Today's objectives

  • Understand the basic elements of the web - browsers, servers and domain names
  • Understand the roles of the fundamental browser-side technologies: HTML, CSS and JavaScript
  • Configure the basic tools for web page construction: text editor and browser
  • Learn the basics of HTML code
  • Learn the core workflow of building a web page - write code, check in a browser, fix mistakes, upload to a server.

Preparation

  • Download and review the HTML handout (linked below)
  • Watch the video (above)
  • Start your text editor - we will use Atom.

Assignment 6 - Phase 1:

Create a 3-page web site

  • Each page needs an image. All images must be your own creation - you can use previous assignments as your images.
  • Make sure each page has a link.
  • Check to make sure images and links work.
  • Name the folder containing all your file for this assignment YOUURLASTNAME_Assignment6a.

    Compress (make archive on Mac OS) the folder and upload the .zip file to the Brightspace by 6 pm, Tue, Oct 26

Assignment 10: Written Assignment

Write a usability review of a web site.

Note: this assignment will be done in stages:
  • Topic selection: Due Oct 26, 6PM
  • Usability test: You will schedule this yourself
  • Rough draft: Nov 16
  • Final draft: (Tentative date) Dec 7

Dates for each phase will be confirmed as the class progresses.

You will begin by defining a task - for example, buying an airline ticket to a particular destination, in a specific time frame, at lowest cost. Or signing up for an online marketplace to sell your jewelry. Or any other similar, specific, online task. The web site you use and the task you sign up for needs to be submitted and approved by me.

The web site should be one that offers more than just content. E-commerce sites, social networking sites, etc are ideal. Fill in your topic in this form before starting; I must approve each topic. Submitting an assignment without a an approved topic will result in a mark of zero.

Important: Sign up for a topic here.

Once you have an approved topic, you will be assigned a participant to work with.
  • Make sure to review the main functions of the site from the perspective of a user.
  • Think about what happens when things go wrong.
  • What's good?
  • What can be improved?
  • Find someone to act as a test subject and observe them. Give them a specific task.
  • Minimum length: 500 words.

Assignment resources

Handout

Basic HTML PDF

Presentation

Basic HTML

Templates

Copy and paste from the text box below to create new HTML documents.

Basic HTML5 template

Resources

Glitch Lets you build complex web sites in your browser.

Software: Mac, Windows and Linux

There are many browsers available, all are free.

  • You can download Firefox here.
  • Google's Chrome is also an excellent browser.
  • Brave is a privacy-focussed browser.
  • Edge is Microsoft's replacement for Internet Explorer.
  • Safari is included with every Mac and IOS
  • device.

Validating your HTML

Several online tools allow you to validate your HTML, pointing out any syntax errors. The W3C's Markup Validator allows your to validate online files, files your upload, or html you paste in place.

The results can be a bit hard to interpret, however.

The Web Developer Toolbar is a useful add-on for Firefox, adding validation and other tools to your Firefox browser. There is also a version of the Web Developer Toolbar for Chrome.

Software

Brackets is an editor that works on MacOS, Windows and Linux. It's what we will use in class. It's free - download it here.

Software: Mac

TextEdit, the text editor included in Mac OS X, needs some preferences changed to work well with HTML files. Don't use it for HTML. There are free text editors you should download which are better:

  • BBedit for Mac OS X is a powerful text editor with good HTML tools. It will work in "basic" mode for free, with no expiry. You do not need to purchase a license. Click here to download it.
https://fetchsoftworks.com/fetch/

Software: Windows

NotePad is a good simple text editor, that is available on the Windows Store. You can download it for free from the Windows store here.

NotePad does not recognize files ending in .html automatically. You may need to use File->Open to access .html file, and choose "Files of type: All files" in the open dialog box, not "Files of type: text documents(*.txt)

If you are looking for more features, Notepad ++ is a good free text editor for Windows.

Structure of an HTML file

HTML Document Structure

Image formats

PNG 24: 103KB

PNG 24: 103KB

PNG files can be 8 or 24 bit depth. 24 bit PNGs are very high quality, but will usually result in the largest files.

JPEG high quality: 64KB

JPEG high quality: 64KB

JPEG files use lossy compression to reduce file size, and speed loading. When you save a JPEG file, you can usually chose a range of quality options, with higher quality yielding larger files. At maximum quality, JPEG files are very close in quality to files saved with lossless compression.

JPEG low quality: 4KB

JPEG low quality: 4KB

At low quality settings, the loss of quality will be obvious.

GIF, 256 colours: 29KB

GIF, 256 colours: 29KB

The GIF file format is limited to 256 colours (8-bit colour) or fewer. 8 Bit PNG files are usually preferred, but the GIF format is unusual in that it can be animated.

Resources

Software: Mac, Windows and Linux

The Firefox browser is the best choice for many people. It has fewer security problems than older versions of Internet Explorer on Windows, and more features than Safari on the Mac. You can download Firefox for free. Google's Chrome is also an excellent browser.

Validating your HTML

Several online tools allow you to validate your HTML, pointing out any syntax errors. The W3C's Markup Validator allows your to validate online files, files your upload, or html you paste in place.

The results can be a bit hard to interpret, however.

The Web Developer Toolbar is a useful add-on for Firefox, adding validation and other tools to your Firefox browser. There is also a version of the Web Developer Toolbar for Chrome.

Software: Mac

TextEdit, the text editor included in Mac OS X, needs some preferences changed to work well with HTML files. There are free text editors you could download which are better:

  • BBedit for Mac OS X. It will work in "basic" mode for free, with no expiry. You do not need to purchase a license. Click here to download it.
  • You will want an image editor to crop, resize and save images. Preview (included with every Mac) works well, and the demo version of GraphicConverter allows you to use most functions for free.

Software: Windows

NotePad is a good simple text editor, that is included with Windows. You may need to look in the "Accessories" section within "All programs" in your Start menu. Important: Use NotePad, not WordPad.

NotePad does not recognize files ending in .html automatically. Use File->Open to access .html file, and choose "Files of type: All files" in the open dialog box, not "Files of type: text documents(*.txt)

If you are looking for more features, Notepad ++ is a good free text editor for Windows.

Choose "Download 32-bit x86" to download.

HTML Frameworks

The Bootstrap framework is a good starting point for building more complex web sites. Remember to link to the jQuery Library

Domain Registration

Hover.com is a reasonably priced, easy-to-use registry.

Web hosting

There are tens of thousands of options.

are some reasonable starting points.

Want to skip the whole "do-it-yourself thing" but still want a web site you can change the appearance of? Try:

Robert Currie
This page was last updated at 2021-11-23 13:14.