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

Responsive FAQ accordion card (no JS)

Franziska Wich• 210

@franziskawich

Desktop design screenshot for the FAQ accordion card coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I solved this challenge without JS.

I struggled a lot with positioning the images (but I learned a lot too (: ) and I am not so happy that the image for the desktop is now an background-image (otherwise I had problems with the hidden overflow). It does not feel consistent. I would love to know how I could improve this.

While researching I stumbled over something called ARIA, but this concept seems to be outdated? Do you have a recommendation for an up-to-date resource to learn more about accessibility? (I saw a few articles on the MDN-site, but they linked to a dead website about ARIA too...)

I had a weird issue with my image-box (my image) and content-box (the faq) and it still confuses me. I moved my content a bit upwards (margin-top: -X) and then it was obviously overlapped by my image-box because I could not click on my first question anymore. I thought a z-index would help me out but it actually did not. There must be something else going on or maybe I am just too blind and I do not see the real issue which causes this behavior. ._. So I was sort of forced to set a hight on my image-box. That's probably not too bad but I thought I could solve it without doing that.

I would appreciate any feedback or suggestions for improvement.

Community feedback

Riyana Gueco• 495

@rngueco

Posted

Hi Franziska! 👋

Great job on this! It's definitely one of the harder newbie challenges out there because of the positioning, but you did well!

As for ARIA, some developers still definitely use ARIA. Here is WebAIM's guidelines for ARIA use. WebAIM's website in general helped me lots regarding accessibility. There's also the A11Y Project if you prefer that.

As for your HTML, you could make it more semantic by putting the FAQs in a more semantic structure, like a list <ul> or <ol> 🙂 Typically all webpages should have a main heading wrapped in <h1> that denotes the main topic of the page, so it would make sense to have one in this project too. A good reminder is to not skip heading levels (i.e. going from <h1> straight to <h3> without using <h2> is not good practice).

Marked as helpful

0

Franziska Wich• 210

@franziskawich

Posted

@rngueco

Hi Riyana,

thank you very much for your feedback and recommendations. (: I saw that you did this challenge without JS before I started it and it motivated me to try my luck myself ("If she can do it...!"). ^^

I was thinking about using an ol/ul-list at first. Then I've read somewhere that the summary-element is an list-item already and I thought that would suffice, but it probably does not. This was the main reason why I was looking for a website about accessibility. I will check your recommendations and will do some reading on it. I know that these are still very small projects but why not start with accessibility in mind early on so it becomes second nature in bigger challenges. I used a h1 and h2s at the beginning and then I felt like that this FAQ is just a component of a bigger website and I changed them to h2/h3s, but you are right, I should see this challenge as its own website. I will change it back right away.

I wish you all the best. Maybe we see/read each other again in future challenges.

0
P
Patrick• 14,325

@palgramming

Posted

Really Great 🌟🌟🌟🌟🌟 and with no JS then 🌟🌟 more starts... Nice work

1

Franziska Wich• 210

@franziskawich

Posted

@palgramming

Thank you, Patrick! It took me quite a while to make it, so it's nice to know that it seems to have turned out well too. (:

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