- Elements having
starting tag
, may containsome content
and aclosing tag
.
For example <h1>Heading 1</h1>
- Tags are just
<h1>
is a starting tag and</h1>
is a closing tag.
- HTML elements which do not have closing tags or do not need to be closed are Void elements.
For Example <br />
<img />
<b>
and <i>
tags stands for bold and italic. These two tags only apply font styling and bold tag <b>
just adds more ink to the text, these tags don't say anything about the text.
Whereas, <strong>
and <em>
tags are represent the text is of strong importance or more importance and emphatic stress respectively.These tags have semantic meaning.