index.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <title>HW7 DOM</title>
  8. <link rel="stylesheet" href="style.css">
  9. </head>
  10. <body>
  11. <div class="container">
  12. <table class="root"></table>
  13. <div class="calc__wrapper">
  14. <h3>Калькулятор расхода топлива</h3>
  15. <div class="calc__item">
  16. <span>Затрачено топлива</span>
  17. <input type="number" name="liters">
  18. <label for="liters">литров</label>
  19. </div>
  20. <div class="calc__item">
  21. <span class="way">Пройдено пути</span>
  22. <input type="number" name="km">
  23. <label for="km">километров</label>
  24. </div>
  25. <div class="radio__wrapper">
  26. <input type="radio" id="liter" name="choise">
  27. <label for="liter">В литрах на 100км</label>
  28. <input type="radio" id="uah" name="choise">
  29. <label for="uah">В гривнах на 100км</label>
  30. <div class="price__item">
  31. <span class="price">Цена топлива за литр</span>
  32. <input type="number" name="price" required>
  33. <label for="price">грн</label>
  34. </div>
  35. </div>
  36. <div class="outer"> </div>
  37. <button class="btn"> Очистить </button>
  38. </div>
  39. </div>
  40. <script src="script.js"></script>
  41. </body>
  42. </html>