2a. An Introduction to Tags

Now, we can start writing a webpage! Open your text editor. HTML is built of things called tags. There's not much more to it than that. Each command consists of two tags, an opening tag and a closing tag.

The format for an opening tag is the following:

<command>

The format for a closing tag is the following:

</command>

The closing tag is the same as the opening tag, except without any parameters you might have specified (some commands can take certain options that you only need to state in the opening tag), and with a slash in front of the command. Some commands don't require explicit closing tags, but it's good practice to always inlcude both.


<-- back   ||   next -->
tutorial