How to create color generator with html and javascript

How to create color generator with html and javascript Color generator will generate hexadecimal code and rgb code . User can create any type of color through it. So lets begin. Here is the code < html > < head > < style type = "text/css" > #colored { width : 300px ; height : 100px ; border : 1px solid #ddd ; } </ style > </ head > < body > < div id = "colored" ></ div > < p > Red </ p > < input oninput = " getColor() " id = "red" type = "range" max = "255" min = "0" step = "1" value = "30" > < p > Green </ p > < input oninput = " getColor() " id = "green" type = "range" max = "255" min = "0" step = "1" value = "30" > < p > Blue </ p > < input oninput = " getColor() " id = "blue...