"Proper" HTML Setup

If you search the internet for an example of some basic HTML code, you'll probably see something like this. There's a bunch of extra tags at the top and bottom of this script. To be honest, they don't really affect much, but they're supposed to be there and sometimes they're useful, so I'll quickly go through these tags for you as we wrap up this introduction to HTML:

While I'm at it, I'd like to show you one more special tag that doesn't actually do anything. It's called a "comment", but it looks very different from other tags. It needs to start with <!-- and end with -->, and everything in between has no effect on the page. It's intended as a way to write notes to yourself and anyone else who reads your script. See the example in the script under here.

I won't judge you if you skip these tags, but the tricky ones can be squashed down to one line, so just to be on the safe side, I recommend starting your HTML scripts with the following snippet which you can copy-and-paste into your scripts:

<!DOCTYPE HTML><meta charset="utf-8" />

There is plenty more to learn about HTML, but by now you know enough to be dangerous! For the next chapter of this tutorial, we're going to focus on a single new element that changes everything...