Page Nav

HIDE

Grid

GRID_STYLE

Classic Header

{fbt_classic_header}

Latest:

latest

HTML basic tags structure

Overview of HTML basic tags HTML basic tags structure are most important in an html page. In an html page a lot of tags are used but some t...

HTML basic tags structure

Overview of HTML basic tags


HTML basic tags structure are most important in an html page. In an html page a lot of tags are used but some tags are used common cases.

Basic html tags are 4 types.

  1. <html > tag
  2. <head > tag
  3. <title> tag
  4. <body> tag


HTML tag

 <html> tag represents HTML document. Every HTML document starts with <html> and finishes with </html> tag.

HEAD tag

In every html documents we have to use HEAD tag. It starts with <head> and finishes with </head>. We can use some tags in between HEAD tag. As an example: TITLE tag.
HTML page file headings can be defined h1, h2, h3, h4, h5, h6.


TITLE tag

We use this tag between the HEAD tags. It starts with <title> and finishes with </title>. Here the text type short name is seen. Its output is seen in title bar in the top left side of a page.

Body tag

It is the main content area of the html page. It opens with <body> and closes with </body>. Most of the contents are written here.

HTML basic tags structure example



<!DOCTYPE>
<html>
<head>
<title>You have to write title here</title>
</head>
<body>
Here you have to write the contents you want to write. This is the main container of contents.
</body>
</html>

We have to write this on a text file updated with from .txt to .html. After that we have to save that. 

HTML basic tags  structure


At first we have to write <!DOCTYPE>.Then we have to start the html by <html>. Then the HEAD section will start by <HEAD> and here we have to give the title of the page head between <title> and </title>. Now we have to close the head by </head>.

Now the main section of the web page which is called BODY will start by <body> tag. Before finishing the BODY tag by </body> we have to give the contents we want to give. And finally we have to close the HTML by </html> tag.

Next if we open that with any web browser then we will show the output of html codes.

HTML basic tags structure  output


By following these basic tags HTML pages are created firstly. Then more designs are done by more tags.


No comments