SlideShare una empresa de Scribd logo
1 de 33
Colspan & Rowspan
by

: Kelompok 4
Pernahkan anda melihat tabel ini?
No
1

2
3

Absensi

S

I

A
Lalu, bandingkan dengan tabel ini!
Apa yang membedakan
kedua Tabel tersebut?
Untuk mempermudah perbandingan, berilah
nomer index pada masing-masing baris dan
kolom.
BAGIAN I
< … rowspan = “x” … >
Perhatikan kedua tabel berikut!
1
1

2

2
3

1

4

1

1

2

2

3

3

1

4

4

2

5

5

3

No

2

3

4

Absensi
S

I

A
1
1

2

2
3

1

4

1

1

2

2

3

3

1

4

4

2

5

5

3

No

2

3

4

Absensi
S

I

A
1
1

2

2
3

1

4

1

1

2

2

3

3

1

4

4

2

5

5

3

No

2

3

4

Absensi
S

I

A
1
1

2

2
3

1

4

1

1

2

2

3

3
4
5

4

2

5

3

1

4

2

3

No

Absensi
S

I

A

Pada tabel ke-2, terlihat bahwa pada baris ke-1 kolom ke1 dan baris ke-2 kolom ke-1 menjadi satu baris.
Sedangkan pada tabel ke-1 baris tersebut tidak menjadi
satu (terpisah).
Dalam HTML, aktivitas menyatukan beberapa
baris menjadi satu baris disebut rowspan.
Rowspan berasal dari kata row dan span yang
mempunyai arti rentan atau panjang baris.
Pada kasus Tabel ke-2, baris ke-1 dan baris ke-2
di kolom ke-1 direntangkan menjadi satu,
sehingga yang asalnya dua baris, menjadi satu
baris.
Syntaks
<table>
<tr>
<td rowspan=“angka"> </td>
</tr>
</table>
catatan
angka

:
: Angka untuk menentukan banyak
baris yang akan direntangkan
(digabung).
BAGIAN II
< … colspan = “x” … >
Perhatikan kembali kedua tabel
berikut!
1
1

2

2
3

1

4

1

1

2

2

3

3

1

4

4

2

5

5

3

No

2

3

4

Absensi
S

I

A
1
1

2

2
3

1

4

1

1

2

2

3

3

1

4

4

2

5

5

3

No

2

3

4

Absensi
S

I

A
1
1

2

2
3

1

4

1

1

2

2

3

3

1

4

4

2

5

5

3

No

2

3

4

Absensi
S

I

A
1
1

2

2
3

1

4

1

1

2

2

3

3
4
5

4

2

5

3

1

4

2

3

No

Absensi
S

I

A

Pada tabel ke-2, terlihat bahwa pada baris ke-1 kolom ke2, ke-3, dan ke-4 menjadi satu kolom.
Sedangkan pada tabel ke-1 kolom tersebut tidak menjadi
satu (terpisah).
Dalam HTML, aktivitas menyatukan beberapa
kolom menjadi satu kolom disebut colspan.
Colspan yang berasal dari kata column dan span
yang mempunyai arti rentan atau panjang
kolom.
Pada kasus Tabel ke-2, baris ke-1 dan kolom ke2, 3, dan 4 direntangkan menjadi satu, sehingga
yang asalnya 3 kolom menjadi satu kolom.
Sintaks
<table>
<tr>
<td colspan=“angka"> </td>
</tr>
</table>
catatan
angka

:
: Angka untuk menentukan banyak
kolom yang akan direntangkan
(digabung).
Aplikasi pada HTML
Pada tabel ke-2, terdapat 5 baris dan 4 kolom.
Maka, pada file html, terlebih dahulu kita buat 5
baris dengan tag <tr> </tr> sebanyak 5 buah.

Pada setiap baris, terdapat 4 kolom, maka
tambahkan tag <td> </td> sebanyak 4 buah.
Sehingga syntaks pada setiap barisnya sebagai
berikut;
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>

</tr>
Sehingga, apabila dijalankan, akan dihasilkan
table sebagai berikut:
Seperti yang kita ketahui pada baris ke-1, ke-2
dan kolom ke-1 barisnya direntangkan menjadi
satu.

Maka, pada coding baris pertama, ada
perubahan, dimana:
Baris ke-1
<tr>
<td colspan = “2”> </td>
<td> </td>
<td> </td>
<td> </td>

