Web App Development 2 - 2015 - Section B (HTML, CSS, JS, etc)

1. CSS stands for:

2. Which selector applies to all tags with a class called blue and are paragraph elements:

3. Which selector applies to all tags with the ID called blue and are div elements:

4. The following code applies to the following question:
p {
background-color: yellow;
border: 1px solid black;
}
p .blue {
background-color: blue;
}

Given the HTML code shown below how would the element be rendered:
<p id=“blue”>Hello World

5. The following code applies to the following question:
p {
background-color: yellow;
border: 1px solid black;
}
p .blue {
background-color: blue;
}

Given the HTML code shown below how would the element be rendered:
<p style=“background-color: green”>Goodbye World

6. By referencing the Javascript as follows in the HTML is an example of:
<head>
<link type="text/javascript" href="broken.js">
</head>

7. Assume that user has visited the site on previous occasions, and within the HTML on the site a piece of Javascript is referenced as follows:
<head>
<link type="text/javascript" href="notbroken.js">
</head>
Select the option, where all apply:

8. Which line of JQuery code selects the element with a class brown and assigns an event to when the element is clicked:

9. Which line of code selects a paragraph element, and assigns a hover event to it, such that on hover the text turns blue, and off hover it turns red.

10. When writing JQuery code, it should be encapsulated by: