0% found this document useful (0 votes)
32 views6 pages

Web Development Layers and Stylesheet Errors

The document contains a series of questions related to web development layers, stylesheets, and HTML markup, requiring identification of content layers, inline styles, metatags, and common coding mistakes. It also asks for corrections to CSS and HTML code snippets, as well as explanations of the differences between styles and classes. The document serves as an assessment tool for understanding web development concepts and practices.

Uploaded by

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

Web Development Layers and Stylesheet Errors

The document contains a series of questions related to web development layers, stylesheets, and HTML markup, requiring identification of content layers, inline styles, metatags, and common coding mistakes. It also asks for corrections to CSS and HTML code snippets, as well as explanations of the differences between styles and classes. The document serves as an assessment tool for understanding web development concepts and practices.

Uploaded by

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

1.

a. A web page can contain three web development layers. One of these is the
content layer. State one use of the content
layer. ......................................................................................................................
................................................................................................................................
[1]
b. Identify the other two web development layers and give a use for each.
1..............................................................................................................................
Use..........................................................................................................................
................................................................................................................................
2..............................................................................................................................
Use..........................................................................................................................
......................................................................................................................... [4]

2. A web page has an attached stylesheet in the head section and also has an inline style attribute
in the body section. Explain why the inline style attribute is
used. ..................................................................................................................................................
.................................................................................................................................................. ........
.......................................................................................................................................... ................
.................................................................................................................................. [2]
3. Complete each of the following sentences about web development layers. (a) The layer used to
create the structure of a web page is
called ........................................................................................................................................... [1]
[Link] layer used to display and format elements within a web page is
called ........................................................................................................................................... [1]
c. The layer that is a scripting language to control elements within a web page is
called ........................................................................................................................................... [1]
4. A stylesheet for a website can contain both styles and classes.
a. Explain the differences between a style and a
class. ........................................................................................................................................... ......
..................................................................................................................................... .....................
...................................................................................................................... ....................................
....................................................................................................... ...................................................
........................................................................................ ..................................................................
......................................................................... [3]
b. State the web development layer where the stylesheet is
used. ........................................................................................................................................... [1]
5. Metatags can be used in a web page. A metatag can be used to define the viewport settings.
Identify three other items that can be defined in metatags.
a. 1 ........................................................................................................................................
2 ........................................................................................................................................
3 ........................................................................................................................................ [3]
Metatags are used in the HTML of web pages. State the section of the HTML which contains
the metatags.
b. ........................................................................................................................................... [1]
6. In the following section of HTML markup there are a number of mistakes.

<td>

<p>Manta conservation workshops and holidays can be booked through

the Xtreme Adventure Holiday Company or by <a href="[Link]


target="_manta">

clicking here. </p>

<td>

<p><href="[Link] us for details of our

Manta Education Packs or <a href="mailto,tmcp@[Link],subject=Donation by

John>">click on this link<a> to discover how to donate to help us preserve

these disappearing species.</p>

</td>

Identify six mistakes which prevent this from working as intended.

1 ...............................................................................................................................................

..................................................................................................................................................
2 ...............................................................................................................................................

..................................................................................................................................................

3 ...............................................................................................................................................

..................................................................................................................................................

4 ...............................................................................................................................................

..................................................................................................................................................

5 ...............................................................................................................................................

..................................................................................................................................................

6 ...............................................................................................................................................

............................................................................................................................................[6]

7. A student is producing a website for his history course. He has produced the following CSS.
However, he has made some mistakes in the coding.