</tr>
Karena baris ke-2 kolom ke-1 telah direntangkan
sebelumnya menjadi baris ke-1, maka, pada
baris ke-2 kita hanya perlu membuat kolom
sebanyak 3.
Sedangkan untuk baris ke-3, ke-4, dan ke-5,
tidak ada perubahan
Baris ke-2
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
Hasil Sementara
Dari coding diatas, maka akan dihasilkan sebuah
tabel sebagai berikut:
Selain itu, pada Tabel ke-2, di baris ke-1 kolom
ke-2, ke-3, dan ke-4 kolomnya direntangkan
menjadi satu.

Maka dari itu, pada baris ke-1 kita update lagi
codingannya.
Sedangkan untuk baris lainnya tidak ada
perubahan coding.
Baris ke-1
<tr>
<td colspan = “2”> </td>
<td rowspan = “3”> </td>
</tr>
Hasil Final
Dari coding diatas, maka akan dihasilkan sebuah
tabel sebagai berikut:
Thank YOU

Más contenido relacionado

La actualidad más candente

Mesociclo settore giovanile novara calcio
Mesociclo settore giovanile novara calcioMesociclo settore giovanile novara calcio
Mesociclo settore giovanile novara calcio
Enrico Mordillo
 
Softball power point class (1)
Softball power point class (1)Softball power point class (1)
Softball power point class (1)
Maricris Radores
 
Physical Education (Volleyball)
Physical Education (Volleyball)Physical Education (Volleyball)
Physical Education (Volleyball)
LA Mendoza
 
Acciones t'acticas defensivas del fútbol y su entrenamiento
Acciones t'acticas defensivas del fútbol y su entrenamientoAcciones t'acticas defensivas del fútbol y su entrenamiento
Acciones t'acticas defensivas del fútbol y su entrenamiento
Elder Andrade
 
Basketball rules 2014
Basketball rules 2014Basketball rules 2014
Basketball rules 2014
Zahid Dewan
 

La actualidad más candente (20)

Netball training drills
Netball training drillsNetball training drills
Netball training drills
 
Manual Captiva 2015 da Chevrolet
Manual Captiva 2015 da ChevroletManual Captiva 2015 da Chevrolet
Manual Captiva 2015 da Chevrolet
 
Football: A Brief Info
Football: A Brief InfoFootball: A Brief Info
Football: A Brief Info
 
Description on VOLLEYBALL
Description on VOLLEYBALLDescription on VOLLEYBALL
Description on VOLLEYBALL
 
Art 17 saque
Art 17 saqueArt 17 saque
Art 17 saque
 
Final power point basketball show 2
Final power point basketball show 2Final power point basketball show 2
Final power point basketball show 2
 
Baseball lesson history, equipment, skills
Baseball lesson history, equipment, skillsBaseball lesson history, equipment, skills
Baseball lesson history, equipment, skills
 
Futsal concepts in english
Futsal concepts in englishFutsal concepts in english
Futsal concepts in english
 
Presentación voley 06-02-2014
Presentación voley 06-02-2014Presentación voley 06-02-2014
Presentación voley 06-02-2014
 
Baloncesto
BaloncestoBaloncesto
Baloncesto
 
softball ppt.
softball ppt.softball ppt.
softball ppt.
 
Mesociclo settore giovanile novara calcio
Mesociclo settore giovanile novara calcioMesociclo settore giovanile novara calcio
Mesociclo settore giovanile novara calcio
 
Softball power point class (1)
Softball power point class (1)Softball power point class (1)
Softball power point class (1)
 
UNIDAD V ORGANIZACION ESTRUCTURAL DEL MODELO DE JUEGO A TRAVES DE SU ORGANI...
UNIDAD V  ORGANIZACION ESTRUCTURAL DEL MODELO DE JUEGO  A TRAVES DE SU ORGANI...UNIDAD V  ORGANIZACION ESTRUCTURAL DEL MODELO DE JUEGO  A TRAVES DE SU ORGANI...
UNIDAD V ORGANIZACION ESTRUCTURAL DEL MODELO DE JUEGO A TRAVES DE SU ORGANI...
 
Field hockey
Field hockeyField hockey
Field hockey
 
Karizma r-manual
Karizma r-manualKarizma r-manual
Karizma r-manual
 
Physical Education (Volleyball)
Physical Education (Volleyball)Physical Education (Volleyball)
Physical Education (Volleyball)
 
Acciones t'acticas defensivas del fútbol y su entrenamiento
Acciones t'acticas defensivas del fútbol y su entrenamientoAcciones t'acticas defensivas del fútbol y su entrenamiento
Acciones t'acticas defensivas del fútbol y su entrenamiento
 
Basketball rules 2014
Basketball rules 2014Basketball rules 2014
Basketball rules 2014
 
Teoría pádel
Teoría pádelTeoría pádel
Teoría pádel
 

Destacado

Ip 1 power point 6 16-13
Ip 1 power point 6 16-13Ip 1 power point 6 16-13
Ip 1 power point 6 16-13
jkturner1
 
Beameruse theme Purdue University
Beameruse theme Purdue UniversityBeameruse theme Purdue University
Beameruse theme Purdue University
Hirwanto Iwan
 
알짜뉴스 3
알짜뉴스 3알짜뉴스 3
알짜뉴스 3
lhjw7
 
Objectives of life why are we here
Objectives of life   why are we hereObjectives of life   why are we here
Objectives of life why are we here
Sabry Shaheen
 
2013. November
2013. November2013. November
2013. November
krizma
 

Destacado (20)

K-MEANS CLUSTERING FOR ANALYZING PRODUCTIVITY IN LIGHT OF R & D SPILLOVER
K-MEANS CLUSTERING FOR ANALYZING PRODUCTIVITY IN LIGHT OF R & D SPILLOVERK-MEANS CLUSTERING FOR ANALYZING PRODUCTIVITY IN LIGHT OF R & D SPILLOVER
K-MEANS CLUSTERING FOR ANALYZING PRODUCTIVITY IN LIGHT OF R & D SPILLOVER
 
Google glass
Google glassGoogle glass
Google glass
 
Lecture 12
Lecture 12Lecture 12
Lecture 12
 
ความหมาย
ความหมายความหมาย
ความหมาย
 
Twitter Management
Twitter Management Twitter Management
Twitter Management
 
compilation of presentations
compilation of presentationscompilation of presentations
compilation of presentations
 
نحو حياة أفضل Towards A Better Life
نحو حياة أفضل Towards A Better Life نحو حياة أفضل Towards A Better Life
نحو حياة أفضل Towards A Better Life
 
Ip 1 power point 6 16-13
Ip 1 power point 6 16-13Ip 1 power point 6 16-13
Ip 1 power point 6 16-13
 
Ministriju iesniegtie jauno politikas iniciatīvu pasākumi 2014., 2015. un 201...
Ministriju iesniegtie jauno politikas iniciatīvu pasākumi 2014., 2015. un 201...Ministriju iesniegtie jauno politikas iniciatīvu pasākumi 2014., 2015. un 201...
Ministriju iesniegtie jauno politikas iniciatīvu pasākumi 2014., 2015. un 201...
 
Beameruse theme Purdue University
Beameruse theme Purdue UniversityBeameruse theme Purdue University
Beameruse theme Purdue University
 
AIPMT - 2014 Syllabus
AIPMT - 2014 SyllabusAIPMT - 2014 Syllabus
AIPMT - 2014 Syllabus
 
알짜뉴스 3
알짜뉴스 3알짜뉴스 3
알짜뉴스 3
 
Codes q
Codes qCodes q
Codes q
 
ODIS in het PID-traject
ODIS in het PID-trajectODIS in het PID-traject
ODIS in het PID-traject
 
цуцкаста химна
цуцкаста химнацуцкаста химна
цуцкаста химна
 
A New Signature Protocol Based on RSA and Elgamal Scheme
A New Signature Protocol Based on RSA and Elgamal SchemeA New Signature Protocol Based on RSA and Elgamal Scheme
A New Signature Protocol Based on RSA and Elgamal Scheme
 
Objectives of life why are we here
Objectives of life   why are we hereObjectives of life   why are we here
Objectives of life why are we here
 
2013. November
2013. November2013. November
2013. November
 
Timehin_James CV
Timehin_James CVTimehin_James CV
Timehin_James CV
 
Sgd gla-7-apr-2012
Sgd gla-7-apr-2012Sgd gla-7-apr-2012
Sgd gla-7-apr-2012
 

