Revision Notes
OxfordAQA IGCSE Computer Science (9210): Key concepts of web page design – Revision Notes
Revision notes for OxfordAQA IGCSE Computer Science 9210 section 3.8.1: HTML and CSS roles, server-side and client-side scripting, comparisons and a self-test.
- Subject
- Computer Science
- Level
- IGCSE
- Topic
- Topic 8: Web page design
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to OxfordAQA IGCSE Computer Science (9210), For teaching from September 2017, exams from May/June 2019. Official specification .
Syllabus page (what it covers and how it is assessed): OxfordAQA IGCSE Computer Science.
Syllabus points this page covers
9210
- 3.8.1 Key concepts
This page covers 1 of the 2 subtopics in topic 8, Web page design.
Found an error? Report a correction.
Need help with this topic? Request a free trial class for IGCSE Computer Science (9210).
Condensed notes for section 3.8.1 Key concepts of OxfordAQA International GCSE Computer Science (9210). Explanations are in the Key concepts study guide.
What the specification asks
- Know that web pages can be constructed using HTML and CSS.
- Know that HTML creates the structure of a web page and CSS changes the style.
- Understand that server-side scripting languages can be used on a web server for dynamic generation of web pages.
- Understand that client-side scripting languages can be used to add additional functionality to web pages.
How a page reaches the user
- The browser (the client) sends a request to the web server.
- The server finds or builds the page and sends it back (the response).
- The browser displays the page.
HTML and CSS
| HTML | CSS | |
|---|---|---|
| Stands for | Hypertext Markup Language | Cascading Style Sheets |
| Job | Creates the structure of the page | Changes the style (colours, fonts, alignment) |
| Method | Tags mark up what each part is | Style rules say how each part looks |
| Example | A heading, a paragraph, a list | Headings blue and centred |
- HTML is a markup language, not a programming language.
- Remember: HTML says what it is; CSS says what it looks like.
- Benefits of keeping them separate: consistency; easier changes; cleaner HTML; helps accessibility.
Static and dynamic pages
| Page type | Meaning |
|---|---|
| Static | A ready-made file that every visitor receives unchanged |
| Dynamic | Generated when requested, so its content can differ between visitors or visits |
Server-side scripting
- A program that runs on the web server when the page is requested.
- It generates the HTML; the browser receives the finished page.
- The user cannot see the script.
- Uses: database look-ups, personalised content after login, processing forms, showing the latest data.
| Advantages | Disadvantages |
|---|---|
| More secure: code and data stay on the server | The server does the work for every request |
| Can use the server’s database | A trip to the server is needed for each action |
| Works in every browser (only HTML is sent) | Can be slow when many users make requests |
Client-side scripting
- A program sent to the browser and run on the user’s computer.
- Adds extra functionality: checking forms, menus, interactive content, animation, updating part of a page.
- The user can see the script.
| Advantages | Disadvantages |
|---|---|
| Fast response, with no wait for the server | Can be read, changed or switched off |
| Reduces server load | Depends on the browser and settings |
| More interactive pages | Cannot be trusted alone for security |
Comparison
| Server-side | Client-side | |
|---|---|---|
| Runs on | The web server | The user’s browser |
| Browser receives | The finished HTML | The page plus the script |
| Purpose | Dynamic generation of pages | Extra functionality in the page |
| Visible to user | No | Yes |
| Example | Show a user’s orders from a database | Check an email address as it is typed |
They are often used together: a client-side check for quick feedback, then a server-side check and processing.
Which type to choose
| Task | Type | Reason |
|---|---|---|
| Show a customer’s saved basket | Server-side | Data held on the server |
| Warn about an empty box at once | Client-side | Immediate feedback |
| Check that a username is unused | Server-side | Needs the server’s list of users |
| Enlarge an image on mouse-over | Client-side | Happens in the browser |
Model answers
Explain the difference between server-side and client-side scripting. [4 marks] A server-side script runs on the web server and generates the HTML page that is sent to the browser, for example using data from a database. A client-side script is sent to the browser and runs on the user’s computer, adding functionality such as checking a form or an interactive menu.
State one reason for using both. [1 mark] The client-side script gives an instant response, and the server-side script checks and processes the data securely.
Exam traps
- HTML called a programming language. It is a markup language.
- CSS “makes the page”. CSS controls appearance.
- Structure and style mixed up.
- Server-side script “runs in the browser”. It runs on the server.
- Client-side called “always better”. Security checks need the server.
- User “sees” the server-side script. They only see the page it produced.
- Dynamic as “moving”. It means generated on request.
- No mention of where the code runs.
Key terms
| Term | Meaning |
|---|---|
| Client | The user’s computer and browser |
| Server | The computer that stores pages and answers requests |
| Browser | Software that requests and displays web pages |
| Markup | Tags added to content to describe its structure |
| Script | A short program that runs on the server or in the browser |
Self-test
- State what HTML stands for.
- State what CSS is used for.
- State what HTML is used for.
- State where a server-side script runs.
- State where a client-side script runs.
- Give one use of server-side scripting.
- Give one use of client-side scripting.
- State what a dynamic web page is.
- Explain why a form check done only in the browser is not enough for security.
- State one benefit of keeping style rules apart from the HTML.
Answers:
- Hypertext Markup Language.
- To change the style of a web page, such as colours, fonts and alignment.
- To create the structure of a web page.
- On the web server.
- In the user’s browser.
- For example looking up data in a database to build the page.
- For example checking a form before it is sent, or making a menu interactive.
- A page that is generated when it is requested, so its content can be different each time.
- The user can see, change or switch off the script, so the check must be repeated on the server.
- For example one rule can change the look of every page, or the HTML stays cleaner.
More resources on this topic
Related resources
-
Practice questions
OxfordAQA IGCSE Computer Science: Web Page Design — Practice Questions (9210)
Original practice questions with worked answers on HTML tags, CSS selectors and properties, scripting and HTML5 for OxfordAQA International GCSE 9210.
Computer Science · OxfordAQA · IGCSE
Try questions -
Revision notes
OxfordAQA IGCSE Computer Science: Web Page Design — Revision Notes
Recall notes on HTML structure and tags, CSS type and class selectors, the seven CSS properties, scripting and HTML5 for OxfordAQA International GCSE 9210.
Computer Science · OxfordAQA · IGCSE
Revise topic -
Study guides
OxfordAQA IGCSE Computer Science (9210): Web page design – Study Guide
OxfordAQA International GCSE Computer Science 9210 guide: the HTML tags in the spec, CSS type and class selectors, the seven properties, HTML5 and scripting.
Computer Science · OxfordAQA · IGCSE
Read guide
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.