QUICK LINKS

BASICS

Here we will basically cover the very basic and necessary tags in creating a page. The first and last tags on a page must be <html> and </html>, respectively. These designate that the code inbetween should be read and displayed within the browser as html.

The first section located in a block of html is usually the head. The corresponding tags are simply <head> and </head>.

Only one important tag must be located in the head section, namely the title. Between <title> and </title> will be the text that appears at the very top of a browser when viewing the page. As an example, the title of this page is Pudgy Ninja’s HTML Basics.

The body section is by far the largest, containing the main visible content of a page. It follows the head with <body> and closes before the html tag with </body>. Therein lies all the code for images, text, and just about everything that is seen on a page.

The following code is a very basic example of a web page with a link to show the output of that very code.

<html>
<head>
<title>
An Example of Basic HTML</title>
<body>

Looky here, text and stuff.
</body>
</html>


To see the code in action, click here.

Quick Reference

<html> and </html>
Always the first and last tags on a page

<head> and </head>
The first section of code, contains the title

<title> and </title>
Determines the title at the top of the browser

<body> and </body>
The largest section of code containing the bulk of visible content