HTML in Hindi Elements




एक HTML Elements मे एक आमतौर पर एक Opening Tag और Closing Tag होता है इनके बीच में हम कुछ भी Content लिख सकते है इसी को HTML Elements कहते हैं.

हालांकि Opening Tag Content और Closing Tag सहित सब कुछ एक Element है.

इसलिए जब भी किसी Tag को Open किया जाता है और सामग्री शुरू की जाती है और Tag Close हो जाता है इसके लिये हमारे पास एक Element है.

एक Element सबसे basic रूप मे या सबसे complex form में हो सकता है .

हम एक Element के भीतर Element को बना सकते है. इस मामले में, हमारा सरल उदाहरण जिसमे हम bold का Use करेंगे वह Software Engineer है ( वह software engineer है ) यह एक Element है.

हालांकि आप ध्यान दे कि हमने पहले कहा था कि HTML Documents मे Content Begins होने से पहले <body> Tag होता है.

Content मे Hundreds विभिन्न Elements शामिल हो सकते हैं. लेकिन ये सभी Element <body> Element का हिस्सा होते है.

For Example

Start TagContentEnd Tag
<h1>It is an heading content. </h1>
<p>It is an paragraph content.</p>
<div>It is an division content.</div>

Nested HTML Elements

Nested Elements एक Element के अंदर अन्य Elements को रखने की अनुमति देता है.

For Example

<!DOCTYPE html>
<html>
   <head>
      <title>Nested Elements Tag</title>
   </head>
   <body>
      <h1>It is an <i>italic</i> heading</h1>
      <p>It is an <u>underlined</u> paragraph</p>
   </body>
</html>

Output

Empty HTML Element

<!DOCTYPE html>
<html>
   <head>
      <title>Empty HTML Element</title>
   </head>
   <body>
      <h1>It is an heading content</h1>
      <p>It is an paragraph content</p>
      <hr>
      <h1>It is an heading content</h1>
      <p>It is an paragraph content</p>
   </body>
</html>

Output

Empty HTML Element

It is an heading content

It is an paragraph content


It is an heading content

It is an paragraph content