How to learn HTML Tags

What are HTML Tags

In the previous tutorial, we learned about HTML elements. If an element is the body of HTML, then tags are the lifeblood of that body. Because the element is expressed through HTML tags. Except for a few tags, almost all tags have opening tags and closing tags. For example <body> … </body> the first body is the opening tag, and the second body is the closing tag. But there are some tags like <br> <hr> <img> etc.

which do not require closing tags. Because we don’t create any blocks with these tags. The tags by which the block will be created must have closing tags. Such as a block from <html> to </html>. A block from <head> to </head>. Similarly <body> to </body> is a block. These opening tags and closing tags explain where a DIV starts and ends.

Example

<!DOCTYPE html> 
<html>
   <head>
      <meta charset=”utf-8″/>
      <title> HTML Tags </title>
   </head>
   <body>
      <h3>This Is a Heading.</h3>
      <p>This Is a Paragraph.</p>
   </body>
</html>

The most widely used tags

<! —->

It means comment by. This means that the tag is commented in the code editor.

<! DOCTYPE>

refers to the type of document. This is a guide for web browsers

<html>

is used for the original tag of an HTML document. It is the holder of all other HTML elements.

<head>

refers to the Head section of a document. It contains information such as links, metadata, etc.

The <title>

tag is used to name a title of a document.

<body>

refers to the Body section of a document. All the contents of an HTML document are included in the <body> tag.

<img>

Used to include images.

<a>

This tag means hyperlink, used to link from one page to another.

 

What are the 10 basic HTML tags?

 

<a> <img> <i> <div>
<br> <body> <strong> <b>
<h1> <p>

 

 

Related Posts

meter element

meter element

How To Use The Meter Element In HTML?

Preg_match_all-in-php.jpg

Preg_match_all in php

The Basic Concept of the PHP preg_match_all Function The PHP preg_match_all function is a pattern-matching function that matches the text. This function is use to search for…

document.queryselector-in-javascript.jpg

what is document.queryselector in javascript

What is document.querySelector() in Javascript? The javascript document.querySelector() method retrieves. The element with the given tag name or id from within a document. The document.querySelector() method returns…

JQuery hide Method.jpg

JQuery hide Method

What can the JQuery Hide Method Do For You? The JQuery Hide Method is a function that one can use to hide text on a website. It…

Push array in php.jpg

Push array in php

What is a php Push Array? A push array is a PHP data type that can store an arbitrary number of values. The push array is a…

How to use map method in javascript.jpg

How to use map method in javascript

What is the Map Method? The map method is a higher-order function in JavaScript. Who can use it to transform an array into another array by iterating…

This Post Has 7 Comments

  1. Pingback: Html dd - BWD

Leave a Reply

Your email address will not be published.

Education Template