HTML basic and neccessary tags
In this tutorial, am going to tell you about four basic tags, which is necessary to make an html document. HTML stands for Hyper Text Markup Language, which is actually a text file with extensions (.html) or (.htm).
The four basic html tags are
1. Document type (<html>)
2. Header (<head>)
3. Title (<title>)
4. Body (<body>)
Document type tag (<html>):
The html tag only tells the browser about what type of document it is. The normal format of this tag is <html>…</html>.
Here <html> tells the starting of the document and </html> tells the end of the document.
Header tag (<head>):
The head tag contains all information about the document or page. These are information are to tell search engines such as title, descriptions, keywords, etc.
The normal format of this tag is <head>…</head>.
Title tag (<title>):
The title tag contains the title of the html document. Always title will come inside header tag only.
The normal format is < title >…</ title >
Body (<body>):
The body tag contains the main content of the html document. In other words, only the body contains the document matters, which is visible when a page is loaded. All information written inside <body> and </body> will only be visible at the browser.
Here is an example of how a proper html document should be look like
<html>
<head>
<title>This is a sample document by tutorials tag</title>
…
</head>
<body>
Main content …
</body>
</html>
Latest tutorials in Webdesign







Write your comment