All subjects · Information Technology · WIT12 3 hour practical exam on web development with HTML, CSS and JavaScript
Styling text, fonts, links, lists, tables, forms, images, backgrounds and borders
Edexcel IAL Information Technology · WIT12 3 hour practical exam on web development with HTML, CSS and JavaScript
The specification expects you to style each kind of element, and to use background images, gradients, CSS sprites and borders (spec 8.2.4 and 8.2.5). These are exactly the properties the coding questions ask for.
Text and fonts
body {
font-family: "Open Sans", Arial, sans-serif;
font-size: 1rem;
line-height: 1.5;
}
h1 {
font-weight: bold;
text-align: center;
text-transform: uppercase;
letter-spacing: 2px;
}
.quote {
font-style: italic;
text-indent: 30px;
}
.note {
text-decoration: underline;
text-shadow: 1px 1px 2px grey;
}font-family lists fonts in order of preference and ends with a generic family (serif, sans-serif, monospace) as a fallback. Font names with spaces go in quotes. CSS uses US spelling: text-align: center; and color. Writing 'centre' or 'colour' does nothing, and Pearson's 2025 report noted marks lost for 'centre'. Use CSS, not HTML tags, for visual effects such as underlining.
Links, lists and tables
a:link { color: #0055aa; }
a:visited { color: #663399; }
a:hover, a:focus { color: white; background-color: #0055aa; }
a:active { color: red; }
nav ul {
list-style-type: none;
padding: 0;
}
ol.steps { list-style-type: upper-roman; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #999; padding: 8px; }
tr:nth-child(even) { background-color: #f2f2f2; }Link states should be written in the order link, visited, hover, active (remember 'LoVe HAte'), because later rules win. border-collapse: collapse joins the borders of neighbouring cells into single lines.
Forms and images
input[type="text"], textarea {
width: 100%;
padding: 8px;
border: 2px solid #ccc;
border-radius: 4px;
}
input:focus { border-color: #0055aa; }
img.round {
width: 200px;
height: 200px;
border-radius: 50%;
float: right;
margin: 0 0 10px 10px;
}border-radius: 50% turns a square image into a circle (an oval if it is not square). The shorthand margin: 0 0 10px 10px means top, right, bottom, left, clockwise from the top.
Backgrounds, sprites and borders (8.2.5)
.hero {
background-image: url("../images/beach.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.icon {
width: 32px;
height: 32px;
background-image: url("../images/icons.png");
background-position: -32px 0;
}
.box {
border: 3px dashed black;
border-top: 5px solid navy;
}The border shorthand is width, style and colour. The style (solid, dashed, dotted, double) is required: without it no border is drawn, a common reason for lost marks.
A CSS sprite is one image file holding several icons. Each element shows a different part by changing background-position, so the browser downloads one file instead of many, which makes pages load faster.
Worked example
Write CSS that gives every image with class photo a 3-pixel solid black border, a size of 200 by 200 pixels and rounded corners of 10 pixels.
- Select by class: .photo or img.photo.
- Border shorthand needs width, style and colour.
- width and height in px; border-radius for the corners.
Answer: ```css img.photo { width: 200px; height: 200px; border: 3px solid black; border-radius: 10px; } ```
Check yourself
- A student writes `border: 2px black;` but no border appears. Why?
- Borders need a width in em
- The border style, such as solid, is missing
- The colour must be written in hexadecimal
- Borders only work on images
Show answer
The border style, such as solid, is missing. The border style is required; without it the style is none.
- Which declaration centres the text in a heading?
- text-align: centre;
- align: center;
- text-align: middle;
- text-align: center;
Show answer
text-align: center;. CSS uses US spelling: center.
- What is the main benefit of a CSS sprite?
- Images become vector graphics
- Several images are downloaded as one file, reducing the number of requests
- Images get alt text automatically
- Images animate without JavaScript
Show answer
Several images are downloaded as one file, reducing the number of requests. One file for many icons means fewer HTTP requests and faster loading.
- Which declaration makes a square image appear as a circle?
- border-style: circle;
- shape: circle;
- border-radius: 50%;
- border-radius: 0;
Show answer
border-radius: 50%;. border-radius: 50% rounds each corner by half the width.
- Write the declaration that removes the bullet points from a list. Include the colon and semicolon.
Show answer
list-style-type: none;. list-style-type: none removes the markers (list-style: none also works).
- What does `border-collapse: collapse;` do to a table?
- Hides the table
- Removes all the borders
- Joins the borders of neighbouring cells into single lines
- Makes the table fill the screen
Show answer
Joins the borders of neighbouring cells into single lines. Without it, each cell has its own border, giving double lines.
- Why does a font-family list end with a generic family such as sans-serif?
- So the browser still uses a similar font if the named fonts are unavailable
- Generic fonts load faster than named fonts
- It makes the text bold
- It is required for the rule to be valid
Show answer
So the browser still uses a similar font if the named fonts are unavailable. If none of the named fonts is installed or downloaded, the browser picks its own font of that generic type.
- What does `margin: 10px 20px 30px 40px;` set as the left margin?
- 10px
- 40px
- 20px
- 30px
Show answer
40px. Four values go clockwise from the top: top, right, bottom, left.
Sources
- Pearson Edexcel International Advanced Subsidiary/Advanced Level in Information Technology specification (first teaching 2018), Unit 2 Topics 7 to 11
- Pearson qualifications: Edexcel International Advanced Level Information Technology (2018)
- Pearson WIT12/01 examiner report, June 2025 series
- Pearson WIT12/01 examiner report, June 2023 series
Last updated 8 November 2026. Spotted a mistake? Tell us.