CurrencyConverterBaru / index.html
GarGerry's picture
Update index.html
5f2420a verified
raw
history blame
2.87 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Currency Converter</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav class="navbar">
<div class="logo">
<img src="logo.png" alt="Logo">
</div>
</nav>
</header>
<section class="headline">
<h1>Currency Converter</h1>
<p>Convert your money between different currencies easily.</p>
</section>
<section class="content">
<div class="converter-container">
<!-- Amount -->
<div class="currency-box">
<label for="amount">Amount:</label>
<input type="number" id="amount" placeholder="Enter amount">
</div>
<!-- From & To Currency -->
<div class="currency-select">
<div class="currency-group">
<label for="from-currency">From:</label>
<select id="from-currency">
<option value="USD">๐Ÿ‡บ๐Ÿ‡ธ USD</option>
<option value="EUR">๐Ÿ‡ช๐Ÿ‡บ EUR</option>
<!-- Add other currencies here -->
</select>
</div>
<button id="swap-btn" onclick="swapCurrencies()">โ‡…</button>
<div class="currency-group">
<label for="to-currency">To:</label>
<select id="to-currency">
<option value="EUR">๐Ÿ‡ช๐Ÿ‡บ EUR</option>
<option value="USD">๐Ÿ‡บ๐Ÿ‡ธ USD</option>
<!-- Add other currencies here -->
</select>
</div>
</div>
<button id="convert-btn" onclick="convertCurrency()">Convert</button>
<p id="result"></p>
</div>
</section>
<section class="how-to-use">
<h2>How to convert Euros to US Dollars</h2>
<div class="steps">
<div class="step">
<h3>1. Enter the amount</h3>
<p>Simply type in the box the amount you want to convert.</p>
</div>
<div class="step">
<h3>2. Select Your Currencies</h3>
<p>Choose the currency you want to convert.</p>
</div>
<div class="step">
<h3>3. That's It</h3>
<p>Our currency converter will show you the current exchange rate.</p>
</div>
</div>
</section>
<footer class="footer">
<div class="footer-content">
<p>About</p>
<p>Social Media</p>
<p>Copyright ยฉ 2025</p>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>