Photo AI

12. ScotDance is a dance school which provides classes for children - Scottish Highers Computing Science - Question 12 - 2019

Question icon

Question 12

12.-ScotDance-is-a-dance-school-which-provides-classes-for-children-Scottish Highers Computing Science-Question 12-2019.png

12. ScotDance is a dance school which provides classes for children. A website is being created to display information about the dance school and to allow people to ... show full transcript

Worked Solution & Example Answer:12. ScotDance is a dance school which provides classes for children - Scottish Highers Computing Science - Question 12 - 2019

Step 1

Write the new CSS rules required to style both the header and main elements in the most efficient way.

96%

114 rated

Answer

To efficiently style both the header and main elements, CSS grouping selectors can be used. The CSS rule can be written as follows:

header, main {  
  background-color: white;  
  margin-top: 20px;  
  margin-bottom: 20px;  
}

header {  
  height: 390px;  
}

Step 2

Using this information, draw a wireframe design for the form on the Studio Hire web page.

99%

104 rated

Answer

The wireframe design would include form fields for:

  • Name (Text Input)
  • Mobile number (Text Input)
  • Date required (Date Picker)
  • Session (Dropdown List with options: Morning, Afternoon, Evening)
  • Additional information (Textarea with a 400 character limit)
  • Submit button.

This design visually aligns the elements vertically, ensuring clarity in input areas.

Step 3

State the type of validation used when inputting the 'Name'.

96%

101 rated

Answer

The type of validation used when inputting the 'Name' is a presence check, ensuring that the name field is not left empty.

Step 4

Re-write the code so that the number of days entered is restricted to between 1 and 7 inclusive.

98%

120 rated

Answer

The updated code should specify the minimum and maximum attributes as follows:

<input type="number" name="days" size="3" min="1" max="7">

Step 5

State the change required to the HTML code to ensure that most email addresses can be entered on the form.

97%

117 rated

Answer

To ensure that most email addresses can be accepted, the 'maxlength' attribute should be defined with an appropriate length, such as 254 characters. The updated line will look like this:

<input type="text" name="email" size="45" maxlength="254" required>

Step 6

Describe two reasons for using a dropdown list rather than radio buttons on a form.

97%

121 rated

Answer

  1. Space Efficiency: Dropdown lists occupy less space on the form compared to radio buttons, especially when there are multiple options.
  2. User Experience: Dropdowns can be easier to navigate when there are many choices, as they minimize visual clutter and allow for quicker selection.

Step 7

State one problem that may be identified when testing compatibility.

96%

114 rated

Answer

One problem that may be identified during compatibility testing is inconsistent display of the website across different browsers, which can lead to layout issues or elements being misaligned.

Join the Scottish Highers students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;