Web Development: Unit Exam B
Instructions
- Time allowed
- 25 minutes
- Total marks
- 25
- Calculator
- No calculator is permitted.
- Answer all the questions.
Questions
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.