Design comparison
Solution retrospective
Which way is the better and easier way to the usage of SVG in HTML? Is there any easier way to fit Body background images exactly the same one in design file?
Thanks
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, really nice work on this one. Desktop layout looks really great, the site is responsive and the mobile state looks great as well.
Well, if you don't really need to change the
svg
's color by thefill
stylings, then using thesvg
path as thesrc
forimg
would be nice, on the other hand if you need to change ansvg
appearance/color, using inlinesvg
would be really nice.Some other suggestion on the site would be:
- It would be great to have this markup:
<header /> # logo <main /> <footer /> # social media
This way, all content of your page will be inside their own respective landmark element.
- Use only
huddle
as the website-logoalt
text. When usingimg
tag, you don't need to add words that relates to "graphic" such as "logo, illustration" and others, sinceimg
is already an image so no need to describe it as one. - The hero-section image is only a decorative. Decorative images should be hidden for screen-reader at all times by using
alt=""
andaria-hidden="true"
to theimg
tag or onlyaria-hidden="true"
if you are usingsvg
instead ofimg
tag. - Only use descriptive
alt
on images that are meaningful and adds content to the site otherwise hide the image for screen-reader users. - Those social-media links could be inside a
ul
element since those are "list" of links. - Each
a
tag that wraps the social-media icon should have eitheraria-label
attribute orsr-only
text inside it, defining where the link would take them. For example, you should usefacebook
as the value if the link would take the user to facebook.
Aside from those, great job again on this one.
Marked as helpful0@denisdindarPosted about 3 years ago@martpika Thanks a lot. Suggestions about markup and especially accessibility are very helpful. Appreciated.
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