Huddle landing page with single introductory section
Design comparison
Community feedback
- @CodeWithAlaminPosted almost 2 years ago
Hi Madu Jangπ Great job on completing this challenge! π₯³
I would like to share a few suggestions on this solution if you don't mind.
HTML:
- To improve accessibility, it's a good idea to add a
title
attribute to thelink
element that references the favicon image. This will allow screen readers to announce the presence of the favicon to users. Learn more - Consider adding a
lang
attribute to thehtml
element to specify the language of the content. This can help screen readers and search engines understand the language of the page and provide a better user experience. Learn more
CSS:
- To improve performance, consider using the
font-display
property in the@font-face
rule for the Google fonts. This property specifies how a font should be displayed while it is loading. Learn more - To make the styles more maintainable, consider organizing them into smaller, more focused modules or files. For example, you could create separate files for the layout, typography, and button styles. Learn more
- To improve the styling for small screen sizes, consider using responsive units like
em
orrem
for font sizes and padding instead of pixel values. This can help the layout adjust more smoothly to different screen sizes. Learn more
Overall, this is a very well done solution to the challenge. Great job!
I hope this feedback was helpful. π Keep up the good work!π
Marked as helpful0 - To improve accessibility, it's a good idea to add a
- @MJspittaPosted almost 2 years ago
@CodePapa360 please can you explain more about the title attribute in the link element?
0@CodeWithAlaminPosted almost 2 years ago@MJspitta Certainly! The
title
attribute is an optional attribute of thelink
element in HTML that provides a brief description of the linked resource. Thelink
element is used to link external resources, such as stylesheets, fonts, and favicons, to an HTML document. Thetitle
attribute can be used to provide additional context or information about the linked resource, which can be especially helpful for users of assistive technologies such as screen readers.For example, in the case of a favicon, the
title
attribute of thelink
element could be used to describe the purpose or function of the favicon, such as "Website logo" or "Site icon". This can help screen reader users understand the purpose of the favicon and how it relates to the website.It's worth noting that the
title
attribute is different from thetitle
element, which is used to provide a title for the document and is displayed in the browser's title bar or tab. Thetitle
attribute of thelink
element is not displayed in the browser, but it can be read by screen readers and other assistive technologies.Marked as helpful0
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