Skip to content
Pixel
العربية

Textbook answers: 3-3 Fundamentals of Frontend Technology

Suggested answers by the site team, the book has no answer key.

Try 1

1What is the four-letter abbreviation for the technology that defines the structure (skeleton) of a web page?

Show answer

HTML.

HTML is the four-letter abbreviation for the technology that defines a web page's structure: headings, paragraphs, images and links.

2What is the three-letter abbreviation for the technology that specifies the appearance of a web page (colors, layout, size, etc.)?

Show answer

CSS.

CSS is the three-letter abbreviation for the technology that defines a page's appearance: colours, layout, size and fonts.

3What is the term for the technology that adds behavior and interactivity to a web page?

Show answer

JavaScript.

JavaScript adds behaviour and interactivity, such as responding to button presses and updating only part of the screen.

4What is the term for the design concept in which the layout is automatically adjusted according to different screen sizes?

Show answer

Responsive design.

Responsive design is the design concept in which the layout adjusts automatically to different screen sizes, such as computers, phones and tablets.

Try 2

(1)From the following options (A–D), choose the one that is NOT an appropriate benefit of using semantic HTML.

  • A - Screen reader software can correctly understand the structure of the page.
  • B - Search engines can more easily understand the content of a web page.
  • C - The display speed of a web page necessarily becomes faster.
  • D - Information becomes easier to convey to users with visual impairments.
Show answer

C: The web page necessarily displays faster.

The book's benefits of semantic HTML are helping screen readers understand the structure (A, D) and helping search engines understand the content (B). Necessarily faster display is not one of them.

(2)From the following options (A–D), choose the one that most appropriately describes a framework.

  • A - A language for defining the structure of a web page
  • B - A structure for making web application development more efficient
  • C - A technology for encrypting data and sending it safely
  • D - A design concept for supporting different screen sizes
Show answer

B: A structure that makes web application development more efficient.

A framework provides common functions and components in advance. A describes HTML, C describes HTTPS from the previous lesson, and D describes responsive design.

Exercise 1

1Cover the Point! section with a red plastic sheet and quiz yourself in your notebook in numerical order.

Show answer

Cover the Point! section (numbered points 1–4), answer the Try questions from memory, then uncover it and check your answers.

Focus on the trio (HTML structure, CSS appearance, JavaScript behaviour), then the two benefits of semantic HTML, and the definitions of responsive design and a framework. For any question you missed, write the correct idea in your own words.

Note: Arabic edition: The English edition says to cover the Point! section with a red plastic sheet; the Arabic edition says to answer without looking at the Point! section. The idea is the same.

Exercise 2

1Read the following passage and answer each question.
Web pages are mainly composed of three technologies: ( a ), which defines the structure of the page; ( b ), which specifies the appearance; and ( c ), which adds behavior and interactivity. The concept of adjusting the layout according to different screen sizes such as PCs, smartphones, and tablets is called ( d ).
1. Fill in the blanks (a)–(d).

Show answer

(1) HTML, (2) CSS, (3) JavaScript, (4) responsive design.

HTML defines structure, CSS styles appearance, JavaScript adds behaviour and interaction, and adapting the layout to screen sizes is responsive design.

Note: Arabic edition: The English blanks are (a)–(d) and say pages are mainly composed of the three technologies; the Arabic passage says many pages use HTML and can use CSS and JavaScript. The answers are the same.

Exercise 3

(1)For each of tasks (a–f), indicate which technology is used to achieve it: A HTML, B CSS, C JavaScript.
a Describing the structure of headings and paragraphs
b Changing the color and size of text
c Updating part of the screen when a button is pressed
d Placing images and links
e Setting the background color of the entire page
f Validating the contents entered into a form

  • A - HTML
  • B - CSS
  • C - JavaScript
Show answer

1 A (HTML), 2 B (CSS), 3 C (JavaScript), 4 A (HTML), 5 B (CSS), 6 C (JavaScript).

Heading and paragraph structure and placing images and links are structure (HTML); text colour and size and the background colour are appearance (CSS); updating part of the screen and validating form input are behaviour (JavaScript). Item 6 is medium confidence: the book intends JavaScript, though HTML itself also offers some simple built-in validation attributes.

This question allows more than one reading

(2)From the following options (A–D), choose the one that most appropriately describes the reason responsive design is needed.

  • A - To improve the display speed of websites
  • B - Because websites are accessed from various devices such as PCs, smartphones, and tablets
  • C - To raise rankings in search engines
  • D - To add behavior to web pages
Show answer

B: Because websites are accessed from a variety of devices such as computers, smartphones and tablets.

Responsive design exists so the page adapts to different screen sizes. A and C are not its main aim, and D is JavaScript's role.

Exam-style question

Explain how HTML, CSS, and JavaScript each contribute to a library page that lists books, is styled, and filters the results as the user types. Refer to: structure, appearance, behavior. [6]

Model answer

The three technologies work together on the library page, each with a different role:
• HTML defines the structure: it places the page title, the search box and the book list itself (each book's name, cover and link). [1]
• For example, each book is an item in the list and the title is a main-heading element; without HTML there is no content at all. [1]
• CSS defines the appearance: the page colours, the font type and size, the spacing, and arranging the books in cards or columns. [1]
• For example, giving the header the library's colour and showing the books in a neat grid, without adding a single new book. [1]
• JavaScript adds the behaviour: when the user types in the search box, it filters the book list and shows only the matches. [1]
• It does this by updating only the list area, without reloading the whole page. In short: HTML is structure, CSS is appearance, JavaScript is behaviour. [1]

Back to the lessonStart exercises