Photo AI

Bailey's Dog Kennels is developing a website - Scottish Highers Computing Science - Question 16 - 2019

Question icon

Question 16

Bailey's-Dog-Kennels-is-developing-a-website-Scottish Highers Computing Science-Question 16-2019.png

Bailey's Dog Kennels is developing a website. The website will have a multi-level structure, consisting of a home page with a horizontal navigational bar that links ... show full transcript

Worked Solution & Example Answer:Bailey's Dog Kennels is developing a website - Scottish Highers Computing Science - Question 16 - 2019

Step 1

Design a multi-level structure for this website.

96%

114 rated

Answer

The multi-level structure for Bailey's Dog Kennels website would encompass the following top-level pages:

  • Home Page
  • Kennels
  • Grooming
    • Treatments
    • Costs
    • Photos
  • Gallery
  • Contact Us

Step 2

Complete the CSS below to style the header.

99%

104 rated

Answer

header{
	background-color:lightgrey;  
	padding:0px;  
	height:90px;  
	width:130px;
}

h1{
	float:right;
	margin-right:30px;  
	margin-top:30px;  
	color:white;  
	display:inline;
}

Step 3

Explain why descendant selectors are used here.

96%

101 rated

Answer

Descendant selectors are used to apply styles in a hierarchical manner, ensuring that the styles are specifically targeted to the elements nested within certain parent elements. By doing this, it maintains clarity in the styling and organization of the CSS, allowing for consistent formatting across related elements.

Step 4

Describe how the navigational bar changes when the pointer is moved over one of the hyperlinks.

98%

120 rated

Answer

When the pointer is moved over one of the hyperlinks, the background color of that specific link changes to black, and the text color changes to white. This visually indicates to users that the hyperlink is interactive and enhances user experience.

Step 5

Identify the line of code that allows this to happen.

97%

117 rated

Answer

The line of code that allows this interaction is:

nav a:hover{
	background-color:black;  
	color:white;
}

Step 6

Write the new function to display the original image when the mouse is moved away from the image.

97%

121 rated

Answer

function mouseaway(my_image) {
	my_image.src = 'images/Bailey1.png';
}

Step 7

Re-write the appropriate HTML element to call the function created in part (i) when the mouse is moved away from the image.

96%

114 rated

Answer

<img id='dogImage' src='images/Bailey1.png' onmouseover='mouseOver(this)' onmouseout='mouseaway(this)'>

Step 8

Describe one environmental benefit to using a heating system which is intelligent.

99%

104 rated

Answer

One environmental benefit of using an intelligent heating system is its ability to optimize energy consumption based on real-time conditions, which reduces waste and lowers carbon emissions. This leads to a more sustainable energy use while maintaining comfortable temperatures.

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

;