Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Linear gradient with rainbow color
To create a linear gradient that looks like rainbow color, you can try to run the following code -
Example
<!DOCTYPE html>
<html>
<head>
<style>
#demo {
height: 100px;
background: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);
}
</style>
</head>
<body>
<h2>Linear Gradient</h2>
<div id = "demo">Rainbow</div><br>
</body>
</html> Advertisements
