What is an HTML Tag and How does It Work?

What is an HTML Tag


Introduction to HTML tags:
The HTML file is a combination of tags and text. HTML tags are also called HTML elements. If you understand the concept of tags well, you can understand HTML very easily. Because HTML works solely by tags only. Initially, when HTML was designed, it was only used to display text on web pages. At that time HTML was limited and had very few tags. The process of displaying text in web pages through HTML tags is called marking the text.

At that time, HTML was only used by computer scientists who published their papers on the World Wide Web through HTML so that other scientists could read it. But HTML was so simple and effective that it became very popular and many people started using it. Gradually as HTML became popular, the need to display various elements in web pages increased. HTML-html and css course in delhi is no longer just a text markup language.


Now you can insert different types of elements like lists, images, tables, audio, graphics, etc. in web pages through HTML. Various types of elements such as lists, images, tables, videos, etc. are inserted in any web page through HTML tags. Whatever you want to add to the web page, you can add it only through tags. HTML gives you many tags for this. All these tags are familiar to the interpreter.


An interpreter is a program found in all web browsers. This program identifies HTML tags and shows them a corresponding text, list, images, and tables, etc. on the web page.


Basically through this tag, you tell the interpreter what you want to show in the web page. For example, if you want to add an image to a web page, you would define the tag in its HTML file.


Text: HTML syntax has three parts: Element, Tags, and Text. HTML elements consist of HTML tags. The word which is written between the angle brackets is called HTML tag, it is of two types first, opening tag and second closing tag. And the last part is the text which is written between the HTML tags.

Types of HTML Tags

There are many types of tags available in HTML. Some tags are used to format text and some are used to insert multimedia elements such as images, audio, video, etc.


Some tags of HTML are used to create lists, tables, and sections, etc., then some tags also work like containers, inside which other tags are defined which are its sub tags.


Basic Tags

Those tags are used compulsorily in all HTML documents. These are called basic tags. Basic tags define the core structure of an HTML document.


 – This tag defines the HTML file. 

 – The scripts and styles related to the web page are defined inside this tag.

 – The main content of the webpage is defined within this tag.


https://laxmibacklinkblogposts.blogspot.com/2021/12/what-is-bootstrap-and-how-to-use-bootstrap.html


https://laxmibacklinkblogposts2.blogspot.com/2021/12/what-is-basic-computer-course-what-is-taught-in-basic-computer-course.html

https://wordpresscourseindelhi.blogspot.com/2021/12/how-to-install-wordpress.html

https://laxmibacklinkblogposts2.blogspot.com/2021/12/what-is-wordpress-why-is-it-easiest-to-make-a-website.html


https://laxmibacklinkblogposts2.blogspot.com/2021/12/what-is-css-and-how-to-use-css-in-a-webpage.html



Comments