les balises
<table border =n> ............. écrire le texte
<tr> .....................ligne début
<td> nom de la cellule </td>............cellule début et fin
</tr> .............ligne fin
</table>
exemple
<table border =4>
<tr>
<td>prix </td>
<td> 10 $</td>
</tr>
<tr>
<td>quantité </td>
<td>12 </td>
</tr>
<tr>
<td>total</td>
<td>120$</td>
</tr>
</table>
| prix | 10 $ |
| quantité | 12 |
| total | 120$ |
comment changer la couleur pour les cellules
il suffit d'ajouter la balise bg color ou #rrvvbb
exemple :
<table border=5>
<tr>
<td bgcolor=gren> hello</td>
<td bgcolor=#012345> hello</td>
<td bgcolor=#020506> hello</td>
</tr>
</table>
<table border=5>
<tr>
<td bgcolor=gren> hello</td>
<td bgcolor=#012345> hello</td>
<td bgcolor=#020506> hello</td>
</tr>
</table>
| hello | hello | hello |
comment ajouter plusieurs cellule :
on va utiliser la balise clospan ,telque
<td colspan =nombre de cellules > nom de la cellule </td>
exemple
<table border=5>
<tr>
<td colspan =2> cellule 1 </td>
</tr>
<td>1</td>
<td>2</td><
</tr>
</table>
<tr>
<td colspan =2> cellule 1 </td>
</tr>
<td>1</td>
<td>2</td><
</tr>
</table>
| cellule 1 | |
| 1 | 2 |
Aucun commentaire:
Enregistrer un commentaire