Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Socila links profile using HTML and CSS

Raddames Tonui•20
@Raddames-Tonui
A solution to the Social links profile challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


  1. I had difficulty understanding the use of display: flex; and display: grid; function. One with a good answer can comment.
Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Petrit Nuredini•2,860
    @petritnuredini
    Posted over 1 year ago

    Congratulations on completing your Social Links Profile project! 🌟 It's fantastic to see your hard work paying off with a functional and stylish design. Here are some best practices and recommendations to help you refine your project:

    • CSS and HTML Separation:

      • It's best to keep your styles in a separate CSS file rather than using inline styles. This separation of concerns makes your code cleaner and easier to maintain.
      • For the .attribution styles, move them to your main stylesheet to maintain consistency.
    • Semantic HTML:

      • Use semantic HTML elements to enhance the structure and accessibility of your webpage. For instance, consider using <section> or <article> for the profile section and <header> for the title area.
    • Responsive Design:

      • Great job using CSS Grid and Flexbox! Make sure to test your layout on various devices to ensure it's responsive and looks good on all screen sizes.
    • Accessibility:

      • Ensure that your links are accessible. Adding rel="noopener noreferrer" to your links that use target="_blank" improves security and performance.
      • Use meaningful alt text for images to improve accessibility for screen reader users.
    • Typography:

      • Avoid using multiple font-family comments. If you're experimenting with fonts, it's okay to try different options, but make sure to clean up your code before finalizing.
      • Ensure text sizes are readable on all devices. You can use media queries to adjust text sizes for different screen sizes.
    • Hover States:

      • Your hover effects on links are a nice touch! Ensure that these states are also accessible for keyboard users by adding focus states.
    • Code Consistency:

      • Maintain consistent spacing and indentation in your CSS for better readability.
      • Comment out or remove unused code, like the alternative font family declarations and the commented-out HTML section.
    • Understanding Flexbox and Grid:

      • Flexbox is ideal for one-dimensional layouts – either a row or a column. It's great for aligning items within a container and distributing space between items.
      • Grid is perfect for two-dimensional layouts where you control both rows and columns. It's powerful for building complex web layouts.
      • Both are incredibly useful and often work well together. Choosing between them depends on the layout requirements. Flexbox is typically used for smaller layout components, while Grid is used for larger scale layouts.

    References for Further Learning:

    • CSS and HTML Best Practices: MDN Web Docs
    • Responsive Design: Responsive Web Design Basics
    • Flexbox: A Complete Guide to Flexbox
    • CSS Grid: A Complete Guide to Grid

    Keep up the great work and continue to explore and experiment with your projects. Each challenge you take on is an opportunity to grow and improve. Can't wait to see what you create next! 💻🚀

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub