English

What is the difference between container tags and empty tags?

Advertisements
Advertisements

Question

What is the difference between container tags and empty tags?

Distinguish Between
Advertisements

Solution

  Container Tags Empty Tags
1. Container tags are pair tags. Empty tags are single tags.
2. They require both a starting tag and an ending tag. They require only a starting tag and no ending tag.
3. They affect the text or content placed between the starting and ending tags. They perform the specific job assigned to them.
4. Example: <p>...</p> Example: <br>, <hr>
shaalaa.com
  Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Assisted Practice [Page 124]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Assisted Practice | Q 2. | Page 124
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×