Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

Pure HTML/CSS with Flexbox and Media Queries

Skye Brown•110
@skyebrownh
A solution to the Huddle landing page with a single introductory section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


For some reason, could not get the CSS background shorthand property to accept the background-size. I tried placing it in front of and behind the background-repeat value. Any other feedback is welcome.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Vanza Setia•27,715
    @vanzasetia
    Posted over 3 years ago

    Hello there, Skye! 👋

    Congratulations on finishing this challenge! 🎉

    I have some feedback on this solution:

    • Accessibility
      • The illustration is a decorative image, so could make the img has an empty alt="" and aria-hidden="true" attributes to make all web assistive technologies such as screen reader ignore those images.
      • The alternative text for img element should not contain any words that related to image such as picture, icon, photo, illustration, logo, graphic, etc.
      • Some resources to learn about the alternative text.
        • Axess Lab | Alt-texts: The Ultimate Guide
        • Images Concepts • WAI Web Accessibility Tutorials
      • Chamu has said to you that the Register button should be an anchor tag. But, what do you think is going to happen if the user click that button? If you think it will navigate the user to a register webpage then it should be an anchor tag. However, if you think it will open a modal that contains form then it should be a button element.
      • In general, anchor tags are for navigation - moving to different pages or content on the same screen, while the button elements are for actions like opening a modal, submitting a form, toggling element, etc.
      • Always specify the type of the button. By doing that, you prevent the button from behaving unexpectedly (like submitting).
      • Every a element must have text content. In this case, since it only contains an icon, Chamu has recommended to you that you could have a visually hidden text inside it or you could just use aria-label attribute.
    * This is okay
    <a href="#">
      <span class="fab fa-facebook-f"></span>
      <span class="sr-only">Facebook</span>
    </a>
    
    * This is also okay
    <a href="#" aria-label="Facebook">
      <span class="fab fa-facebook-f"></span>
    </a>
    
    • Also, I would recommend using span instead of i element. Reference: https://github.com/hail2u/html-best-practices
    • Use rem or sometimes em unit instead of px. Using px will not allow the users to control the size of the page based on their needs.
    • Styling
      • Remove the width: 100vw from the body element. By default, the body element has already full width.
      • Don't limit the height of the body element, it will not allow the users to scroll the page if the page content needs more height. Use min-height instead.
      • I would recommend adjusting the breakpoint for the @media query. Also, I'm guessing that you are getting the 1440px from the style-guide and that's not what the value is for. It's just telling you that your solution should look something like this at 1440px (not making the site looks like this at 1440px). Your job as a developer is to make sure that your site looks good at all screen sizes.

    That's it! Hopefully, this is helpful! 😁

    Marked as helpful
  • Chamu•13,860
    @ChamuMutezva
    Posted over 3 years ago
    • the register button must be an anchor element. That should be a navigation to the registration site.
    • the anchor elements in the footer should have readable content, the images used are not providing information of the functions of the anchor elements to users. Use a sr-only class on a span which will be a child of the anchor element. Research on the sr-only class.
  • Naveen Gumaste•10,420
    @NaveenGumaste
    Posted over 3 years ago

    Hay ! Good Job Skye

    These below mentioned tricks will help you remove any Accessibility Issues

    -> Add Main tag after body like it should be your container. For 1st heading or h1 tag, use header tag and then inside the header put your h1 or h2 etc . But use header tag only once in main heading element.

    Keep up the good work!

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

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit all CSS, SCSS and Less files in your repository.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

How does the JavaScript validation report work?

When a solution is submitted, we use eslint to run an automated check on the JavaScript code.

The report picks out common JavaScript issues such as not using semicolons and using var instead of let or const, among others.

The report will audit all JS and JSX files in your repository. We currently do not support Typescript or other frontend frameworks.

Oops! 😬

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

Log in with GitHub

Frontend Mentor for Teams

Frontend Mentor for Teams helps companies and schools onboard and train developers through project-based learning. Our industry-standard projects give developers hands-on experience tackling real coding problems, helping them master their craft.

If you work in a company or are a student in a coding school, feel free to share Frontend Mentor for Teams with your manager or instructor, as they may use it to help with your coding education.

Learn more

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