This front end development test is intended to cover a broad range of skills required to deliver high quality government digital services. This includes:
- Accessibility
- HTML
- CSS
- jQuery and JavaScript
- Other best practices
Candidates are asked to perform this test remotely and submit their responses to the sender.
- Describe how you would implement the 'I am looking for...' tab panel that appears on justice.gov.uk.
Focus specifically on not disadvantaging users of:
- Assistive technology
- Older/less featured browsers
Your answer should describe both how you would do this and describe what specific features of HTML, ARIA, CSS and JavaScript you would use to achieve this.
- How would you implement a version of GOV.UK browse for a new digital service.
Your answer should:
- identify, so far as possible, what GOV.UK have done to ensure accessibility and progressive enhancement
- assume you're approaching this from scratch
-
An exercise using jQuery is provided in test-jquery.html.
-
If you saw this in a Pull Request, what would your advice be:
Array.prototype.split = function(i) { // Adds split to all arrays
return [this.slice(0, i), this.slice(i)];
};
- What colour would each of the following elements be (Assume each pair of rules are targeting the same element)
h1 {color: red;}
body h1 {color: green;}
h2.grape {color: purple;}
h2 {color: silver;}
html > body table tr[id="totals"] td ul > li {color: maroon;} // li has an id of answer
li#answer {color: navy;}
- Given the HTML below, write a CSS3 rule that will give prepend the text ‘Tel:’ to the third list item. You are not able to amend the HTML to achieve this.
<body>
<ul>
<li>JavaScript</li>
<li>HTML</li>
<li>Ruby</li>
<li>Python</li>
</ul>
</body>
- What changes would you suggest to make these CSS rules ready for a production environment?
<!DOCTYPE html>
<html>
<head>
<meta charset=utf‐8 />
<title>Test</title>
<style type="text/css">
#one { background‐color: #000; }
.three { color: rgba(255,255,255,1); }
div > span { border: 3px solid green; }
</style>
</head>
<body>
<div id="one">
<div class="three">
Hello <span>World!</span>
</div>
</div>
</body>
</html>
- How would you style all links to 'gov.uk' domains differently to other links in an application?
- A test using HTML5 is provided in test-html.html within this repository. Please amend the code and submit your changes as a pull request.
-
What are the key things you need to test for on the front-end of digital services?
-
How do you approach testing the front end of applications?
- Is this good quality code? Provide a brief justification of your answer.
<button
type="button"
onclick="document.getElementById('xyz').style.color='red';">
Click Me
</button>
-
Describe three ways to decrease page load time (answers may include perceived or actual load times)
-
Why is it generally a good idea to position CSS
<link>
s between<head></head>
and JS<script>
s just before</body>
? Do you know any exceptions?