HTML में टेबल टैग को समझाइए|

इससे स्पष्ट है कि सारणी बनाने का प्रारंभ <TableTag से किया जाता है और समापन </tableTag से किया जाता है। इन दोनो के बीच मे Table के Data को परिभाषित किया जाता है। इस Data मे Table का नाम प्रत्येक पंक्ति के प्रत्येक सैल की परिभाषा आदि शामिल होती है।

यानी की आप HTML document में डेटा को अपने हिसाब से एक टेबल बनाके rows और columns में डेटा को arrange कर सकते है। HTML tables बनाने के लिए <tableटैग का उपयोग करके बनाई जाती हैं जिसमें <tr> टैग का उपयोग table rows को बनाने के लिए किया जाता है और <td> टैग का उपयोग डेटा सेल बनाने के लिए किया जाता है।

Example :

<!DOCTYPE html>
<html>
<head>
<title>HTML Table Example</title><body>
<table border=”1″>
<tr>
<td>Row 1, Column 1 </td>
<td>Row 1, Column 2 </td>
</tr>
<tr>
<td>Row 2, Column 1 </td>
<td>Row 2, Column 2 </td>
</tr>
</table>
</body>

</html>

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.