
Exercise 3 – XHTML and JavaScript
Using XHTML and JavaScript you have create a web page that allows users to choose the colour and design of a sofa (see figure 1).
Figure 1: Sofa personalisation web page
The document begins with a heading level 4 (Choose the colour you would like:), which is followed by a group of 4 radio buttons, labelled Red, Blue, Orange and Green. Whenever a button is selected by the user, an alert message must be produced stating the chosen colour (see figure 2).
Figure 2: A message is displayed in response to selecting a radio button
Then the document contains another heading level 4 (Choose the design you would like:), which is followed by 3 buttons. When clicked each button changes the image which is displayed below. For example, when the “Design 2” button is pressed, the image changes to show the second sofa design (see figure 3).
Figure 3: the “Design 2” button is pressed
Additionally there is a text box above the image, which displays the currently chosen design (e.g. “This is Design 2”). By default the fist design is shown by the image and the textbox (see figure 1).
Finally there is a Submit button with label “Submit Request” (Note: the submit button does not need to do anything for this exercise).

Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 4 images

- Whether or whether a control appears on the page depends on its attribute at runtime, just as it does for other controls.arrow_forwardDuring runtime, the attribute of a control, like the attribute of other controls, has an effect on whether or not the control is shown on the page.arrow_forwardA Label control has a property that may be used to alter the look of the text shown.arrow_forward
- AndroidStudio - A style is an XML resource that contains attributes of how a widget should look and behave. Multiple choice a) true b) falsearrow_forwardWhether or whether a control is shown on the page is determined by its runtime property, just as it is with other controls.arrow_forwardDuring runtime, the visibility of a control on the form is determined by the control's attributes.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





