Wednesday, December 13, 2017

HTML (Hyper Text Markup Language) Overview - 2

Basic HTML Document

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

The structure of an HTML document has been compared with that of a sandwich. As a sandwich has two slices of bread, the HTML document has opening and closing HTML tags.




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>
        </head>
......................
.................
</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