Basic HTML Document
Although various versions have been released over the years, HTML basic remain the same.

Ex:
<HTML>
............
...............
..................
</HTML>
The <head> Tag
Immediately following the opening HTML tag, you will find the Head of the document, which is identified by opening and closing head tags.
The head of an HTML file contains all of the non-visual elements that help make the page work.
Ex:
<html>
<head>............</head>
</html>
The <title> Tag
To place a title on the tab describing the web page, add a <title> element to your head section:
<html>
<head>
<title> First page </title>
......................
.................
</html>
The title element is important because it describes the page and is used by search engines.
The <body> Tag
The body tag follows the head tag. All visual structural elements are contained within the body tag.
Headings, paragraphs, list, images, etc....., etc....... and those are just a few of the elements that can be contained within the body tag.
Ex:
<html>
<head>
<title> HTML for beginners </title>
</head>
<body>
...................
.....................
....................
</body>
No comments:
Post a Comment