Com relação a tabela que o código abaixo gerará, assinale a...
Com relação a tabela que o código abaixo gerará, assinale a alternativa correta:
![Imagem associada para resolução da questão](https://arquivos.qconcursos.com/images/provas/63501/c6c5aa423fc8ab944ba4.png)
"The colspan attribute defines the number of columns a cell should span"
https://www.w3schools.com/tags/att_td_colspan.asp
.
O número máximo de colunas vai depender da row que tiver mais <td>. Como a do meio tem 2, então teremos uma tabela com 2 colunas.
A primeira row vai conter um elemento com o espaço de 1 coluna, assim como a terceira row.
A segunda row é meio sem sentido. Deveria ser colspan 1 para cada, e daria o mesmo resultado, mas o examinador colocou 2 para dificultar.
a-
__________________________________________________________________________________________________________________________________________________________________
ambos htmls têm o mesmo efeito:
<html>
<title> f </title>
<body>
<table border="5" cellpadding="10" cellspacing="0">
<tr>
<td colspan=1 height="35"> <center> xxxxxxx <center> </td>
</tr>
<tr>
<td colspan=2 height="35"> YYYYYYYY </td>
<td colspan=2 height"35"> ZZZZZZZZ </td>
</tr>
<tr>
<td colspan=1 height="35" <center> WWWWWWWW </center> </td>
</tr>
</body>
</html>
<html>
<title> f </title>
<body>
<table border="5" cellpadding="10" cellspacing="0">
<tr>
<td colspan=1 height="35"> <center> xxxxxx <center> </td>
</tr>
<tr>
<td colspan=2 height="35"> YYYYYYYY </td>
<td colspan=2 height="35"> ZZZZZZZZ </td>
</tr>
<tr>
<td colspan=1 height="35"> <center> wwwwwwww </center> </td>
</tr>
</body>
</html>
__________________________________________________________________________________________________________________________________________________________________
como a tabela aparece:
https://files.catbox.moe/1255xm.jpg
__________________________________________________________________________________________________________________________________________________________________
cellpadding & cellspacing:
Cell padding is the space between the cell edges and the cell content.
By default the padding is set to 0.
Cell spacing is the space between each cell.
By default the space is set to 2 pixels.
https://www.w3schools.com/html/html_table_padding_spacing.asp
__________________________________________________________________________________________________________________________________________________________________