index.html 1.6 KB

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