Responsive Advertisement

Introduction to HTML Tags

Introduction to HTML Tags

An HTML file is a combination of tags and text. HTML tags are also called HTML elements. If you understand the concept of tags, you can easily understand HTML. Because HTML works entirely through tags.

When HTML was designed in the beginning, it was used only to display text in webpages. HTML was very limited at that time and there were only few tags in it. The process of displaying text in webpages by HTML tags was called marking the text. This is why HTML was called text markup language.



At that time, HTML was used only by computer scientists who published their papers on HTML the world wide web so that other scientists could read them. But the HTML was so simple and effective that it became very popular and many people started using it.

Slowly as soon as the HTML became popular, the need to show different elements in webpages increased. Now HTML is not just a text markup language. Now you can insert various types of elements such as lists, tables images, audio, video, graphics etc. into webpages via HTML.

Elements (lists, tables, images, video, etc.) are inserted in HTML tags only in any webpage. Whatever you want to add to the webpage will be added by tags only. HTML provides you many tags for this. All these tags are familiar with the interpreter.



Interpreter is a program that happens in all web browsers. This program recognizes HTML tags and shows them the meaning of text, images, lists and tables corresponding to the same in the web page.

By Basically tags you tell the interpreter what you want to display in the webpage. For example, if you want to add an image to a webpage, you will define <img> tag in its HTML file.

The purpose of most HTML tags can be understood only by their name. For example, <table> tag is used to insert table in webpage. As you begin to use them, you can easily remember what a particular tag is used for.

Syntax of HTML Tags
Generally there are 3 parts of the HTML tag. Opening tag is initially applied. This lets the interpreter know what you are going to do. After the opening tag, the text is written on which this tag is being applied. After this the closing tag is written.

Interpreters from the closing tag know that this tag used to exist. To separate the closing tag from the opening tag, the forward slash is applied in the closing tag.

The general syntax of HTML tags is being given below.

<tagName> text </ tagName>
Not all HTML tags are cloned by the closing tag. There are also HTML tags that are defined only by the opening tag. Such tags are called empty tags. Their syntax is being given below.

<tagName>
There are also some types of tags in HTML that are defined by both the opening and closing parts of the same part. The name of the first tag is written after which the forward slash is applied. Their syntax is being given below.

<tagName />
Types of HTML Tags
There are many types of tags available in HTML. Some tags are used to format text, then some are used for inserting multimedia elements such as images, audio, video etc.

Some tags of HTML are used to create structures such as tables, sections, and lists, so some tags also work like containers under which other tags are define that are sub tags.



The tags of all types of HTML are divided into some main categories and being told below.

Basic Tags
Basic tags are tags that are essentially used in all HTML documents. These tags define the core structure of an HTML document. The list of basic tags of HTML is given below.

<html> - This tag defines an HTML file. Every HTML file is started with the same tag.
<head> - In this tag, related scripts and styles are defined from the webpage.
<title> - This tag defines the title of the web page.
<body> - The main content of the webpage is defined in this tag.
Formatting Tags
Formatting tags are tags that are used to format text. These tags only apply to text and control the presentation of text. The list of the formatting tags of HTML is given below.

<i> - Text is made to italic by this tag.
<b> - The text is bolded by this tag.
<u> - Text is underline with this tag.
<ins> - This tag defines such text which has been added to the content later.
<mark> - Text is highlighted by this tag.
<sup> - Text from this tag is defined as a superscript.
<sub> - Text from this tag is defined as subscript.
<small> - This tag is defined as a small text.
<del> - Text is deleted from this tag.
<strong> - Text from this tag is shown bold (bold).
Form and Input Tags
Form and input tags in the form of creating forms and user-input

Post a Comment

0 Comments