0% found this document useful (0 votes)
13 views3 pages

Tawara Balloon Safaris Web Page Guide

The document outlines the requirements for creating a web page for Tawara Balloon Safaris, including specific layout and content instructions using a table structure. It specifies the use of images, video, text styling, hyperlinks, and a stylesheet that adheres to certain formatting rules. Additionally, it emphasizes the need for compatibility across browsers and the inclusion of alternative text for images.

Uploaded by

Lucas Looi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Tawara Balloon Safaris Web Page Guide

The document outlines the requirements for creating a web page for Tawara Balloon Safaris, including specific layout and content instructions using a table structure. It specifies the use of images, video, text styling, hyperlinks, and a stylesheet that adheres to certain formatting rules. Additionally, it emphasizes the need for compatibility across browsers and the inclusion of alternative text for images.

Uploaded by

Lucas Looi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

4

Task 3 – Web Page

You are going to create a web page for Tawara Balloon Safaris. The web page and stylesheet must
work in any browser. Make sure that your stylesheet contains no HTML. Make sure your HTML and
stylesheet are as efficient as possible.

2 Create, in your j2231 folder, a web page called [Link]

This web page must be created using a single table and must work in all browsers. The table must
fit 90% of the width and height of the browser window. The table must have a structure as shown
in this diagram:

A Width = 70% B Width = 30%

C Width = 70%

D Height = 10%

E Width = 35% F Width = 35%

G Height = 10%

Each table cell is identified with a letter. Some dimensions are shown. These must be set as
percentage values. Do not set the height of cells A, B, C, E or F.

The cell contents shown in the diagram must not appear on your final web page.

Table borders must appear on the final web page.


[8]

3 Set the title of the web page to Tawara Balloon Safaris [1]

4 Set, in the HTML, the name of the default target window to _new [1]

© UCLES 2022 0417/31/M/J/22


5

5 Place in cell:

• A the image [Link]


• B the balloon image saved in step 1
• C a video tag to display j31balloon.mp4 so that it fits the width of this cell. Display an
automated text-based error message if the browser does not support this video type
• E the image [Link]
• F the image [Link]
[9]

6 Place inline style attributes into the HTML so that each image, with its aspect ratio maintained, fits
the width of the table cell. [1]

7 Add appropriate alternate text to all still images. [1]

8 Place in cell D the text from the file [Link]

Set this text as style h2


[2]

9 Enter in cell G the text:

Click on the images above to enjoy the wonders of Kenya and Tanzania.

Web page last edited by: followed by a space, your name, centre number and candidate number.

Display the text you have entered as two paragraphs.

Set all text in cell G as style h3


[4]

10 Create a hyperlink from the image [Link] to open the web page [Link] [2]

11 Create a hyperlink from the image [Link] to open the web page [Link] in the
browser window that is currently in use. [3]

12 Rename the stylesheet [Link] to j31stylesheet_ followed by your centre number_


candidate number, for example, j31stylesheet_ZZ999_9999

Make sure this stylesheet is still in cascading stylesheet file format.

Attach this stylesheet to your web page.


[2]

