Skip to content

This project is a simple temperature conversion web application that allows users to convert between Celsius and Fahrenheit. The user inputs a temperature value, selects the desired conversion unit, and clicks the submit button to see the converted result.

Notifications You must be signed in to change notification settings

ImrenR/Temperature-Conversion-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Temperature-Conversion-Program

Watch the Video

Temperature.Conversion.Demo.mov

Description

This project is a simple temperature conversion web application that allows users to convert between Celsius and Fahrenheit. The user inputs a temperature value, selects the desired conversion unit, and clicks the submit button to see the converted result.

Features

Convert temperatures from Celsius to Fahrenheit.

Convert temperatures from Fahrenheit to Celsius.

User-friendly interface with clear labels and instructions.

Displays the result dynamically on the webpage.

Styled using CSS for a clean and modern look.

Usage

Clone the repository or download the project files.

Open the index.html file in any modern web browser.

Enter a temperature value in the input box.

Select a conversion unit (Celsius to Fahrenheit or Fahrenheit to Celsius).

Click the "Submit" button to see the result.

The converted temperature will be displayed below the form.

Code Breakdown

HTML (index.html)

Contains the structure of the form, including:

An input field for temperature input.

Radio buttons to select the conversion unit.

A button to trigger the conversion.

A paragraph element to display the result.

JavaScript (index.js)

Defines the logic for temperature conversion.

Captures user input and performs the conversion based on the selected unit.

Updates the result dynamically in the HTML document.

CSS (style.css)

Styles the form and its elements:

Centers the form and applies a clean design with a light background.

Enhances the button with hover effects.

Uses clear typography for better readability.

Example

Enter 100 in the input box.

Select "Celsius ▶︎ Fahrenheit."

Click the "Submit" button.

The result 212.0°F will appear below the form.

About

This project is a simple temperature conversion web application that allows users to convert between Celsius and Fahrenheit. The user inputs a temperature value, selects the desired conversion unit, and clicks the submit button to see the converted result.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published