ColumnGroup span attribute

Definition and usage

span Set or return the value of the span attribute of the column group.

<colgroup> span attribute Define the number of columns the <colgroup> element should span.

Tip:To span the number of columns of <colgroup> Different attributes of the columns, please use Column object.

See also:

HTML পরিশীলনকর্মক্ষেত্রঃHTML <colgroup> ট্যাগ

Example

Example 1

Set the background color of the first two columns to red:

document.getElementById("myColgroup").span = "2";
document.getElementById("myColgroup").style.backgroundColor = "red";

Try it yourself

Example 2

Return the number of columns that the <colgroup> element should span:

var x = document.getElementById("myColgroup").span;

Try it yourself

Syntax

Return span attribute:

columngroupObject.span

set formMethod attribute:

columngroupObject.span = number

প্রতিশব্দ মূল্য

মূল্য বর্ণনা
number নির্দিষ্ট <colgroup> তত্ত্বকে অতিক্রম করা দশক

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

ফলাফল: নির্দিষ্ট <colgroup> তত্ত্বকে অতিক্রম করা দশক

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

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

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

HTML পরিশীলনকর্মক্ষেত্রঃHTML <colgroup> span প্রতিশব্দ