index.html 789 B

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" href="styles.css">
  8. <title>Traffic lights</title>
  9. </head>
  10. <body>
  11. <div id="first">
  12. <div id="light1">
  13. <div class="red" id="red"></div>
  14. <div class="yellow" id="yellow"></div>
  15. <div class="green" id="green"></div>
  16. </div>
  17. </div>
  18. <div id="second">
  19. <div id="light2">
  20. <div class="red" id="red1"></div>
  21. <div class="green" id="green1"></div>
  22. </div>
  23. <div class="btn" id="btn">PRESS</div>
  24. </div>
  25. <script src="script.js"></script>
  26. </body>
  27. </html>