Web Development

HTML – Different Types of HTML Tags

As you all know HTML language used to develop web pages is called HyerText Markup Language. HTML is the language interpreted by a Browser. 

Web Pages are also called HTML document. HTML is a set of special codes that can be embedded in the text to add formatting and linking information. HTML specified Tags in HTML document.

HTML Tags

Tags are instructions that are embedded directly into the text of the document.

An HTML tag is a signal to a browser that is should do something other than just throw text up on the screen.   All the HTML tags begin with angle bracket (<) and a close angle bracket (>).   Types of HTML Tags.

Paired Tags

A tag said to be paired tag if it, along with a closing tag or companion tag. 

  1. eg. The <b> tag with it’s closing tag </b> is called as paired tag. 
  2. eg. The <p> tag with it’s closing tag </p> is called as paired tag.

Singular Tags

This is the second type of tag in html. The singular stand for alone tag. A alone tag does not have it’s closing tag. 

  1. eg. The <br> tag will insert line break but it doesn’t have it’s closing tag, so it is called as singular tag.
  2. e.g The <hr> tag will insert horizontal line on webpage but it doesn’t have it’s closing tag so it is called as singular tag.

Block Level Tags

The tag that produce line break before and after it, are called block level tag.

  1. eg. The <p> </p> tag is block level tag it produce line break. 
  2. eg. <h1></h1>, <div></div> 

Inline Tags

The tag that doesn’t produce line break are called inline tags. 

  1. eg. <b></b> tag is the inline tag, it is the bold tag it doesn’t produce line break.
  2. eg. <img> <span></span>.

Tuts

About Author

Tutsmaster.org provides tutorials related to tech and programmings. We are also setting up a community for the users and students.

You may also like

HTML introduction
Web Development

HTML – Introduction, History & Syntax

  • December 21, 2019
So, first of all, I would like to ask a question for the first time when you heard this term
html heading tag
Web Development

HTML – Heading Tag With Syntax

  • December 21, 2019
A heading tag is one of the most important tags we focus on in HTML or web development because, without