Tags in HTML

Tags in HTML | Web Development

HTML tags are the basics of web development. Consider the website as a house, then each HTML tag is like a brick giving shape to the website.

Let’s take an example, you’re reading this article on a website. Have you ever wondered how the computer(or browser) knows what content to display on the screen and how to display it? What makes some text bold in an article, some italic, and some contain a link to another webpage? this is all because of the HTML tags.

A HTML tag is a special keyword placed between sharp brackets < and >, such as: <html>.

HTML tags generally come in pairs, an opening tag, and a closing tag. The difference between both the tags is that the closing tag has an extra slash inside it :
<example> The first tag is the opening tag and the second tag is the closing tag </example>.

Some basic tags of HTML :

  • Heading tags :

Heading tags are those which create a title by making text bigger and making it bold. There are six heading tags: h1, h2, h3, h4, h5, and h6 in descending order of size.

<h1> Developers Dome </h1>
<h2> Developers Dome </h2>
<h3> Developers Dome </h3>
<h4> Developers Dome </h4>
<h5> Developers Dome </h5>
<h6> Developers Dome </h6>

Output :

  • Paragraph tag :

The paragraph tag indicates that the section should be a separate paragraph. Browsers usually add spaces between paragraphs to make the text easier to read.

<p> This is paragraph </p>
<p> This is another paragraph </p>

Output :

We will learn some more tags in the next article.

This Post Has 3 Comments

Leave a Reply