AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML Tutorial

HTML elements body head title


<< Previous Page
HTML Introduction
Next Page >>
HTML Tags Attributes

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>


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>


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


<< Previous Page
HTML Introduction
Next Page >>
HTML Tags Attributes




HTML - Elements: body, head, title - html tutorial

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news 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
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


HTML Img Background
HTML Image Link
HTML Image Size
HTML Text Style
HTML Text Align
HTML Text Size
HTML Text Color Style
HTML Text Color
HTML Table Color
HTML Table Row Colspan
HTML Table Width
HTML Table Style
HTML Table Border
HTML Table
HTML Font Face
HTML Font Size
HTML Font Color
HTML Headings
HTML div border color
HTML div class
HTML class container
HTML form action
HTML comment
HTML link new tab
HTML link underline
HTML link tag
HTML button action
HTML button onclick
HTML button link
HTML table style
HTML image
HTML colors
HTML div style
Text, paragraf in HTML
HTML Tags Attributes
HTML - Elements
HTML Introduction
Home HTML Tutorial
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news 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
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.