Problem with CSS linear gradient

Could any please explain why this code is not working

<!DOCTYPE html>
<title>Page Title</title>

You are missing the closing } and the div has no content so no height;

  div {
    background: linear-gradient(90deg, red, yellow, green);
    height: 20px;


For better understanding of the challenge by anyone among us you must attach or go for **Ask For Help** Section , which include all knowledge of the challenge and we will give you more fast solution.

hope you understand.
like this if you unstand this message.

Thank You So much, it worked :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.