Tags and Attributes in HTML - CS Expert

Latest

Random Posts

Seo Services

Tuesday, October 2, 2018

Tags and Attributes in HTML


What is a Tag??

HTML Commands are known as tags.The Html tags are surrounded by the two characters < and >.These characters are called angle brackets.
For Example: <h1></h1>, <a></a>, <br> , <img> etc..
Types of Tags:

There are two types of tags in HTML.

  • Pair Tags
  •  Non-pair Tags

  • Pair Tags:-


The type of tags that have both start tag and end tag are called Pair tags.
For Example: <h1></h1>,<a></a>,<p></p> etc..

  • Non-Pair Tags:-


The type of tags that have not both start tag and end tag are called Non-Pair tags.In other words,the tag that have no end tag is called Non-Pair tag.
For Example: <img>,<br> etc..

Attributes:-

Some Elements may also include some attributes.An attribute is the additional information about the element that is included inside the start tag.Some attributes are compulsory and some are optional.

No comments:

Post a Comment