Testimonial page web responsive design using CSS flexbox
Design comparison
Solution retrospective
Q1. Can we use semantic html tags like <section>, <article> when trying to style elements. Or only when they contain tags. Q2. Since section tag is generic can we completely omit div tags and use them instead Q3. Should we enclose section tag in article, or article tag in section
Thanks for checking my solution! Have a great day ✨
Community feedback
- @mikej321Posted over 1 year ago
Yes, you should wrap content in semantics...it could even be helpful to know that semantic tags can also be wrapped in divs, in case that ever confuses you like it did me. What I normally do is look at the flow of the design that I'm viewing and look for obvious gaps in content, maybe whitespace. At the top, I'd do a header tag, then everything else would be under a main tag. If the site has a footer bar or in the projects case, you could even wrap the attribution to you in a footer tag. I hope this helps and I wish you luck on your journey!
Michael
1
Please log in to post a comment
Log in with GitHubJoin 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