Header Ads

Header ADS

Container and Empty Elements

CONTAINER AND EMPTY ELEMENTS

In HTML, there are two types of elements, one that requires a starting as well as ending tags,
and another that require just a starting tag and not an ending tags. 





These two types are known as 
  • Container element
  • empty element

CONTAINER ELEMENTS  

This type of HTML elements require pair tags i.e, a starting as well as an ending tag.

e.g:- <TITLE>.....</TITLE> , <HEAD>.....</HEAD>

Notice that an ending tag is similar to that of a starting tag except that it begins with a slash( / )symbol.

Some Example Of Container Elements are :-

<HTML>.......</HTML>
<HEAD>.......</HEAD>
<TITLE>.......</TITLE>
<B>.......</B>
<CENTER>......</CENTER>

The Container tags affect everything that comes between their staring and ending tag.

EMPTY ELEMENTS

This type of HTML elements require just a starting tag and not an ending tag, e.g,,<BR>,<BASE>.

Empty elements just carry out their specific job e.g,,<HR> inserts a horizontal rule and <BR> breaks a line.

Some Example Of Empty Elements are :-

<BR>
<BASE>
<BASEFONT>
<HR>
<IMG>
<LINK>








Recommended Posts:
Still updating ...






This Article is Contributed by Bharti Singh .
Share your suggestions and feedback in comment sections.

Thank you for visiting here ..




No comments

Powered by Blogger.