1 / 8

FORMATAREA TABELELOR IN LIMBAJUL HTML

FORMATAREA TABELELOR IN LIMBAJUL HTML. CUPRINS. Recapitulare Exemplu Formatarea tabelului - dimensiune ( latime , inaltime ) - chenar - spatiere Imbinarea celulelor. RECAPITULARE. Inserarea tabelului :<table> Inserarea randurilor < tr > Inserarea celulelor :<td> Exemplu :

Download Presentation

FORMATAREA TABELELOR IN LIMBAJUL HTML

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FORMATAREA TABELELOR IN LIMBAJUL HTML

  2. CUPRINS • Recapitulare • Exemplu • Formatareatabelului - dimensiune (latime, inaltime) - chenar - spatiere • Imbinareacelulelor

  3. RECAPITULARE • Inserareatabelului :<table> • Inserarearandurilor <tr> • Inserareacelulelor:<td> Exemplu: <table ><tr>  <td>Jill</td>  <td>Smith</td>   <td>50</td></tr><tr>  <td>Eve</td>  <td>Jackson</td>   <td>94</td></tr></table>

  4. FORMATAREA TABELULUI 1.Dimensiunea tabelului: -Se utilizeazaatributul “style” a etichetei <table> astfel: <table style="width:300px; height:300px"> unde “width” reprezintalatimeaiar “height” inaltimeatabelului. 2.Inserarea chenarului: - se utilizeazaatributul “border” astfel: <table border="1" style="width:300px"> 3.Spatiere: - intrecontinutsichenar: <td style="padding:15px"> - intrecelule: <table border="1" style="width:300px; border-spacing:10px;"> 4.Alinierea textului: <table border="1" style="width:300px; text-align:center;">

  5. IMBINAREA CELULELOR • pentruimbinareacelulelor de pe un anumit rand se utilizeazaatributul “colspan” urmat de numarul de celule care se imbina. • pentruimbinareacelulelor de pe o anumitacoloana se utilizeazaatributul “rowspan” urmat de numarul de celule care se imbina: <table> <tr> <th>Name</th> <thcolspan="2">Telephone</th> </tr> <tr> <td>Bill Gates</td> <td>555 77 854</td> <td>555 77 855</td> </tr> </table>

  6. EXEMPLU <table> <tr> <th>First Name:</th> <td>Bill Gates</td> </tr> <tr> <throwspan="2">Telephone:</th> <td>555 77 854</td> </tr> <tr> <td>555 77 855</td> </tr> </table>

  7. FISA DE LUCRU Realizatiurmatorultabel: • Modificatitabelulastfel: • dimensiunechenar: 3px • spatiuldintrecelule: 5px • - aliniere text: centrat

  8. SFARSIT

More Related