WorksheetsSEACSO cat 5 mock test
Total questions: 15
Worksheet time: 5mins
<b>
<break>
<br>
<break />
<!DOCTYPE html>
<body>
<head>
<h1>
Marc Andreessen
Tim Berners-Lee
Rasmus Lerdorf
Brendan Eich
<h6>Hello World!</h6>
<h1>Hello World!</h1>
<i6>Hello World!</i
6>
<i1>Hello World!</i1
>
6. What is the main difference between inline styles and the <styles> tag ?
Inline styles are directly modify individual HTML elements using a style attribute, whereas the <styles> > tag allows you to write CSS in a dedicated section of the HTML file.
Inline styles allow you to write CSS in separate file, whereas the <styles> tag embeds CSS directly within HTML opening tags.
There is no difference between inline styles and the <styles> tag
The <styles> tag allows you to write CSS in a separate file, whereas inline styles embed CSS directly within HTML opening tags.
7. Complete the code below to set the color of link to blue.
body
html
a
href
The spacing between letters.
How thin or thick text appears.
How transparent text appears.
How small or large text appears.
Enhances webpage load time
Separating HTML structure from CSS style makes the code in both languages easier to read and maintain.
Provides a better-looking CSS style
Segregating HTML and CSS provides more specific CSS selectors.
10.The following HTML code attempts to use inline styling to change the color of the paragraph text, but fails to do so. Why?
Yellow
Orange
Black
Blue
console.log(‘It this a comment?’);
console.log()
//Is this a comment?
‘Is this a comment’
‘num’
5
10
50
Math.random()
math.random()
random.Math()
Math(random)
14.What type of variable is ?
Int
Boolean
Float
String
Hello World! is printed to the console
10 is printed to the console
2 is printed to the console
‘Hello World!’ .length is printed to the console
