Replies: 1 comment 1 reply
-
|
Geralmente a gente usa class pra poder replicar tanto em outras páginas quanto na mesma página HTML. Já o id não deve ser repetido numa mesma página. Ou seja, o id deve ser único na página. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Gente, estou começando no front-end agora e fiquei com uma dúvida: qual é exatamente a diferença entre class e id no HTML? Eu posso usar qualquer um dos dois para estilizar com CSS ou existe alguma regra de quando usar cada um?
Beta Was this translation helpful? Give feedback.
All reactions