Interactive online courses HTML Academy
2026-03-09 14:06 Diff

In CSS, you can set any color to have semi-transparency, or even set a transparent color. This is done using the rgbacolor values that support transparency in addition to the three color components. Examples:

  • rgba(255, 255, 255, 1) — Regular white color.
  • rgba(255, 255, 255, 0.5) — 50% transparent white.
  • rgba(255, 255, 255, 0) — 100% transparent color.

You can also set a transparent color using the keyword transparent.

Transparent and semi-transparent colors are also used in gradients to create interesting effects.

In this task, you need to complete the image by writing striped semitransparent gradients of the two remaining squares by analogy with the two existing ones, so that you end up with another square in the center.