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
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Article Preview Component | HTML5, CSS3, JavaScript & Flexbox

David Ochoaā€¢ 290

@davidochoadev

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi, everyone! šŸ‘‹

I'm David and this is my solution for this challenge.

āœļø Created with:

  • HTML5 šŸŒ
  • CSS3 šŸŽØ
  • JavaScript šŸš€
  • Flexbox šŸ§©
  • Media Queries šŸ–„
  • Mobile-First Workflow šŸ“±

šŸ“ What have i tried to implement in this project?

  • Commented and explained code
  • Well-Structured HTML5 markup, following best practices for accessibility.
  • Utilized CSS3 for visually appealing styles
  • Structured CSS into separate files for better organization and maintainability
  • Implemented JavaScript to create share content pop-up
  • Incorporated flexbox layout to create a flexible and responsive design, accommodating different screen sizes.
  • Utilized media queries to adapt the design to various devices, ensuring a seamless experience.
  • Followed a mobile-first workflow, prioritizing the development of a responsive design for mobile devices.

Any suggestions and help on how I can improve and reduce unnecessary code are welcome!

Best regards,

David Ochoa. šŸ˜¼

Community feedback

Vanza Setiaā€¢ 27,795

@vanzasetia

Posted

Hi, David Ochoa! šŸ‘‹

Nice badges on your README! šŸ‘

Here are some suggestions for improvements:

  • No "avatar" word: Alternative text should not contain any words that are related to "image". The semantic meaning of the <img> element is already telling assistive technologies that it is an image.
  • Always add focusable="false" to all <svg> elements: focusable="false" is used to ensure old browsers will not allow the Tab key to navigate into the SVG. Source: Contextually Marking up accessible images and SVGs
  • Semantic HTML: Use a <button> element to create the share button. Wrap each social media icon with an anchor tag.
  • Accessible name: Make sure the share button and the social media links have a label. You can use the aria-label attribute.
  • Hide decorative SVGs from assistive technologies: Decorative images that are using inline SVG should have aria-hidden="true" to prevent them from getting pronounced by screen readers.

I hope this helps. Happy coding! šŸ™‚

Marked as helpful

1

David Ochoaā€¢ 290

@davidochoadev

Posted

@vanzasetia, as always the best, thank you so much for these wonderful suggestions. I will immediately implement the changes you have suggested! šŸ™‡šŸ»ā€ā™‚ļø

0
Vanza Setiaā€¢ 27,795

@vanzasetia

Posted

@davidochoadev

You are welcome! It looks like you have implemented my suggestions.

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