css

04. CSS Selectors πŸ‘©β€πŸŽ“πŸ‘¨β€πŸŽ“

πŸ“– Implement an Icon for Downloadable Style Sheets

Work with a partner to implement the following user story:

  • As a user, I want to see an icon next to every <a> element that has a link to a downloadable CSS file in its href attribute.

Instructions

  • Add a πŸ“ emoji to any link to a CSS file.
    • Should be added only using CSS

Your web application should look like the following image once complete:

The updated page shows an emoji next to each link that takes you to a CSS file.

πŸ’‘ Hints

  • How can you target a file type by its file extension (i.e., .css, .html, .md, etc.)?

Refer to the following documentation:

MDN Web Docs on attribute selectors

πŸ† Bonus

If you have completed the activity and want to further your knowledge, work through the following challenge with your partner:

  • How do selectors affect CSS performance?

Use Google or another search engine to research this.


βœ… Solutions

Solutions Click Here