March 2019
Intermediate to advanced
208 pages
5h 11m
English
We’ll be using some of the code we developed in Chapter 3, Creating Your Own Data Types to create a web page that asks for a quantity of shirts and a shirt size. When you click the Calculate button, it’ll display the total price. This is what the page looks like:

And here’s the HTML, which we’ve put in the src directory of our project. Each field we’re interested in has its own id attribute:
| | <!DOCTYPE html> |
| | <html> |
| | <head> |
| | <title>Shirts On Line</title> |
| | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | </head> |
| | |
| | <body> |
| | <h1>Shirts On Line</h1> |
| | |
| |
Read now
Unlock full access