All HTML elements begin with a start tag, content in the center, and an end tag.
<tag name start>Written Content here…</tag name end>
HTML Elements Examples
Here are given below some HTML examples:
<h2> h2 is the second heading </h2>
<p> Writing here the<br> first paragraph. </p>
Necessary end tags
There are some necessary tags which can never skip.
<html>
<body>
<p>In this paragraph we see never skip tags.
<p>In this paragraph we see never skip tags.
</body>
</html>
What is a Self-Closing Tags or Elements
There are a lots of HTML tags, which are self-closing given below:
- <iframe />: This tag is used for frame inside the page
- <link />: This tag is used for include an external style sheet
- <meta />: It is used for metadata about the page
- <param />: This tag is used for parameter for an object
- <source />: This tag is used for include media for video or audio
- <img />: It is used for image
- <input />: This tag is used for input field
- <embed />: This tag is used for embeds things like flash
- <hr />: It is used for change in type of content
- <area />: This tag is used for clickable area inside an image map
- <base />: This tag is used for new root or base path for relative paths
- <br />: br tag is used for single line break in a paragraph
- <track /> : This tag is used for text track for video or audio