Simple Card component using HTML/CSS

Please log in to post a comment
Log in with GitHubCommunity feedback
- @RamadhanAdam
- Improve Alt Text for Accessibility Update the alt attribute of your image to provide a more descriptive text for screen readers:
html Copy <img src="./images/image-qr-code.png" alt="QR code linking to Frontend Mentor website" class="card-image"> 2. Use Semantic HTML for Structure Wrap your main content inside the <main> tag for better structure and accessibility:
html Copy
<main> <div class="wrapper"> <div class="card"> <img src="./images/image-qr-code.png" alt="QR code linking to Frontend Mentor website" class="card-image"> <h3 class="card-title">Improve your front-end skills by building projects</h3> <p class="card-description">Scan QR code to visit Frontend Mentor and improve your front-end skills by building projects</p> </div> </div> </main> 3. Add Meta Tags for SEO and Social Media Add basic meta tags to improve SEO and allow better sharing on social media platforms:html Copy <meta name="description" content="Improve your front-end skills by building projects with this QR code component challenge."> <meta property="og:title" content="Frontend Mentor | QR Code Component"> <meta property="og:description" content="Improve your front-end skills by building projects with this QR code component challenge."> <meta name="twitter:card" content="summary_large_image"> 4. Make Your CSS Responsive Add a simple media query to make sure your card is responsive on smaller devices:
css Copy @media (max-width: 600px) { .card { width: 90%; padding: 15px; } }
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