Tabelele poate au fost destul de complicate în Tutorialul HTML pentru începători, și cred ca e destul de greu să înțelegi cum de la un cod de linii, sa ajuns la vizualizarea unor chenare 2D ce formeaza tabelul.
Realizăm un tabel așa de frumos, multumita atributelor rowspan și colspan, doi nemernici ce ne ușurează munca!
Următorul cod, seamănă putin cu cel din pagina tabelelor din Tutorialul HTML pentru începători :
<table border=“1″>
<tr>
<th>Etichetă coloana 1</th>
<th>Etichetă coloana 2</th>
<th>Etichetă coloana 2</th>
</tr>
<tr>
<td>Rând 2, căsuța 1</td>
<td colspan=“2″>Rândul 2, căsuța 2, deasemenea Rândul 2, căsuța 3</td>
</tr>
<tr>
<td rowspan=“2″>Rândul 3, căsuța 1, deasemenea Rândul 4, căsuța 1</td>
<td>Rând 3, căsuța 2</td>
<td>Rând 3, căsuța 3</td>
</tr>
<tr>
<td>Rând 4, căsuța 2</td>
<td>Rând 4, căsuța 3</td>
</tr>
</table>
În primul rând, în prima serie, am înlocuit tag-ul <td> cu tag-ul <th>.În timp ce <tg> formează o căsuța informativă standard, <td> creează o căsuță informativă tip titlu.Precum și la tag-ul <td>, nou venitul tag trebuie folosit sub influența tag-ului <tr>.
Am folosit deasemenea și atributele colspan și rowspan, exact ca la tag-ul <td>, iar dacă privești tabelul în browser. vei observa că al doilea rând are două căsuțe, asta sa putut realiza cu ajutorul atributului colspan, individul practic îți largește aria unei căsuțe până la limita tabelului.În exemplul de mai sus, acest atribut a încadrat textul dintro căsuță, în spatiul dedicat pentru două.
Însemnătatea și funcția atributului rolspan, este asemănătoare atributului colspan, adică și acesta va ocupa doua spații, dar de data asta căsuțele ocupate defapt sunt rânduri, pentru dacă observați in browser, deși noi am inserat 3 rânduri, in partea unde a fost integrat atributul rolspan, avem o căsuță ce ocupă doua rânduri.
În primul tabel, cel din tutorialul pentru începători, am folosit regula 3 pe 4, ceea ce nea oferit 12 căsuțe, iar aici practic am început codul la fel, doar că avem vizualizate 10 căsuțe, diferența de 2 fiind dată de faptul că avem 2 căsuțe ”span”.
![header=[] body=[andrew.cornett posted a photo:
Just squeezed out this HTML email in about an hour or so thanks to MailChimp!. ReadyTech HTML Email] andrew.cornett posted a photo:
Just squeezed out this HTML email in about an hour or so thanks to MailChimp!. ReadyTech HTML Email](http://farm4.static.flickr.com/3004/3048902260_14465ef17e_s.jpg)
![header=[] body=[Toni Panayotov posted a photo:
The first concept for the homepage of a school project. Client: Mambo Lounge Nightclub San Francisco CA. mambo_lounge] Toni Panayotov posted a photo:
The first concept for the homepage of a school project. Client: Mambo Lounge Nightclub San Francisco CA. mambo_lounge](http://farm4.static.flickr.com/3251/3047025017_eeef7db1e9_s.jpg)
![header=[] body=[tractorpirate posted a photo:
. www.m7lives.com] tractorpirate posted a photo:
. www.m7lives.com](http://farm4.static.flickr.com/3167/3046291353_4670b108ae_s.jpg)
![header=[] body=[comsodesign88 posted a photo:
planning on a new business card, so im starting to create som mock ups... business card mock up] comsodesign88 posted a photo:
planning on a new business card, so im starting to create som mock ups... business card mock up](http://farm4.static.flickr.com/3030/3046910170_5298b8d0e0_s.jpg)
![header=[] body=[SprittiBee posted a photo:
Who's scared? Looks like he is more than I am.. l-n-c2] SprittiBee posted a photo:
Who's scared? Looks like he is more than I am.. l-n-c2](http://farm4.static.flickr.com/3219/3046074967_077a125c2c_s.jpg)
![header=[] body=[tracystone posted a photo:
Website Design and development for Teahouse Media.
teahousemedia.com. Teahouse Media Website Design] tracystone posted a photo:
Website Design and development for Teahouse Media.
teahousemedia.com. Teahouse Media Website Design](http://farm4.static.flickr.com/3054/3046020827_68efee7d31_s.jpg)
![header=[] body=[Noah and Cat posted a photo:
In the next few months, life and time willing, I plan on starting a news website for the canal community in England, Ireland, Scottland and Wales. This is an in-progress design mock-up of where I'm headed. I'm not quite sure what to do with the bottom bit yet but I'm browsing other news sites for ideas.
The content right now is purely artificial. In most spots anyway.. Towpath Telegraph (In Progress)] Noah and Cat posted a photo:
In the next few months, life and time willing, I plan on starting a news website for the canal community in England, Ireland, Scottland and Wales. This is an in-progress design mock-up of where I'm headed. I'm not quite sure what to do with the bottom bit yet but I'm browsing other news sites for ideas.
The content right now is purely artificial. In most spots anyway.. Towpath Telegraph (In Progress)](http://farm4.static.flickr.com/3183/3045738255_8a8bd11d30_s.jpg)
![header=[] body=[jpguarin posted a photo:
Nueva pagina de VSP*
www.vsp.com.co. www.vsp.com.co] jpguarin posted a photo:
Nueva pagina de VSP*
www.vsp.com.co. www.vsp.com.co](http://farm4.static.flickr.com/3159/3045426395_e83cb3f50f_s.jpg)
![header=[] body=[kpucu.com posted a photo:
Redesign for www.bgstar.eu. BgStar.EU redesign] kpucu.com posted a photo:
Redesign for www.bgstar.eu. BgStar.EU redesign](http://farm4.static.flickr.com/3056/3045346683_ac042695e2_s.jpg)


