Thank you both for your help.
That confirms what I've learned, but what I cannot find out how to do is write the HTML part of it. All the tutorials are either very specific (i.e. how to do the stuff you described) or too general, as I have found going through the w3schools tutorials.
So, how do I write the HTML associated with the CSS?