HTML elements body head title
HTML Tutorial » HTML elements body head title
An HTML4 document is composed of three parts:
- a line containing HTML version information,
- a declarative header section - HEAD element),
- a body, which contains the document's actual content.
HTML element. The first tag you need on any web page is the <html> tag.
Most tags in HTML are followed by a closing tag, so we'll need </html> as well.
<html>element...</html>
Tag <head>
The <head> tag is the next elemnt that follows. As long as you put it between html and body everything should be OK.
"Head" has no visible function, so we will discuss this in the next tutorials.
However, I would like to mention that <head> can provide the browser with very useful information.
Javascript or CSS codes can be inserted here, among others.
Example:
<html>
<head>
<title> Information on the content of the pages. My first web page!</title>
</head>
</html>
<head>
<title> Information on the content of the pages. My first web page!</title>
</head>
</html>
Tag <title>
In this section you will find general information about the web page, while the actual content of the page can be found in the tag. Before you save the file, remember that it needs the .html extension at the end.
Example2:
<html>
<head>
<title> Information on the content of the pages. My first web page!</title>
</head>
</html>
<head>
<title> Information on the content of the pages. My first web page!</title>
</head>
</html>
Tag <body>
The body element is the one that defines the beginning of the content of the actual pages (titles, paragraphs, code scripts, photos, videos, whatever).
As you can see in the next tutorial, we will treat all these content elements in turn.
For now, all you have to remember is that body encapsulates the entire content of the pages.
Example 3:
<!DOCTYPE html>
<html>
<head>
<title> Information on the content of the pages. My first web page!</title>
</head>
<body>
<h1> Information on the content of the pages. My first web page!</h1>
<p> Here we have a Paragraph</p>
</body>
</html>
Note: <p> (paragraph) we treat in the following tutorial
HTML - Elements: body, head, title - html tutorial
Online Editor
This tool makes it easy to create, adjust, and experiment with custom colors for the web.
HTML Templates

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
CSS HTML Layout

Find here examples of creative and unique website layouts.
Free CSS HTML Menu

Find here examples of creative and unique website CSS HTML menu.