Tags
Don’t believe what anybody else tells you! The Internet is about tags. Tags control everything: how words look, where pictures are shown, what colours you can see and when things change.
This is what a pair of tags look like.
< > </ >
Each single tag has a mirror set of < >, these are called carrots. The < tells the browser that a tag is starting and the > tells the browser that the tag is closing.
In every pair, there is an opening tag < > and a closing tag </ >. You can tell the difference between them by the closing tag always has a / after the first <.
The opening tag tells the browser that you want it to perform an action. The closing tag tells the browser with the /, called a forward slash, that you want that action to stop.
It is very important that you remember that every opening tag MUST have a closing tag!
Rule ONE: Whenever you open a tag you must close the tag.
Once you open a tag you need to tell the browser which action you want it to do. The best way to explain how to do that is to show you.
This is the first set of tags you will need to make your web page:
<html></html>
In between the carrots are the letters html. This stands for Hypertext Mark Up Language. When the browser sees those letters it knows that it needs to make a web page.
Whenever you write tag names, called identifiers, like html, use lower case letters. It makes reading your code (all of the tags) much easier.
Rule TWO: Always use lower case to write tag names.
|