HTML Reference

Minimal web page

The minimal web page has the following format:

<html>
<head>
<title>Your title</title>
</head>
<body>
Your body text here.
</body>
</html>

The entire document is surrounded by a pair of <html> </html> tags that signify obviously that the document is html. There are then two sections, the head and the body, which must be in that order.

The head is surrounded by a <head> </head> pair of tags. The head contains information about the web page, but the only required element is the title, which lies between <title> </title> tags.

The body is surrounded by <body> </body> tags. The body contains the main text for your web page that is displayed in a browser.