[HTML] [attributo] rowspan

rowspan (attributo base HTML) stabilisce il numero di celle (<td> o <th>) della tabella da unire verticalmente ovvero in righe.

tag

valore

<td>

rowspan = "[numero]"

<th>

Come sopra.

Esempio

<table>
  <tr>
    <td>1</td>
    <td>2</td>
    <td>3</td>
  </tr>
  <tr>
    <td>1</td>
    <td rowspan="2">2</td>
    <td>3</td>
  </tr>
    <tr>
    <td>1</td>
    <td>3</td>
  </tr>
</table>

1 2 3
1 2 3
1 3
attributi base html, html

Related Articles

0 Comment

Rispondi