CSS Tags Document
CSS Tags Document
May/June 2017
0417/31
A trainee has started to create a second stylesheet to be added to the web page. The stylesheet is not
finished and contains a number of errors.
+63
Evidence 5 Stylesheet tab1731.css attached 1 mark
Place your html markup here st1731????.css attached below tab1731.css
<!DOCTYPE html>
<html> Head and body syntax correct 1 mark
<head>
<link rel="stylesheet" href="tab1731.css">
<link rel="stylesheet" href="st17319999.css">
<title>0417 June 2107 paper 31</title>
</head>
May/June 2017
0417/32
A trainee has started to create a second stylesheet to be added to the web page. The stylesheet is not
finished and contains a number of errors.
font-size:30pt 1 mark
You work for Hothouse Design and will develop web pages for a small construction company called
Bobby’s Bricks.
Efficient markup and stylesheets must be used. All colour codes must be in hexadecimal.
• The external table border must have a width of 4 pixels and all internal gridlines must have a
width of 2 pixels. Table borders and gridlines must be visible.
The stylesheet has been started but needs to be improved using the most efficient syntax. Make sure
your stylesheet does not contain any html.
• Open the stylesheet BBstyle.css in a suitable software package and examine its contents.
• Edit this stylesheet so that it has the following specifications:
You work for Hothouse Design and will develop web pages for the Colorado Cabin Company.
Many of the people who will view the web page have a very slow internet connection, so efficient
markup must be used.
body {background-color:#f19001;}
h3 {text-align:left;}
h2 {text-align:justify;}
h1 {text-align:center;
color:#7d3834;
font-family: Times, "Times New Roman", serif;}
May/June 2019
0417/31
.h6 {font-family:Arial;sans-serif;font-size:14pt;text-allign:right}
• Evaluate in your own words how effectively this css meets the specification for the style. [4]
You are going to create a web page and edit a stylesheet for Special-Disk-Sales. Many of the people
who will view the web page have a very slow internet connection. The web page and stylesheet must
work in any browser. All colour codes must be in hexadecimal. Make sure that your stylesheet contains
no HTML.
• Table borders must not appear on the final web page.
• Add your name, centre number and candidate number as a comment at the start of the
stylesheet.
Four from:
text-allign misspelt so won’t work 1 mark
It will never open the default sans serif font as ; after Arial 1 mark
Ineffective as it is a class not a style 1 mark
font-size statement is correct and works 1 mark
font-family would set font to Arial if it is available 1 mark
Stylesheet
Correct comment added with /* details */ 1 mark
h1 font-size:52pt 1 mark
font-style:italic 1 mark
text-align:center 1 mark
color:#007f00 1 mark
h2 text-align:justify 1 mark
May/June 2019
0417/32
• A trainee has attempted to create this using HTML:
<td>
<li> Cloud storage</li>
<li> 10GB free for the first 6 months</li>
<li> Best rates for a single region</li>
<li> Premium service for multi-regional</li>
<li> Hard disk drives</li>
<li> Solid state drives</li>
</td>
• Analyse this HTML and suggest amendments. Identify where each of these amendments
should be placed. Do not include CSS. [5]
• Complete each sentence with the name of the web development layer.
(b) The ______________ layer is used for a hyperlink to open a word processed document.
(d) The ______________ layer is used to apply styles to all web pages in a website.
[4]
You are going to create a web page and edit a stylesheet for Super-Disk-Sales. Many of the people
who will view the web page have very slow internet connection. The web page and stylesheet must
work in any browser. All colour codes must be in hexadecimal. Make sure that your stylesheet contains
no HTML.
• Table borders and gridlines must appear on the final web page.
• Attach the stylesheet SSDstyle.css to this web page.
• Save your web page.
• Open the stylesheet SSDstyle.css in a suitable software package. Edit this stylesheet to meet
these specifications:
h1 30 points high
h2 14 points high
h3 20 points high
Evidence 2
(a) Behaviour
1 mark each 4 marks
(b) Content/structure
(c) Content/structure
(d) Presentation
Stylesheet
h1,h2,h3 color:#361215 1 mark
text-align:center 1 mark
h1 font-size:30pt 1 mark
h2 and h3 14pt and 20pt respectively 1 mark
table {border-collapse:separate} 1 mark
td {padding:15px} 1 mark
body background-color: 1 mark
#ffff99 1 mark
Correct comment added with /* details */ 1 mark
May/June 2020
0417/31
You are going to create a web page and edit a stylesheet for Tawara Gaming Computers. The web
page and stylesheet must work in any browser. All colour codes must be in hexadecimal. Make sure
that your stylesheet contains no HTML.
The table shows the spacing between cells which will be set when your stylesheet is edited
Table borders must not appear on the final web page.
Attach the stylesheet 2031-tgc.css to this web page.
Open the stylesheet 2031-tgc.css in a suitable software package. Edit this stylesheet to meet the
following specification:
All table borders have a width of 0 and gridlines are separated. All cell spacing within the table
is set to 20 pixels. The background colour of the table is black. All tables are centre aligned in
the browser. There is no cell padding.
The background image 2031-bg.png is set to repeat to fill the browser window.
Styles h1, h2 and h3 are green (with no red or blue components) and have the font Segoe
print, if it is not available then Verdana, or if neither of these fonts are available the browser’s
default sans serif font.
Add your name, centre number and candidate number as a comment at the bottom of the
stylesheet.
You are going to create a web page for the Alinao Beach and Dive Resort in the Philippines. The web
page must work in any browser. All colour codes must be in hexadecimal.
The table shows the spacing between cells which will be set when your stylesheet is attached
Table borders must appear on the final web page.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="2032-ab.css">
<Title>Alinao Beach and Dive Resort Homepage</title>
<base target="_blank">
</head>
<body> Stylesheet 2032-ab.css attached 1 mark
Target Base target=”_blank” 1 mark
td { padding:10px;
border-style:solid;
border-width:2px; }
table { border-collapse:collapse;
border-style:solid;
border-width:2px; }
h1,h2,h3 { text-align:center;
font-family: Arial, sans-serif}
May/June 2021
0417/31
This web page must be created using a single table and must work in all browsers. The table must
fit 80% of the browser window.
Each table cell is identified with a letter. Some dimensions are shown. These must be set as
percentage values and not in pixels.
Open and edit the stylesheet j2131bhh.css to meet the following specifications:
Set the background for the web page so that it has a colour with a:
• blue component of 36
• red component of 21
• green component of 2f
Set the background for the web page so that the image j2131bg.png is placed in only the top
left corner of the window.
Set the font for styles h1, h2, h3 and for the paragraph style, so that the browser selects and
displays the font San Francisco. If this font is not available, the browser selects and displays
the font Calibri. If neither of these fonts are available, the browser should display its default
sans-serif font.
Set the paragraph style so the text is fully justified with a 12 point font.
Add your name, centre number and candidate number as a comment at the end of the stylesheet.
All colour codes must be displayed in hexadecimal. Make sure that your stylesheet contains no
HTML or scripting language. Save this stylesheet in your bhh folder.
table margin-left:auto; 1 mark
body background-color: #212f36; 1 mark
background-image: url('j2131bg.png'); 1 mark
background-repeat: no-repeat; 1 mark
background-position: left top; 1 mark
h1,h2,h3,p font-family: San Francisco
"San Francisco" in speech marks 1 mark
,Calibri
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="j2131bhh.css">
<Title>Bali Holiday Homes Homepage</title>
<base target="_self">
</head>
Stylesheet j2131bhh.css attached 1 mark
Title Bali Holiday Homes Homepage
Target Base target="_
May/June 2021
0417/32
You are going to create a web page and stylesheet to show examples of underwater macro photography.
The web page and stylesheet must work in any browser. All colour codes except those provided in the
source files must be in hexadecimal. Make sure that your stylesheet contains no HTML. Make your
HTML and stylesheet as efficient as possible.
This web page must be created using a single table and must work in all browsers. The table must
fit 90% of the browser window.
Set the background for the web page so that it has a colour with a:
• blue component of d6
• red component of 6f
• green component of ea
Set the font for styles h1 and h2, so that the browser selects and displays the font Domino
Regular. If this font is not available, the browser selects and displays the font Domino. If neither
of these fonts are available, the browser should display its default serif font. Set each of these
fonts as black.
Add your name, centre number and candidate number as a comment at the start of the stylesheet.
Take a screenshot to show the file name and all contents of your stylesheet.
Comment /* Candidate details at top */ 1 mark
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.
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.
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.
Open and edit the stylesheet you saved in step 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 each table margin individually to 5% of the width and height of the browser window.
• 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.
Comment /* Candidate details at top 1 mark
*/ corrected 1 mark
body {…} background-color: #74abd2 1 mark
<!DOCTYPE html>
Title accurate and in head section 1 mark
<html>
<base target="_new"> in head section 1 mark
<head>
<Title>Tawara Balloon Safaris</title>
<base target="_new"/>
<link rel="stylesheet" type="text/css"
href="j31stylesheet_ZZ999_9999.css">
</head>
Stylesheet attached in head section … 1 mark
<body> … renamed as j31stylesheet_ZZ999_9999.css 1 mark
<table style="width:90%;" border="1">
May/June 2022
0417/32
You will create a stylesheet to be attached to the web page you copied to the folder j2232 in step 18. All
colour codes must be displayed in hexadecimal. Your stylesheet must not contain HTML or scripting
language.
Add a comment at the start of the stylesheet to contain your name, centre number and candidate
number.
Set the font for styles h1, h2 and h3 so that the browser selects and displays the font
Casion Pro Bold. 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 should display its default
serif font.
Set style h1 so the text is red, centre aligned with a 30-point font.
Set style h2 so the text is black, fully justified with an 18-point font.
Set style h3 so the text is black, left aligned with a 14-point font.
Set the table to 25% from the right margin of the browser window and 5% from all other margins
of the browser window.
Set all table borders and gridlines so that they are not visible.
Set the background for the web page so that it has a colour with a:
• green component of 9f
• blue component of 25
• red component of da
Set the background for the webpage to have the image j2232logo.png placed:
• only once
• in the top right corner
• in a fixed position so that it will not scroll with the web page
• with a width of 200 pixels
• with a height of 150 pixels
Save this stylesheet, in cascading stylesheet format, in your j2232 folder with the file
name j2232css_ followed by your centre number_candidate number, for example,
j2232css_ZZ999_9999
Saved Correct filename and type 1 mark
Comment /* Candidate details at top */ 1 mark
h1,h2,h3 { } font-family: "Casion Pro Bold" 1 mark
, "Times New Roman" 1 mark
margin-left: 5% 1 mark
td {…} padding:10px 1 mark
body {…} background-color: #da9f25; 1 mark
… 150px; 1 mark
background-repeat: no-repeat; 1 mark
background-attachment: fixed; 1 mark
background-position: top …
… right; 1 mark
CSS syntax Correct CSS syntax 1 mark
May/June 2023
0417/31
You are working as part of a team of web developers at TawaraWeb and have been asked to create
parts of a web page for a client.
Set the font for h1, h2, h3 and the paragraph styles so that the browser selects and displays the
font Calibri. If this font is not available, the browser selects and displays the font Helvetica Neue.
If neither of these fonts is available, the browser should display its default sans-serif font.
Create all the head section of a web page to meet these specifications:
Metatags:
Set the default target window to _blank if a new web page is opened from within this web
page.
You are going to create a web page and stylesheet to promote the Tawara Animal Sanctuary. The
web page and stylesheet must work in any browser. All colour codes are in hexadecimal and any new
colour codes must also be in hexadecimal. Make sure that your stylesheet contains no HTML. Make
your HTML and stylesheet as efficient as possible.
This web page must be created using a single table and work in all browsers. The table must fit
80% of the browser window.
Use video and source tags to place in cell B the video file j2332tiger.mp4
The video must fit the width of the cell. Display an appropriate text‑based error message if the
browser does not support this video type.
img { width:100%;}