This project is a web-based application built with HTML and JavaScript that converts temperatures between Fahrenheit and Celsius, demonstrating front-end development concepts such as user input handling and real-time updates.
Note: This project was created for academic and learning purposes. It is not intended for production use.
- Download or clone the repository.
- No external dependencies are required — the project runs entirely in the browser.
- Navigate to the project directory, then open
index.htmlwith your preferred web browser. - Enter a value in either the Fahrenheit or Celsius input field
- Press Tab or click outside the input field
- The converted value will update automatically
Fahrenheit (°F) ↔ Celsius (°C)
32 0
The application listens for user input in either temperature field and applies the appropriate conversion formula:
-
Fahrenheit to Celsius Conversion
- Accepts user input in Fahrenheit
- Applies the formula:
(F - 32) × 5/9
-
Celsius to Fahrenheit Conversion
- Accepts user input in Celsius
- Applies the formula:
(C × 9/5) + 32
The results are automatically displayed in each corresponding field.
- Bidirectional conversion (Fahrenheit <-> Celsius)
- Updates based on user input
- Responsive layout for various screen sizes
- Simple and intuitive user interface
Temperature-Converter/
├── index.html
├── styles.css
└── script.js
- HTML – Application structure
- CSS – Styling and layout
- JavaScript – Logic and interactivity
- Support for additional units such as Kelvin