Web Development: Unit Exam B
Headings, images and alt text, what HTML and CSS each do, reading a CSS rule, linking a stylesheet, selectors and usability.
Instructions
- Time allowed
- 25 minutes
- Total marks
- 25
- Calculator
- No calculator is permitted.
- Answer all the questions.
- The number of marks for each question is shown in brackets. Use it as a guide to how much to write.
- The clock at the top counts down from the real time allowed. When it reaches zero the paper is locked and marked, as it would be collected in the exam hall.
- Read every question to the end before answering. Where a question says tick two boxes, tick exactly two: ticking more than asked scores nothing. Type one word and number answers carefully, because they are marked exactly.
Questions
Answer every question, then finish the paper to have it marked. Marking as you go teaches you far less.
Tick one box.
- LD <h1>
h1 is the top level heading.
- Lcat.jpg
src holds the image file: cat.jpg.
- LA ginger cat asleep
It reads the alt text.
| HTML | CSS | |
|---|---|---|
| Decides what the content of the page is | ||
| Sets colours, fonts and spacing | ||
| Uses tags such as <p> and <a> | ||
| Uses rules such as h1 { color: red; } |
Tick one box in each row.
- LDecides what the content of the page is: HTML
- LSets colours, fonts and spacing: CSS
- LUses tags such as <p> and <a>: HTML
- LUses rules such as h1 { color: red; }: CSS
HTML is the content and structure; CSS is the presentation.
- Lcolor
- L32px
color sets the colour, and the text is 32px.
Tick one box.
- LB <link rel="stylesheet" href="style.css">
A link tag in the head connects the stylesheet.
- LClear and consistent navigation, so users can find pages
- LReadable text and layout, pages that load fast, or a design that works on phones
A clear menu that appears in the same place on every page lets users find what they want quickly. Readable text with good contrast, and a layout that also works on a phone, make it easy to use on any device.
- L</p>
A closing tag has a forward slash: </p>.
Tick one box.
- LC The address of the page the link goes to
href is the destination of the link.
| Element | Class | Id | |
|---|---|---|---|
| p | |||
| .highlight | |||
| #header | |||
| h2 |
Tick one box in each row.
- Lp: Element
- L.highlight: Class
- L#header: Id
- Lh2: Element
Plain tag names select elements, a full stop selects a class and # selects an id.
- LPages can look or behave differently on different screens and browsers
- LSo the layout does not break and everyone can use the site, including on phones
A page can look and behave differently on a phone, a tablet and a laptop, and in different browsers. Testing on each makes sure the layout does not break, so every visitor can use the site.
- L<a href="blog.html">My blog</a>
<a href="blog.html">My blog</a>
Tick one box.
- LA Dark grey text on white
Dark text on a light background gives strong contrast.
Tick one box.
- LD <br>
<br> breaks the line.
Tick one box.
- LA Screen readers and search engines use headings to understand the structure of the page
Real heading tags carry meaning, not just looks.
- L3
Each li is one item.
This is an original Key Stage 3 assessment. Most questions are closed, so the marking is exact, and the written answers are marked against a mark scheme in the same style as a GCSE paper, so the format is familiar long before it counts.