Advertisement
Guest User

Untitled

a guest
Jul 21st, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement