Question: Make a folder named a2-firstname-lastname . Make a HTML file and save it with the name index.html within the a2-firstname-lastname folder. The tag should read:
Make a folder named a2-firstname-lastname.
Make a HTML file and save it with the name index.html within the a2-firstname-lastname folder.
The
Display the following information in
tag as heading in the index.html page:
Assignment 2
Add a
tag after the above heading.
Create a simple unit conversion application using JavaScript.
Implement the following unit conversions:
From Celsius to Fahrenheit and vice versa.
From Feet to Meters and vice versa.
From Inches to Centimeters and vice versa.
From Pounds to Kilograms and vice versa.
Display a single textbox, and eight buttons for each conversion.
Clicking on a button calls the respective JavaScript function to perform the conversion.
Make use of unobtrusive JavaScript i.e. functions based.
Display the result in a
tag below the buttons.
The result should be in two decimal places, along with the units.
Dont use any message boxes such as alert() or prompt().
Add a button that clears the content of the textbox and the
tag, and sets the cursor in the textbox. (Textbox gets the focus).
All the JavaScript code should be in a separate file, saved within the scripts folder.
Design the layout and appearance of the HTML page by using CSS.
CSS should be used to provide a better layout. Use professional design and background, no loud colorful backgrounds please.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
