Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>First Steps Into PHP</title>
- <style>
- div {
- display: inline-block;
- margin: 5px;
- width: 20px;
- height: 20px;
- }
- </style>
- </head>
- <body>
- <!--Write your PHP Script here-->
- <?php
- for($i=0; $i<255; $i+=51) {
- for($j=$i; $j<$i+50; $j += 5) {
- echo "<div style=\"background-color: rgb($j, $j, $j);\"></div>";
- }
- echo "<br>";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement