Conte-nos o que está acontecendo:
Não entendi o porque de estar dando erro, o código esta exatamente como o pedido, alguém poderia me ajudar por favor, o erro fala:
O elemento th
deve ter o texto Savings Funds set aside for emergencies.
.
ja oque é pedido:
No terceiro elemento tr
, adicione um elemento th
com o texto Savings Funds set aside for emergencies.
. Encapsule esse texto, exceto Savings
, em um elemento span
com o atributo class
definido como description
.
Depois disso, adicione três elementos td
com o seguinte texto (em ordem): $500
, $650
, $728
. Dê ao terceiro elemento td
a class
com o valor de current
.
Seu código até o momento
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Balance Sheet</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<main>
<section>
<h1>
<span class="flex">
<span>AcmeWidgetCorp</span>
<span>Balance Sheet</span>
</span>
</h1>
<div id="years" aria-hidden="true">
<span class="year">2019</span>
<span class="year">2020</span>
<span class="year">2021</span>
</div>
<div class="table-wrap">
<table>
<caption>Assets</caption>
<thead>
<tr>
<td></td>
<th><span class="sr-only year">2019</span></th>
<th><span class="sr-only year">2020</span></th>
<th class="current"><span class="sr-only year">2021</span></th>
</tr>
</thead>
<tbody>
<tr class="data">
<th>Cash <span class="description">This is the cash we currently have on hand.</span></th>
<td>$25</td>
<td>$30</td>
<td class="current">$28</td>
</tr>
<tr class="data">
<th>Checking <span class="description">Our primary transactional account.</span></th>
<td>$54</td>
<td>$56</td>
<td class="current">$53</td>
</tr>
<!-- User Editable Region -->
<tr class="data">
<th>Savings<span class="description">Funds set aside for emergencies.</span></th>
<td>$500</td>
<td>$650</td>
<td class="current">$728</td>
</tr>
<!-- User Editable Region -->
<tr class="total">
</tr>
</tbody>
</table>
<table>
</table>
<table>
</table>
</div>
</section>
</main>
</body>
</html>
/* file: styles.css */
Informações de seu navegador:
Agente de usuário: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Desafio: Saiba mais sobre os pseudosseletores em CSS criando uma folha de saldo - Passo 15
Link para o desafio: