HTML Academy
Diagonals vs. Degrees
Linear Gradients6/23
Back to the list of tasks
  • 1. Hello, linear-gradient!
  • 2. Gradient Direction
  • 3. Diagonal Gradients
  • 4. Gradients at an Angle
  • 5. Diagonals vs. Degrees
  • 6. Challenge: Application Icons
  • 7. Uniform Multicolor Gradient
  • 8. Color Proportions and Color Stops
  • 9. Sharp Color Transitions
  • 10. Pseudo-Columns on Gradients
  • 11. Challenge: Flags
  • 12. Color Transitions in px
  • 13. Semi-Transparent Gradients
  • 14. Repeating Linear Gradient
  • 15. Creating a Complex Background – Part 1
  • 16. Creating a Complex Background – Part 2
  • 17. Creating a Complex Background – Part 3
  • 18. Let’s Create a Complex Background – Final Step
  • 19. Buttons – Part 1
  • 20. Buttons – Part 2
  • 21. Buttons – Part 3
  • 22. Challenge: Ornament Made of Shurikens
  • 23. Challenge: Satellites
Uniform Multicolor Gradient
  • Sign up
  • Log in

Register to take up challenges

Registration will only take a minute and let you save your study progress. You can register with your email and password or login via social networks.

or
Log in and continue
  • index.html
  • style.css
HTML
<!DOCTYPE html> <html lang="en"> <head> <title>Challenge: Application Icons</title> <meta charset="utf-8"> <link rel="stylesheet" href="setting-1.css"> <link rel="stylesheet" href="style.css"> </head> <body> <div class="icon messages"> <img class="icon-inner" src="messages.svg" alt="Message icon"> </div> <div class="icon weather"> <img class="icon-inner" src="weather.svg" alt="Weather icon"> </div> <div class="icon camera"> <img class="icon-inner" src="camera.svg" alt="Camera icon"> </div> <div class="icon music"> <img class="icon-inner" src="music.svg" alt="Music icon"> </div> </body> </html>
CSS
.messages { /* gradient from #71d5f4 to #337cd2 */ } .weather { /* gradient from #ff792e to #ffe662 */ } .camera { /* gradient from #9a66ba to #f98edb */ } .music { /* gradient from #6ffc75 to #4cb350 */ }

What didn’t you like in this task?

Thanks! We’ll fix everything at once!

100%
  • Goal
  • Result
  • Overlay
  • Differences
  • ?

Press Compare to send your code for review.

Failed to load the goal. Try later.

Goal — the interface you need to get.

Result — the way the server sees your code. Can differ from what you see in the mini-browser. The comparison is made between this result and the goal.

Overlay — semi-transparent result is shown above the goal.

Differences — the map of differences between the goal and the result.

Done 0%.
The code has been changed

Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

VISAMastercard