HTML Elements
In HTML documents all elements are in the form of tags. HTML elements always starts and ends with the same tags the only difference is the forward slash </end tag>in the ending tag.
Example
<h1>………….</h1>
<p>………….</p>
In between tags (elements) contents are inserted.
Nested HTML Elements
HTML elements can be in the nested form (One element can contain many elements ).
Example
<html>
<body>
<h1>Main Heading</h1>
<p>Paragraph.</p>
</body>
<html>
Empty HTML Element
An empty HTML element does not contain anything. They do not have end tags, they are self closed
Example
<br>, <hr>, <img>,<input>, <meta>, <link>
Leave a Reply