h1 {color: #ff0000; font-family: "Times New Roman", Times, serif font-size: 30pt; text-weight:
bold; text-align: centre;}
h2 {color: #000000; font-family: Courier, Times, serif; font-size: 14pt; text-decoration:
underlined; text-align: justify;}
body [background-color: #ad88e6;]
table {border-color: #000000; border-style: dot; border width: 3px;}
tbody {background-color: #c6dde8;}

Write down six mistakes that have been made in the CSS and for each, give the correction. Your
answers should be different in each case.
1 ............................................................................................................................................... ........
..........................................................................................................................................
2 ............................................................................................................................................... ........
..........................................................................................................................................
3 ............................................................................................................................................... ........
..........................................................................................................................................
4 ............................................................................................................................................... ........
..........................................................................................................................................
5 ............................................................................................................................................... ........
..........................................................................................................................................
6 ............................................................................................................................................... ........
.................................................................................................................................... [6]

8. You are a student creating a website for your IGCSE ICT revision work. You have produced some

HTML, but have not yet added the logo or merged the cells. You are aiming to produce the following

page.

Part of the markup you have produced is:

...

<table>

<tr>

<td><h1>IGCSE ICT</h1></td>

</tr>

<tr>

<td><h3>Theory</h3></td>

<td><h3>Practical 1</h3></td>

<td><h3>Practical 2</h3></td>
</tr>

<tr>

<td><h3>2 hour<br>Theory exam</h3></td>

<td><h3>2.5 hour<br>Practical exam</h3></td>

<td><h3>2.5 hour<br>Practical exam</h3></td>

</tr>

</table>

Write the HTML that would display the image called “[Link]” as shown in Fig. 1. If the browser

cannot find the image, then the text “Tawara School Logo” will be displayed.

(a)

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

........................................................................................................................................... [5]

The third line of HTML currently shown in Fig. 2 does not produce the title as shown in Fig. 1.

Write the HTML that would produce the title as shown in Fig. 1.

(b)

...........................................................................................................................................

........................................................................................................................................... [2]

9. A teacher is creating a web page in HTML to display on the school’s intranet. All colour codes
must be in hexadecimal. It has the following style sheet attached:
h1 {color: #ff0000; font-family: Times, serif; font-size: 30pt; text-align: center;}

h2 {color: #0000ff; font-family: Times, Helvetica, serif; font-size: 24pt; text-align: center;}
h3 {color: #00ff00; font-family: Times, Helvetica, serif; font-size: 14pt; text-align: justify;}

body {background-color: #ad88e6;} table {border-color: #000000;}

Having tested the web page the teacher needs to make some changes to the style sheet.
Write down the CSS to:
edit style h1 so that the font is Comic Sans or, if not available, Arial or, if this is not available, the
browser’s default sans-serif font.
(a) font-
family: ........................................................................................................................ ......................
..................................................................................................................... [3]
(b) add markup to the table style to set a 3 pixel wide, dashed external border.
table {border-color:
#000000; ........................................................................................... ...............................................
......................................................................................... } [4]
(c) edit style h3 so that the colour is set to black. h3
{color: ........................................................................................................................... ....................
....................................................................................................................... [1]
(d) add markup to the start of style h2 to display the text as bold.
h2
{.................................................................................................................................... .....................
...................................................................................................................... [2]

Common questions

Powered by AI

Common mistakes include improper nesting of tags, incorrect attribute syntax, and incorrect closing of tags. Corrections involve ensuring all opening tags have corresponding closing tags, properly quoting attribute values, and using correct syntax for HTML attributes .

<img src='Logo.jpg' alt='Tawara School Logo'> is the HTML code to display an image with alternative text. The alt attribute is vital for accessibility, providing text descriptions for visually impaired users and context if the image fails to load .

Hexadecimal values provide precise control over color choice and are widely supported across browsers, ensuring consistent visual representation regardless of platform or device .

The content layer is used to manage and organize the data and information that is displayed on a web page, providing the essential structure and content for the site .

The two other web development layers are the presentation layer, which is used to display and format elements within a web page, and the behavior layer, which uses scripting to control elements within a web page .

'border-style' specifies the style of the border, and 'border-width' determines its thickness. In the source example, you would implement these by adding 'border-width: 3px;' and 'border-style: dashed;' within the table CSS rule to ensure proper visual rendering .

Styles are singular attributes applied directly to elements, while classes are reusable sets of styles that can be applied to multiple elements. The stylesheet is utilized in the presentation layer of web development to manage visual elements .

Three items that can be defined in metatags are the character set, author information, and keywords for search engines .

An inline style attribute might be used to override existing styles from a stylesheet for specific elements when unique or one-time styling is needed, allowing precise control without altering broader stylesheet rules .

Errors in the CSS include improper font-size declaration, text-weight should be font-weight, incorrect text-align value 'centre' instead of 'center', and missing commas for font-family properties. Corrections involve proper syntax and value adjustments such as correcting 'text-weight' to 'font-weight' and ensuring valid font properties .

You might also like