;

Create Color Charts With Pure HTML

How to Add Color Charts In HTML



buayaberdiri.blogspot.com - Maybe you need a color chart on a website page. In HTML, we can make it limited, as it doesn't support the display of CSS color codes such as HEX Code and Color Names. For the color chart display of pure HTML it only provides RGB code information.


This is an example of a Color Chart code Using <input> code in pure html :


<input type="color" name="color" id="kolor" style="width:30%; height:100px;">


By using the type="color" attribute, you can create pretty good color choices to display. You can change the size of the color selection box using css code like using the width and height properties in css.


Then the result will be like this:



In the example image above you can choose basic colors such as red, pink, blue, light blue, green, yellow, black and others.

Apart from not displaying hexadecimal codes and color names, this color chart from HTML also does not support color gradations and a combination of more than one color.





Check out other articles about HTML:

  1. Learn Input Types In HTML For Login And Register Form
  2. Learn HTML List - How To Create Square, Circle, Number List
  3. How To Create Comments Line In HTML
  4. How to Add Text Formatting In HTML
  5. Adding The Fieldset Code To The Form In HTML
  6. How to Create a Search Box in Pure HTML




List of Article Posts https://buayaberdiri.blogspot.com