Friday 10 March 2017

Type Of HTML Element

In HTML there are two type of elements-
One that requires a starting tag as well as ending tags, and second that requires just a starting tag and not an ending tag. these two type are known as container and empty elements.
Container Elements:-
This type of HTML elements Require pair tags, a starting tag as well as ending tag for example:
<html>.......</html>
<head>......</head>
<title>.........</title>
<body>........</body>
<b>...........</b>
the container tags affect everything that comes between their starting and ending tag.

Empty Elements:-
This type of HTML elements require just a starting tag and not an ending tag.
for example:
<br> break a line.
<base> for base.
<hr> Insert a horizontal rule.
<basefont>
<ing>
<link>
Empty elements are also called void elements.

No comments:

Post a Comment