Main HTML tags

Main Tags for webpages

An HTML file consists of some essential tags such as Head, Body. Without these tags you can not imagine a webpage. Tag Description

Tag Description
html An HTML document is written in this tag. The HTML element serves as the fundamental building block of an HTML document and forms the basic structure of every web page. All HTML code must be enclosed within <html></html> tags. The syntax of html tag is described below:

<html>
  <head>head elements</head>
  <body>body elements</body>
</html>
head Header part of a webpage is written in this tag. All declaration part of a webpage goes within <head></head> element. Head element contains title text of a webpage, variables, declarations, functions of scripting languages such as JavaScript, VBScript etc. The syntax of head tag is described below:

<head>
  Content
</head>
title Title part of a webpage is written in this tag. Title is the text which appear on the title bar of your web browser. So what ever title you want to show on browser's title bar you can write within <title></title> element. The following section explains the syntax used to define the HTML title tag.

<title>
  Content
</title>
body Body part of a webpage is written in this tag. It is an essential component that plays a vital role in defining the overall structure of a webpage. All the content of a webpage must specify or written within <body></body> element. The body element is a longest part of any HTML file which contains actual contents which appear on the web browser. The body tag indicates the start and end of HTML files main body. The syntax of body tag is described below:

<body>
  Content
</body>

FAQ
1. What information is written inside the <head> tag? The <head> tag contains information about a webpage that is generally not displayed as part of its visible content. It can include the page title, metadata, CSS stylesheet links, scripts, and other document-related information.
2. What is the difference between the and <body> tags? The <head> tag stores information and resources associated with a webpage, whereas the <body> tag contains the actual content displayed in the browser, such as headings, paragraphs, images, links, and tables.