The necessary html tags

Every page that you create must have these 4 tag-pairs. <html> </html>, <head> </head>, <title> </title>, <body> </body> in a particular order.

Every page you make must have the following:

Every document requires...
<html>
	<head>
		<title>
			The title goes here
		</title>
	</head>

	<body>
		All of the content should be written here.
	</body>
</html>

So what do these tags do?

The very first tag is the <html> tag. The <html> tag tells the browser that this is the start of the html document. The very last tag must be the </html> tag. This tells the browser that this is the very end of the html that you are sending it. The / slash is what signals a 'closing' or 'end' tag.

Second, the <head> tag shows the start of the 'head' of the document. Nothing in the head is actually shown on the webpage, but we use this section to send certain extra information to the browser about the page.

The most common thing we find in the head is the <title> tag. This is a label for the page that can be seen in two main places; in the blue bar at the very top of the browser (you can see on this page it says:"html from scratch - html - The necessary tags"). You also see the text from the title on the bottom taskbar of windows.

The other necessary tag is the <body> tag. All the html that we will be writing must go in between the <body> tag and the </body> tag.

With these tags in place, you are ready to start adding content to your document, in between the <body> and </body> tags.

So, lets move onto headings to start creating our first html document.