HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
PHP Tutorial

PHP forms
HTML Tutorial

CSS 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

2647. Hexcolors : Decimal vs Hex - HTML Tutorial
HTML hexcolors - HTML tutorial
http://www.echoecho.com/htmlhexcolors01.htm

3208. HTML link tag with example, html tutorial
HTML link tag with example html tutorial
https://www.agernic.com/html-tutorial/html-link-tag-with-example.html

674. HTML tutorials - w3resource

https://www.w3resource.com/html/HTML-tutorials.php

872. HTML colors - HTML tutorials - w3resource

https://www.w3resource.com/html/color/HTML-colors.php

2117. HTML Tutorial - Hexadecimal, RGB color codes, inserting colors into html pages / safe colors
Hexadecimal colors and rgb colors. inserting colors
https://tutorialehtml.com/en/html-tutorial-color-codes/

2685. Tables : Table Tags - HTML Tutorial
HTML tables - HTML tutorial
http://www.echoecho.com/htmltables02.htm

Your add here
PHP isset() Function

PHP printf() function

PHP similar_text() function

PHP strlen() function

PHP str_split() function

PHP explode() function

PHP ltrim() function

PHP define() function

PHP ucwords() function

PHP strstr() function

PHP strcmp() function

PHP md5() function

PHP strip_tags() function

PHP empty() Function

PHP str_replace() function

PHP implode() function

CSS width and height - CSS Properties - Dimensions units
PHP Array - What is an Array?
CSS font color
SQL CREATE DATABASE - example
Home HTML Tutorial
PHP if, else and elseif Statements