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:
a. 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.
[3]
font-family: "Comic Sans", Arial, sans-serif;
"Comic Sans", [1]
Arial, [1]
sans-serif; [1]
Must be in the correct order
b. add a markup to the table style to set a 3-pixel wide, dashed external border.
[4]
table {border-color: #000000; border-style: dashed; border-width: 3px }
border-style: [1]
dashed; [1]
border-width: [1]
3px [1]
c. edit style h3 so that the colour is set to black.
[1]
h3 {color: #000000;
#000000; [1]
d. add a markup to the start of style h2 to display the text as bold.
[2]
h2 { font-weight: bold;
font-weight: [1]
bold; [1]