@pRicard0
Posted
Projeto está com o design legal, mas o código dá para melhorar.
Diquinhas HTML
- Ao invés de criar uma
<div>
com a classe"container"
, é recomendado que você utilize a tag<main>
por conta de ser uma tag semântica. - Ao invés de criar um
<h2>
, crie um<h1>
porque toda página precisa ter um h1 e você precisa respeitar a hierarquia de títulos. Não use h2 enquanto você não usar h1 e não use h3 enquanto não usar h2 e assim por diante.
Dica CSS
- Evite usar px para
font-size
. Utilize rem pois é mais acessível, flexível, varia... Você pode entender mais aqui https://gabcarvalhogama.com.br/css/qual-unidade-de-font-size-usar-px-rem-em-vw/
Marked as helpful
@CodeClayton
Posted
@pRicard0 obrigado pela dica!
@CodeClayton
Posted
@pRicard0 entao com rem e mais facil deixar igual ao preview?
@pRicard0
Posted
@CodeClayton Eu quero dizer que o propósito que você está utilizando o em, é o propósito do rem. O propósito do em não é especificadamente esse.