Generate code to add a background gradient to a rectangular block.
Here's an example code that adds a linear background gradient to a rectangular block using CSS and HTML:

```html
<!DOCTYPE html>
<html>
  <head>
    <style>
      .rectangle{
        width: 300px;
        height: 200px;
        /* Linear gradient with top  to bottom */
        background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 100%);
      }
    </style>
  </head>
  <body>
    <!-- Rectangle block -->
    <div class="rectangle"></div>
  </body>
</html>
```
This code creates a rectangular `div` with a defined width and height, and sets its background to a linear gradient that goes from top to bottom, transitioning from color `#33ccff` to `#ff99cc`.

You can change the direction of the gradient, the colors, and the position, by modifying the values in the `background` property. Also, you can define more colors with their corresponding stop points to create more complex gradients for your rectangle block.
Complete the following task based on the instruction and optional input provided.### Instruction:
Generate code to add a background gradient to a rectangular block.

### Output:
Here's an example code that adds a linear background gradient to a rectangular block using CSS and HTML:

```html
<!DOCTYPE html>
<html>
  <head>
    <style>
      .rectangle{
        width: 300px;
        height: 200px;
        /* Linear gradient with top  to bottom */
        background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 100%);
      }
    </style>
  </head>
  <body>
    <!-- Rectangle block -->
    <div class="rectangle"></div>
  </body>
</html>
```
This code creates a rectangular `div` with a defined width and height, and sets its background to a linear gradient that goes from top to bottom, transitioning from color `#33ccff` to `#ff99cc`.

You can change the direction of the gradient, the colors, and the position, by modifying the values in the `background` property. Also, you can define more colors with their corresponding stop points to create more complex gradients for your rectangle block.