TableHeader colSpan attribute

Definition and Usage

colSpan Set or return the value of colspan attribute.

<th> colspan attribute Specify the number of columns the table cell should span.

Tip:Use rowSpan attribute Set or return rowspan attribute value.

See also:

HTML পরিচ্ছেদ হান্ডবুকঃHTML <th> ট্যাগ

Example

Example 1

Change the number of columns the cell should span:

document.getElementById("myTh").colSpan = "1";

Try it yourself

Example 2

Return the number of columns the specific table cell should span:

var x = document.getElementById("myTh").colSpan;

Try it yourself

Syntax

return colSpan attribute:

tableheaderObject.colSpan

set colSpan attribute:

tableheaderObject.colSpan = number

প্রতিশব্দ

মূল্য বর্ণনা
number সেলকে ক্রমাগত কলামগুলির সংখ্যা নির্দেশ করে

প্রযুক্তিগত বিবরণ

ফলাফল: সংখ্যা, যা ট্যাবল সেলের ক্রমাগত কলামগুলির সংখ্যা নির্দেশ করে

ব্রাউজার সমর্থন

চ্রোম এডজ ফায়ারফক্স স্যাফারি ওপেরা
চ্রোম এডজ ফায়ারফক্স স্যাফারি ওপেরা
সমর্থন সমর্থন সমর্থন সমর্থন সমর্থন

সংশ্লিষ্ট পাতা

HTML পরিচ্ছেদ হান্ডবুকঃHTML <th> colspan প্রতিশব্দ