HTML TAGS

  Eduaction Management 959 Lahore

Code With Jahangir 

HTML TAGS

FREE COURSES 

FREE CERTIFICATE

HTML Tags

What is an HTML tag?

If you want to build a beautiful website. Tags will help you to do so.

A tag is like a container for either content or other HTML tags. Tags are words enclosed within < and > braces.

They are like keywords which defines that how web browser will format and display the content

Some of the tags are mentioned below,

  • <html>
  • <head>
  • <title>
  • <body>

These are also known as “Starting tags” or “Opening tags”.

 

The following tags end with a closing tag i.e.

  • <html> tag has its closing </html> tag
  • <head> tag has its closing </head> tag
  • <title> tag has its closing </title> tag
  • <body> tag has its closing </body> tag

 

Closing tags are used to close the content in between them. These are the tags enclosed within angle braces <,> and a forward slash /. For example: </html>. These closing tags are also known as “Ending tags”.

 

Some tags don’t have their corresponding closing tags and these are known as “Stand-Alone tags” / “Empty tags” / “Self-closing tags”. For example:

  • <br /> tag
  • <hr /> tag
  • <img> tag

 

NOTE:  In these Empty tags, they have a space between the characters and the forward-slash (/). This is because if you omit this space, older browsers will have trouble rendering that line break.

pictorial representation of tags:-

 

HTML TAGS

 Eduaction Management 959 Lahore

Code With Jahangir 

HTML TAGS

FREE COURSES 

FREE CERTIFICATE

Previous Post Next Post

Contact Form