Pages

duminică, 1 august 2021

CodePen: RGB colors.

Example with the javascript programming language presented in my codepen account solves the following issues:
  • create HTML tag div for each for iteration;
  • create an id for each div tag;
  • build an RGB color with red, green, and blue using a random function;
  • read that id and used to set the color background of each div;
  • print the RGB value for each color and set background color;
Let's see the example:

See the Pen by Cătălin George Feștilă (@catafest) on CodePen.