Home

Hello HTML

Why can code be so difficult?

Computers need exact instructions. Code languages are just like a recipe, or set of instructions. If your computer doesn’t understand something because of a typo or incorrect use of code, it can’t do what you wish. If you do not understand something, you can always ask someone, but computers are less forgiving.

The index page

Websites have a special file for the first page you come to on a site. When you visit google.com or yahoo.com, or any domain at all, you're actually accessing a file named index.html.

We'll make this index page in a few minutes, but first let's look at the structure of HTML, the markup language we'll be using.

HTML structure

HTML defines the structure of your webpages. The language contains elements that are typically comprised of two tags. One opening tag and one closing tag. Each HTML element tells the browser something about the information that is inside two tags. As we mentioned earlier, it's useful to think of HTML as the bones of your site. Just like you, HTML contains a head and a body.

Tags are like containers for content. They surround the things they describe.

here is a small sample of HTML