HTML Table in Hindi

Search Posts
1679686582-Default_image_for_courses.jpg

HTML Table in Hindi


HTML Table in Hindi - HTML में table बनाने के लिए table tag का उपयोग करते हैं। HTML table में डाटा को rows और columns में स्टोर और display करते हैं।

इसके लिए हम table के अन्दर डाटा को दिखाने के लिए अन्य tags का उपयोग करते हैं जो निम्न हैं:

  • <table> और </table>(Required) -
    HTML table बनाने के लिए सबसे पहले table tag उपयोग करना जरुरी है। इन दोनों(open और close tag) के बीच में ही अन्य सभी tags का उपयोग करते हैं।

  • <td> और </td>(Required) -
    td का मतलब table data होता है। सभी tables में इस tag का उपयोग डाटा को स्टोर करने में करते हैं। टेबल का बॉक्स जिसे table cell कहते हैं जिसमे एक डाटा show होता है उसे बनाने के लिए td tag का use करते हैं। ये भी एक जरुरी tag है। कभी कभी इसकी जगह th tag का भी उपयोग किया जाता है।

  • <th> और </th> -
    th को table header कहते हैं। ये tag वैकल्पिक (optional) होता है आप चाहें तो इसके बिना भी table बना सकते हैं। इसका उपयोग table के header को बनाने में किया जाता है जो कि अन्य cell के text की तुलना में bold दिखता है।

  • <tr> और </tr>(Required) -
    tr का पूरा नाम table row है। इसकी मदद से table row create होती है। एक td के अन्दर एक या एक से अधिक th या td tag हो सकते हैं।



  • Others tags -
    एक टेबल को तीन हिस्सों में बांटा जा सकता है - Header, body और footer.
  • <thead> और </thead> -
    thead या Table head से हम table का header part या सबसे ऊपर वाले हिस्से को बनाते हैं। इसके बिना भी table बनाई जा सकती है।

  • <tbody> और </tbody>-
    tbody या table body tag के अन्दर हम बीच वाले भाग को रखते हैं। ये tag जरुरी नहीं है table बनाने के लिए।

  • <tfoot> और </tfoot> -
    tfoot या table footer tag का उपयोग table के footer या नीचे वाले हिस्से को बनाने में करते हैं।
  • <caption> और </caption> -
    Caption tag का उपयोग table के टाइटल को लिखने में करते हैं जो table से बाहर सबसे ऊपर heading के रूप में दिखाई देती है। इस tag को table tag बाद use करते हैं।

  • <colgroup> और </colgroup> & <col>-
    इन दोनों tags की मदद से हम किसी column या column के ग्रुप की formatting या property को change करने में करते हैं। colgroup tag को table और caption tag के बाद और thead, tbody, tfoot और tr tag के पहले insert करते हैं और colgroup के अन्दर col tag का उपयोग किया जाता है।


  • नोट: HTML में table की properties को style attribute की मदद से भी change किया जा सकता है।
    PHP" method="POST" target="_blank">

    Example of HTML Table in Hindi


    PHP" method="POST" target="_blank">

    Example of HTML Table with th tag


    PHP" method="POST" target="_blank">

    Example of HTML Table with all tags


    नोट - Span attribute का उपयोग number of column बताने के लिए किया गया है। इसके साथ ही यहाँ style attribute का use किया गया है table की style के लिए।

    Author : Read Rife

    You May Also Like



    Leave a Comment

    Please enter your name.
    Please enter a valid email.
    Please enter your comment.

    Comments