Table colspan | HTML in Hindi


इस से पहले हटम्ल tutorials में हमने HTML table HTML टेबल बॉर्डर कलर और  HTML table bgcolor और  Table cellpadding & Cellspacing 

Colspan के द्वारा कॉलम की चौड़ाई (width) को बढ़ाने  के लिए या घटाने के लिए use किया जाता हैं ।
सरल शब्दों में, हमने अधिक कॉलम आकार (चौड़ाई) लेने के लिए colspan का उपयोग किया जाता हैं ।
उदाहरण-
अगर हम colspan = "1" की डिफाइन करते हैं, तो कॉलम आकार बढ़ता है। और यदि define करें <td colspan = "4"> तो कॉलम चार कॉलम तक आकार लेता है।

साधारण Hindi भाषा में समझे तो HTML colspan का उपयोग करके एक कॉलम को टेबल के अन्य कॉलम के जितना  बढ़ने के लिए use करते हैं ।

चलिए एक example से समझते हैं ।

HTML td Colspan


<!DOCTYPE html>
<html>
<head>
<title>Type of Heading Tags </title>
</head>
<body>
<table height="150" width="500" border="1">  
<tr> 
<td colspan="2"> Employee Data </td>
<tr>
<td> 
Employee
</td>
<td>
Salary
</td> 
</tr> 
<tr>
<td>
Shiva
</td>
<td> 
20000
</td>  
</tr>
<tr>
<td> 
NEHA
</td>
<td> 
12000
</td>  
</tr>
</table>

</body>
</html>
Run


ऊपर दिए गए example में हमने colspan का उपयोग किया हैं जिस से पहली row में जो कॉलम थी उसका स्पेस अन्य 2 कॉलम के स्पेस के सामान हो गया हैं ।

इस तरह से आप colspan का उपयोग कर सकते हैं ।


Please Share
Techno Smarter Developer
Web & App Developer
Techno Smarter Developer
Need help with a website or app? We build scalable web & mobile solutions and help businesses turn ideas into working products. Get quick expert guidance.
Free consultation • Fast reply

Recommended Posts:-


Live Chat

Hello! How can we assist you today?