HTML Elements are define by the a starting tag and this element contains others content with closed tag like as <p>...</p>,<h1>....</h1>. HTML Elements name is written by forward slash(e.g "/") with html tag.
Some tags are not used closed tag such as <img>...</img>,<hr>...</hr>,<br>...</br> elements and these elements do not used closed tags.
For example to shown starting and end tag
|Start Tag||Content||End Tag|
|<p>||This is paragraph content.||</p>|
|<h1>||This is heading content.||</h1>|
|<div>||This is division content.||</div>|
Syntax is used in Html with tags
Example of HTML Elements with starting tag and closed tag
<!DOCTYPE html> <html> <head> <title>Html Elements Example</title> </head> <body> <h1>This is <i>italic</i> heading</h1> <p>This is <u>underlined</u> paragraph</p> </body> </html>
Example of HTML Elements with starting tag and without closed tag
<!DOCTYPE html> <html> <body> <p>This is a paragraph. <p>This is a paragraph. </body> </html>
<p> It is starting tag of a paragraph and </p> is closing tag of the same paragraph but <p>This is paragraph</p> is a paragraph element.