MCQs / Computer Science / HTML Basics: Structure, Text Formatting and Lists
HTML Basics: Structure, Text Formatting and Lists MCQs — Computer Science (page 2) 57 multiple-choice questions on HTML Basics: Structure, Text Formatting and Lists 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. Which tag makes text bold? <b <sub <u <i Answer: A) <b
Explanation: <b or <strong for bold.
Discuss this question
27. Extra information about an element, such as color="red", is called a(n): entity comment tag name attribute Answer: D) attribute
Explanation: Attributes are written inside the opening tag.
Discuss this question
28. The <hr tag draws a: hyperlink table row horizontal line heading Answer: C) horizontal line
Explanation: hr = horizontal rule.
Discuss this question
29. The colour code FFFFFF represents: white red black yellow Answer: A) white
Explanation: All colours at full intensity.
Discuss this question
30. Each item in an ordered or unordered list is written with: <td <li <dt <item Answer: B) <li
Explanation: li = list item.
Discuss this question
31. The <strong tag displays text as: bold (important) italic underlined superscript Answer: A) bold (important)
Explanation: Strong importance is shown in bold.
Discuss this question
32. Which nesting is correct? <i<bText</i</b <b<iText</i</b </b<iText<b</i <b<iText</b</i Answer: B) <b<iText</i</b
Explanation: The last opened tag must close first.
Discuss this question
33. Which tag is used for strike-through text? <center <strike <sup <strong Answer: B) <strike
Explanation: <strike, <s or <del.
Discuss this question
34. The attribute that makes an ordered list start from 5 is: from="5" type="5" start="5" begin="5" Answer: C) start="5"
Explanation: <ol start="5".
Discuss this question
35. The root element of an HTML document is: <title <head <html <body Answer: C) <html
Explanation: All other elements are inside <html.
Discuss this question
36. is used to insert a: new paragraph non-breaking space horizontal line bold letter Answer: B) non-breaking space
Explanation: Browsers collapse ordinary repeated spaces.
Discuss this question
37. Which tag is used to highlight text with a yellow background in HTML5? <mark <bg <color <hl Answer: A) <mark
Explanation: <mark highlights text.
Discuss this question
38. The default font size in the <font tag is: 7 3 12 1 Answer: B) 3
Explanation: Sizes run from 1 to 7 with 3 as default.
Discuss this question
39. Which of the following is an empty (singular) tag? <b <br <ul <p Answer: B) <br
Explanation: <br has no closing tag.
Discuss this question
40. The <title tag is placed inside the: <p tag <head section <body section <ul tag Answer: B) <head section
Explanation: The title belongs to the head.
Discuss this question
41. Which tag makes text italic? <b <sup <i <s Answer: C) <i
Explanation: <i or <em for italics.
Discuss this question
42. The smallest heading tag is: <h10 <h6 <h0 <h1 Answer: B) <h6
Explanation: h6 is the smallest.
Discuss this question
43. The default bullet style of <ul is: square disc circle none Answer: B) disc
Explanation: Filled circles.
Discuss this question
44. The tag for an unordered (bulleted) list is: <dl <li only <ol <ul Answer: D) <ul
Explanation: ul = unordered list.
Discuss this question
45. How many heading levels are there in HTML? 7 5 6 3 Answer: C) 6
Explanation: <h1 to <h6.
Discuss this question
46. Colour codes in HTML are written in which number system? Binary Octal Hexadecimal Roman numerals Answer: C) Hexadecimal
Explanation: RRGGBB uses hex digits 0–F.
Discuss this question
47. A definition list uses the tags: <table and <tr <dl, <dt and <dd <ul and <li <ol and <li Answer: B) <dl, <dt and <dd
Explanation: Term and description pairs.
Discuss this question
48. To write x² in HTML you use: <u <big <sub <sup Answer: D) <sup
Explanation: Superscript raises the 2.
Discuss this question
49. The tag for an ordered (numbered) list is: <nl <ol <dl <ul Answer: B) <ol
Explanation: ol = ordered list.
Discuss this question
50. In a definition list, <dt contains the: description term bullet list number Answer: B) term
Explanation: dt = definition term; dd = description.
Discuss this question
Previous Page 2 of 3 Next
Practise HTML Basics: Structure, Text Formatting and Lists MCQs
More Computer Science chapters