Lab: introduction to HTML and CSS

Nothing to hand in

Goals

Part 1: learn a little HTML and CSS

This lab exercise will require you to read a bunch of HTML and CSS code samples, compare what the code says to how the corresponding web page appears in a browser, and play with the HTML and CSS to make sure you understand how all the code elements work.

Part 2: try the official HTML validator

The W3C Markup Validation Service is a web-based service for checking the syntax of your web pages to make sure your code is correct. Often, you can have mistakes in your HTML or CSS, but the browsers will deal with the errors silently and your page will be OK. But then you might look at the page in a different browser or you might add an innocuous bit of code and everything will go kablooey because of some previously hidden error. Checking your work with a validator can help prevent this kind of problem.