Skip to content

craigb20/Temperature-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temperature-Converter

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.

Installation

  1. Download or clone the repository.
  2. No external dependencies are required — the project runs entirely in the browser.

Usage

  1. Navigate to the project directory, then open index.html with your preferred web browser.
  2. Enter a value in either the Fahrenheit or Celsius input field
  3. Press Tab or click outside the input field
  4. The converted value will update automatically
Fahrenheit (°F)   ↔   Celsius (°C)
     32                    0

Key Functionality

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.

Features

  • Bidirectional conversion (Fahrenheit <-> Celsius)
  • Updates based on user input
  • Responsive layout for various screen sizes
  • Simple and intuitive user interface

Project Structure

Temperature-Converter/
├── index.html
├── styles.css
└── script.js

Skills Demonstrated

  • HTML – Application structure
  • CSS – Styling and layout
  • JavaScript – Logic and interactivity

Future Improvements

  • Support for additional units such as Kelvin

License

MIT

About

This project is a web-based application built with HTML and JavaScript that converts temperatures between Fahrenheit and Celsius.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors