কম্পিউটার টিউটোরিয়াল

HTML-এ টেবিলের জন্য ক্যাপশন কীভাবে তৈরি করবেন?

একটি টেবিলে ক্যাপশন যোগ করতে <caption> ট্যাগটি ব্যবহার করুন। নিচের উদাহরণটি চালিয়ে দেখুন:

উদাহরণ

এখানে "ভারতীয় ক্রিকেটাররা" নামে একটি টেবিল ক্যাপশন যোগ করা হয়েছে:

<!DOCTYPE html> <html>    <head>       <style>          table, th, td {          border: 1px solid black;          }       </style>    </head>    <body>       <h2>Cricketers</h2>       <table style = "width:100%">          <caption>Indian Cricketers</caption>          <th>Name</th>          <tr>             <td>Sachin Tendulkar</td>          </tr>          <tr>             <td>Virat Kohli</td>          </tr>       </table>    </body> </html>
  1. HTML DOM Table createCaption() মেথড: টেবিলে ক্যাপশন যোগ করা

  2. HTML DOM Table deleteCaption() মেথড: টেবিল ক্যাপশন মুছে ফেলা

  3. HTML Tables

  4. HTML DOM Style captionSide প্রপার্টি