Similar a 05. Colspan dan rowspan

Pertemuan Ke 2_abcdpdf_pdf_to_ppt.pptx
Pertemuan Ke 2_abcdpdf_pdf_to_ppt.pptxPertemuan Ke 2_abcdpdf_pdf_to_ppt.pptx
Pertemuan Ke 2_abcdpdf_pdf_to_ppt.pptx
rajudinnoor
 
12088553.pptdddddddddddddddddddddddddddddddddddddddddd
12088553.pptdddddddddddddddddddddddddddddddddddddddddd12088553.pptdddddddddddddddddddddddddddddddddddddddddd
12088553.pptdddddddddddddddddddddddddddddddddddddddddd
MutthoriqAlilA
 

Similar a 05. Colspan dan rowspan (13)

Kalkulus lanjut
Kalkulus lanjutKalkulus lanjut
Kalkulus lanjut
 
Barisa nderettakhingga
Barisa nderettakhinggaBarisa nderettakhingga
Barisa nderettakhingga
 
Format Tabel Halaman Web
Format Tabel Halaman WebFormat Tabel Halaman Web
Format Tabel Halaman Web
 
Pertemuan Ke 2_abcdpdf_pdf_to_ppt.pptx
Pertemuan Ke 2_abcdpdf_pdf_to_ppt.pptxPertemuan Ke 2_abcdpdf_pdf_to_ppt.pptx
Pertemuan Ke 2_abcdpdf_pdf_to_ppt.pptx
 
Tugas Kelompok 2 - Pemrograman Web
Tugas Kelompok 2 - Pemrograman WebTugas Kelompok 2 - Pemrograman Web
Tugas Kelompok 2 - Pemrograman Web
 
Ppt 2
Ppt 2Ppt 2
Ppt 2
 
Tugas Kelompok 3 - Pemrograman Web
Tugas Kelompok 3 - Pemrograman WebTugas Kelompok 3 - Pemrograman Web
Tugas Kelompok 3 - Pemrograman Web
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Modul spreadsheet
Modul spreadsheetModul spreadsheet
Modul spreadsheet
 
[ESPA4123] INISIASI 2.ppt
[ESPA4123] INISIASI 2.ppt[ESPA4123] INISIASI 2.ppt
[ESPA4123] INISIASI 2.ppt
 
12088553.pptdddddddddddddddddddddddddddddddddddddddddd
12088553.pptdddddddddddddddddddddddddddddddddddddddddd12088553.pptdddddddddddddddddddddddddddddddddddddddddd
12088553.pptdddddddddddddddddddddddddddddddddddddddddd
 
konversi sistem bilangan
konversi sistem bilangankonversi sistem bilangan
konversi sistem bilangan
 
05. Colspan dan rowspan
05. Colspan dan rowspan05. Colspan dan rowspan
05. Colspan dan rowspan
 

Más de Muhammad Arif Billah Faishaluddin (10)

04. color
04. color04. color
04. color
 
07. membuat table fixed header dan efek hover
07. membuat table fixed header dan efek hover07. membuat table fixed header dan efek hover
07. membuat table fixed header dan efek hover
 
03. pengaturan (border, width, height)
03. pengaturan (border, width, height)03. pengaturan (border, width, height)
03. pengaturan (border, width, height)
 
01. pengenalan tabel
01. pengenalan tabel01. pengenalan tabel
01. pengenalan tabel
 
LE GRAND VOYAGE (PERJALANAN SUCI)
LE GRAND VOYAGE (PERJALANAN SUCI)LE GRAND VOYAGE (PERJALANAN SUCI)
LE GRAND VOYAGE (PERJALANAN SUCI)
 
The 7 Habits of Highly Effective People
The 7 Habits of Highly Effective PeopleThe 7 Habits of Highly Effective People
The 7 Habits of Highly Effective People
 
Biografi Bob Sadino
Biografi Bob SadinoBiografi Bob Sadino
Biografi Bob Sadino
 
Resume Film Red Cliff
Resume Film Red CliffResume Film Red Cliff
Resume Film Red Cliff
 
Resume Film Pay It Forward
Resume Film Pay It ForwardResume Film Pay It Forward
Resume Film Pay It Forward
 
The Air Asia Story
The Air Asia StoryThe Air Asia Story
The Air Asia Story
 

05. Colspan dan rowspan