MCQs / Computer Science / Lab: HTML Web Pages
Lab: HTML Web Pages MCQs — Computer Science (page 2) 42 multiple-choice questions on Lab: HTML Web Pages from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.
26. <font size="+2" makes the text: smaller size 2 2 pixels two sizes larger than the default Answer: D) two sizes larger than the default
Explanation: Relative size: 3 + 2 = 5.
Discuss this question
27. If an image file cannot be found, the browser shows the: alt text src path in red title tag page source Answer: A) alt text
Explanation: alt provides alternative text.
Discuss this question
28. Which attribute sets the colour of links while they are being clicked? vlink link alink text Answer: C) alink
Explanation: a = active.
Discuss this question
29. Which code makes text bold, italic and underlined correctly nested? <bText<i</b<u</i <b<i<uText</b</i</u <u<bText</u</i</b <b<i<uText</u</i</b Answer: D) <b<i<uText</u</i</b
Explanation: Close in reverse order of opening.
Discuss this question
30. A nested list means: a list placed inside a list item of another list a list inside a table only a list without items two lists side by side Answer: A) a list placed inside a list item of another list
Explanation: Sub-lists show hierarchy.
Discuss this question
31. Which code displays 21st with "st" raised? 21<supst</sup 21<ust</u 21<subst</sub 21<ist</i Answer: A) 21<supst</sup
Explanation: Superscript raises text.
Discuss this question
32. To colour an entire table row you add bgcolor to the: <th tag only <tr tag <caption tag <title tag Answer: B) <tr tag
Explanation: Each row can have its own colour.
Discuss this question
33. Which tag pair creates the biggest heading? <head</head <h6</h6 <big</big <h1</h1 Answer: D) <h1</h1
Explanation: h1 is the largest.
Discuss this question
34. <meta charset="UTF-8" is written inside the: paragraph title tag head section body section Answer: C) head section
Explanation: Meta information belongs in head.
Discuss this question
35. If a closing </h1 tag is missing, the most likely result is: the following text also appears as a large heading the page will not open at all only the title disappears the computer restarts Answer: A) the following text also appears as a large heading
Explanation: Unclosed tags affect following content.
Discuss this question
36. In <body bgcolor="lightyellow" text="darkblue", the text attribute sets: the colour of the page's text the title the background colour the font size Answer: A) the colour of the page's text
Explanation: text = foreground colour.
Discuss this question
37. <frameset cols="20%,80%" creates: one frame only two vertical frames side by side a table with two columns two horizontal frames Answer: B) two vertical frames side by side
Explanation: cols divides the window into columns.
Discuss this question
38. While saving an HTML file in Notepad, "Save as type" should be set to: Text Documents (.txt) Word Document Image All Files Answer: D) All Files
Explanation: Otherwise Notepad adds .txt.
Discuss this question
39. Which attribute merges a cell down 2 rows? colspan="2" height="2" cellspacing="2" rowspan="2" Answer: D) rowspan="2"
Explanation: rowspan spans rows.
Discuss this question
40. A local HTML file opened in the browser shows an address beginning with: mailto: ftp:// http://www. file:/// Answer: D) file:///
Explanation: It is opened from your computer, not the Internet.
Discuss this question
41. Which attribute of the font tag sets "Verdana"? face style size color Answer: A) face
Explanation: face = font family.
Discuss this question
42. In <img src="images/logo.png", "images/logo.png" is a: website address relative path to the image file colour code font name Answer: B) relative path to the image file
Explanation: The image is in the images sub-folder.
Discuss this question
Previous Page 2 of 2
Practise Lab: HTML Web Pages MCQs
More Computer Science chapters