Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
Request path contains unescaped characters
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

QR code component using responsive design

Joanna 10

@joanterm

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feedback always appreciated. Used pixels to follow given design as opposed to rem and em units.

Community feedback

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have other recommendations regarding your code that I believe will be of great interest to you.

HTML 🏷️:

  • This solution generates accessibility error reports, "All page content should be contained by landmarks" is due to non-semantic markup, which lack landmark for a webpage
  • So fix it by replacing the <section class="card-section"> element with the semantic element <main> along with wrapping the <p> element with <footer> element in your index.html file to improve accessibility and organization of your page.
  • What is meant by landmark ?, They used to define major sections of your page instead of relying on generic elements like <div> or <span>
  • They convey the structure of your page. For example, the <main> element should include all content directly related to the page's main idea, so there should only be one per page

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

0

Joanna 10

@joanterm

Posted

Great points @0xAbdulKhalid! Thank you for taking the time to look at the code :)

0
Adriano 310

@adriano-wb

Posted

Aqui estão algumas sugestões para melhorar este código:

1. Adicione uma descrição ao elemento de imagem: Adicione um atributo "alt" descritivo para a imagem para melhorar a acessibilidade e fornecer informações úteis para os usuários que usam leitores de tela.

2. Remova pré-conexões redundantes: As pré-conexões para o mesmo recurso não são necessárias, portanto, você pode remover a segunda pré-conexão do Google Fonts.

3. Agrupe as pré-conexões: Agrupe as pré-conexões relacionadas para melhorar a legibilidade e o desempenho do código.

4. Use uma classe mais descritiva: Em vez de usar "card-container", use uma classe mais descritiva para identificar o elemento, como "qr-code-container".

5. Adicione um estilo de plano de fundo: Adicione um estilo de plano de fundo ao elemento body ou ao elemento principal para melhorar a aparência do site.

6. Use espaços entre os atributos: Adicione espaços entre os atributos para melhorar a legibilidade e a facilidade de leitura do código HTML.

7. Considere usar um pré-processador CSS: Considere usar um pré-processador CSS como o Sass para simplificar o processo de escrita de CSS e melhorar a manutenibilidade do código.

8. Adicione comentários descritivos: Adicione comentários descritivos ao código para ajudar a entender o que cada seção do código faz.

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord