0
I’m just using html and css on this site, follow the photo of the buttons : https://prnt.sc/1gkoqf7
.bannerContainer {
background-image: url(../img/banner-barbearia.jpg);
background-repeat: no-repeat;
background-size: cover;
height: 55rem;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
}
.bannerTitulo {
color: #f2f2f2;
font-size: 4.5rem;
font-weight: 400;
}
.bannerP {
color: #f2f2f2;
margin: 0;
}
<section class="banner">
<div class="bannerContainer">
<h2 class="bannerTitulo">Transformando homens em astros</h2>
<p class="bannerP"> A experiência completa da melhor barbearia de Curitiba.</p>
<p class="bannerP">A melhor versão da sua barba e cabelo</p>
</div>
</section>
it will be better to use the tag
<a>
in terms of CEO. The<a>
may be within a<div>
– Alexis Garcia
think of the semantics:
<a>
is a link, for navigation,<button>
is an action, do something on the page (validate, send, etc), think about what you need to do and use the most correct element semantically– Ricardo Pontual
Thanks for the answers!! I’m starting now to be a dev front end, it’s been 3 months since I started but I’m doing this site from scratch and the doubts come to light :(
– Renan do Prado Szeremeta
In the element documentation
<a>
shows cases of semantic tag abuse, a look.– Augusto Vasques