Olá, estou tentando encontrar o erro, mas não estou achando, preciso de ajuda para identificar.
Minha tabela está aparecendo desta forma, sem as bordas e com cabeçalho aparecendo em baixo da tabela:
Abaixo segue o HTML e em seguida o CSS
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contato - Barbearia Alura</title>
<link rel="stylesheet" type="text/css" href="reset.css">
<link rel="stylesheet" type="text/css" href="contato.css">
</head>
</head>
<body>
<header>
<div class="caixa">
<h1><img src="logo.png" alt="Logo da Barbearia Alura"></h1>
<nav>
<ul>
<li>
<a href="index.html">Home</a></li>
<li>
<a href="produtos.html">Produtos</a></li>
<li>
<a href="contato.html">Contato</a></li>
</ul>
</nav>
</div>
</header>
<main>
<form>
<label for="nomesobrenome">Nome e sobrenome</label>
<input type="text" id="nomesobrenome" class="input-padrao" >
<label for="email">Email</label>
<input type="email" id="email" class="input-padrao" required required placeholder="seuemail@dominio.com">
<label for="telefone">Telefone</label>
<input type="tel" id="telefone" class="input-padrao" required placeholder="(xx) xxxxx-xxxx">
<label for="mensagem">Mensagem</label>
<textarea cols="70" rows="10" id="mensagem" class="input-padrao" required></textarea>
<fieldset>
<legend>Como prefere o contato?</legend>
<label for="radio-email"><input type="radio" name="contato" value="email" id="radio-email">Email</label>
<label for="radio-telefone"><input type="radio" name="contato" value="telefone" id="radio-telefone">Telefone</label>
<label for="radio-whatsapp"><input type="radio" name="contato" value="whatsapp" id="radio-whatsapp" checked>Whatsapp</label>
</fieldset>
<fieldset>
<p>Qual o horário prefere ser atendido?</p>
<select>
<option>Manhã</option>
<option>Tarde</option>
<option>Noite</option>
</select>
</fieldset>
<label class="checkbox"> <input type="checkbox" checked>Gostaria de receber nossas novidades por email?</label>
<input type="submit" value="Enviar" class="enviar">
</form>
<table>
<thead>
<tr>
<th>Dia</th>
<th>Horário</th>
</tr>
</thead>
<tbody>
<tr>
<dt>Segunda</dt>
<dt>8h ~ 20h</dt>
</tr>
<tr>
<dt>Quarta</dt>
<dt>8h ~ 20h</dt>
</tr>
<tr>
<dt>Sexta</dt>
<dt>8h ~ 20h</dt>
</tr>
</tbody>
</table>
</main>
<footer class="copyright">
<img src="logo-branco.png" alt="Logo da barbearia Alura">
<p>©Todos os direitos reservados - Barbearia Alura - 2021</p>
</footer>
</body>
</html>
O CSS:
header {
background: #BBBBBB;
padding: 20px 0 ;
}
.caixa {
position: relative;
width: 940px;
margin: 0 auto;
}
nav {
position: absolute;
top: 110px;
right: 0;
}
nav li {
display: inline;
margin: 0 0 0 15px;
}
Nav a {
text-transform: uppercase;
color: #000000;
font-weight: bold;
font-size: 22px;
text-decoration: none;
}
nav a:hover {
color: #c78c19;
text-decoration: underline;
}
h2 {
font-size: 30px;
font-weight: bold;
margin-bottom: 15px;
}
h3 {
font-size: 25px;
font-weight: bold;
margin-bottom: 15px;
}
main {
width: 940px;
margin: 0 auto;
}
form {
margin: 40px 0;
}
form label, form legend {
display: block;
font-size: 20px;
margin: 0 0 10px;
}
.input-padrao {
display: block;
margin: 0 0 20px;
padding: 10px 25px;
width: 50%;
}
.checkbox {
margin: 20px 20px;
}
.enviar {
width: 40$;
padding: 15px auto;
background: orange;
color: white;
font-weight: bold;
font-size: 18px;
border: none;
border-radius: 5px;
transition: 1s all;
cursor: pointer;
}
.enviar:hover {
background: black;
transform: scale(1.2);
}
table {
margin: 20px 0 40px;
}
thead {
background: #555555;
color: white;
font-weight: bold;
}
td {
border: 1px solid #000000;
}
footer {
text-align: center;
background: url(bg.jpg);
padding: 40px 0;
}
.copyright {
color: #FFFFFF;
font-size: 13px;
margin-top: 20px;
}