© UCLES 2022 0417/31/M/J/22 [Turn over


6

A trainee has attempted to create the stylesheet for this website. This file contains a number of errors
and omissions. All colour codes must be displayed in hexadecimal. Your stylesheet must not contain
HTML or scripting language.

13 Open and edit the stylesheet you saved in step 12 to meet the following specifications:

Set the background for the web page so that it has a colour with a:

• blue component of d2
• red component of 74
• green component of ab

Set the font for styles h1, h2 and h3 so that the browser selects and displays the font Times CY.
If this font is not available, the browser selects and displays the font Times New Roman. If
neither of these fonts are available, the browser must display its default serif font. Set the text in
styles h1, h2 and h3 to black.

Set style h1 so the text is centre aligned with a 16-point font.

Set style h2 so the text is fully justified with a 12-point font.

Set style h3 so the text is left aligned with a 10-point font.

Set each table margin individually to 5% of the width and height of the browser window.

Set all table cell padding to 10 pixels.

Set all table borders and gridlines to be:

• visible
• separated
• solid
• black
• 1 pixel wide.

Set the spaces between the borders of all table elements to 10 pixels.

Correct and edit the comment at the start of the stylesheet to contain your name, centre number
and candidate number.

Save this stylesheet in your j2231 folder.

Take a screenshot to show the file name and all contents of your stylesheet and place this in your
Evidence Document. Make sure the file name and all contents are clearly visible.
[27]

EVIDENCE 2
A screenshot of your stylesheet with the required information clearly visible.

© UCLES 2022 0417/31/M/J/22

Common questions

Powered by AI

To ensure web page compatibility across all browsers, use standard HTML and CSS without browser-specific features or deprecated elements. Create the page using a single table and fit its size to 90% of the browser window's width and height. Ensure stylesheets are in CSS format, without HTML, and utilize valid HTML. Set dimensions using percentages and maintain image aspect ratios with inline CSS styles. Attach the stylesheet with correctly specified colors, using hexadecimal, and define fonts correctly to offer fallbacks. For instance, for text in styles like h1, h2, and h3, prioritize Times CY, then Times New Roman, and default to a serif font if unavailable .

Improve accessibility and user experience by providing appropriate alternate text for all images on a web page. This involves setting 'alt' attributes in the image tags that concisely describe the content or purpose of each image, allowing screen readers to convey this information to visually impaired users. For example, when placing images like j31serengeti.jpg or j31maasai.jpg in respective table cells, ensure alternate text is descriptive and contextually relevant .

Implement hyperlinks by specifying target attributes in anchor tags. To open a link in a new window or tab, set the target attribute to '_blank'. Conversely, open links in the current window by omitting the target or setting it to '_self'. For example, create a hyperlink from an image (e.g., j31maasai.jpg) with target='_blank' to open a page in a new context or use target='_self' for j31serengeti.jpg to open in the same context .

Approach updating a stylesheet with multiple errors by first identifying and correcting errors, such as incorrect or missing attributes. Ensure all color codes are in hexadecimal and verify all font specifications include proper fallbacks (e.g., Times CY, Times New Roman, default serif). Check layout properties to match design specifications, like justified text for h2 style or center-aligned text for h1. Adjust table properties to enforce consistent spacing and border definitions. Document all changes with a comment header including personal identifying info like name and candidate number to track updates .

Ensure table borders and gridlines are properly displayed by setting CSS properties for visibility and style. Define borders as visible and solid, using a single pixel black line. Set spaces between borders of all table elements to 10 pixels, ensuring they meet accessibility and aesthetic standards. Specify border-collapse or border-spacing properties as separated, ensuring proper distinction between individual cell borders .

Maintain the aspect ratio of images in a table-based web design by using inline style attributes explicitly within the HTML. Apply CSS styles that set the image width according to the table cell size. For each image, ensure it fits the width of the cell while keeping its aspect ratio intact, typically by setting width to 100% and height to auto in the inline style .

Best practices for naming and organizing stylesheets include using descriptive and consistent naming conventions that incorporate project-specific details, such as naming a stylesheet 'j31stylesheet_centreNumber_candidateNumber'. This helps track customization according to developer or project specifications and ensures file names are unique. Place stylesheets in well-organized directories, using subfolders to separate CSS, scripts, and assets. Always separate HTML structure from CSS for styling, ensuring each stylesheet adheres to standard CSS formatting without embedded HTML. Use comments to provide metadata at the start of each file, including author and version information for traceability .

CSS manages layout dimensions and spacing effectively by using properties such as margin, padding, and borders. Set table margins individually, specifying them as percentage values relative to the browser window, e.g., 5% width and height. Use padding to control the space within table cells, for example, setting all table cell padding to 10 pixels. Ensure borders are styled with properties like border-style: solid; and specify exact widths and colors, such as a black 1-pixel border. Adjust inter-element spacing with border-spacing properties to maintain a consistent layout .

Removing HTML elements from stylesheets is crucial for separating content from presentation, enhancing maintainability, and ensuring compliance with best practices in web development. HTML should focus on the structure and semantics, while CSS should handle styling. This separation makes the codebase more readable and manageable, allowing designers to make stylistic changes without altering HTML. This approach supports cross-browser compatibility by ensuring that stylesheets are properly parsed, as certain browser inconsistencies can arise from improperly structured files .

When setting font and background colors in a webpage stylesheet, ensure readability by selecting contrasting colors. For example, setting the background color requires specifying precise color components in hexadecimal (red component of 74, green ab, blue d2). Ensure text color enhances readability by setting styles like h1, h2, and h3 to black. Using a logical fallback system for fonts improves accessibility; set styles like h1, h2, h3 to use Times CY, Times New Roman, then default default serif if none are available . This ensures cross-browser compatibility and maintains a consistent user experience.

You might also like