Watch this video for next class
Today, we'll be following up out work on basic HTML, and look at using images and creating hyperlinks. We'll also learn how to manage and link files in different folders (directories).
In-class task: build and upload a simple 3-page site.
Make sure you can log in to your class web server. Have the "Basic HTML" handout ready as a reference.
While you can use your own files for preparing images during class, here are some sample images you can download and use. For class use only - for assignments you must use your own images.
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 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.
At low quality settings, the loss of quality will be obvious.
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.
Unlike PNG, GIF and JPEG files, SVG files can be vector files. As with other vector formats, vector-based SVG files can be scaled with no loss of quality or increase in file size. This version of the NSCAD logo is only 5KB but can be scaled to any size and will display crisply. You can export Illustrator files as SVG with the "Save as..." function.
Try it out: use the "zoom" function in your browser (Command +) to zoom in several hundred percent and compare the appearance of the SVG file to other formats.
See the Pen by Robert Currie (@rcurrie) on CodePen.
index.html
and make sure your page loads when you access your web server from the assignments page.The MDN Introduction to HTML is a good, self-paced course. Start with Getting started with HTML
Make sure to prepare for each online lecture. If you have questions about code, have your (non-working) code ready to share in class. Review the day's web page before class.
For next class: