daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Jul 21st, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>First Steps Into PHP</title>
  6.     <style>
  7.         table * {
  8.             border: 1px solid black;
  9.             width: 50px;
  10.             height: 50px;
  11.         }
  12.     </style>
  13. </head>
  14. <body>
  15. <table>
  16.     <tr>
  17.         <td>
  18.             Red
  19.         </td>
  20.         <td>
  21.             Green
  22.         </td>
  23.         <td>
  24.             Blue
  25.         </td>
  26.     </tr>
  27.     <?php
  28.     for($i=51;$i<=255;$i+=51){
  29.     ?>
  30.     <tr>
  31.         <td style="background: RGB(<?=$i?>, 0, 0)"></td>
  32.         <td style="background: RGB(0, <?=$i?>, 0)"></td>
  33.         <td style="background: RGB(0, 0, <?=$i?>)"></td>
  34.     </tr>
  35. <?php}?>
  36. </table>
  37. </body>
  38. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top