MCQs / Computer Science / HTML Basics: Structure, Text Formatting and Lists
HTML Basics: Structure, Text Formatting and Lists MCQs — Computer Science 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.
1. The tag for a paragraph is: <pg <p <para <br Answer: B) <p
Explanation: <p creates a paragraph.
Discuss this question
2. Which type value gives square bullets in an unordered list? square circle A disc Answer: A) square
Explanation: type="square".
Discuss this question
3. <!DOCTYPE html tells the browser that: the page is a Word file the document is an HTML5 document the page has no head the page is an image Answer: B) the document is an HTML5 document
Explanation: It is a declaration, not a tag.
Discuss this question
4. HTML was created by: Bill Gates Charles Babbage Tim Berners-Lee Dennis Ritchie Answer: C) Tim Berners-Lee
Explanation: He created HTML along with the WWW.
Discuss this question
5. Text inside the <title tag appears: as a large heading on the page on the browser tab / title bar nowhere at all at the bottom of the page Answer: B) on the browser tab / title bar
Explanation: It names the page in tabs and bookmarks.
Discuss this question
6. Which tag underlines text? <u <under <i <ul Answer: A) <u
Explanation: u = underline.
Discuss this question
7. To display the symbol < on a web page you should write: < > & Answer: A) <
Explanation: < = less than.
Discuss this question
8. To write H₂O in HTML you use: <sup <strike <small only <sub Answer: D) <sub
Explanation: Subscript lowers the 2.
Discuss this question
9. A list placed inside another list item is called a: frame definition list nested list table Answer: C) nested list
Explanation: Lists can contain sub-lists.
Discuss this question
10. HTML stands for: HyperText Markup Language Hyperlink Tool Markup Language HyperText Machine Language High Text Making Language Answer: A) HyperText Markup Language
Explanation: HTML is used to create web pages.
Discuss this question
11. The range of values for the size attribute of <font is: 0 to 100 1 to 7 8 to 72 1 to 10 Answer: B) 1 to 7
Explanation: Default size is 3.
Discuss this question
12. The extension of an HTML file is: .html or .htm .exe .doc .xls Answer: A) .html or .htm
Explanation: Browsers open .html files.
Discuss this question
13. Which code displays "E = mc²" correctly? E = mc<sup2</sup E = mc<sub2</sub E = mc<u2</u E = mc<b2</b Answer: A) E = mc<sup2</sup
Explanation: The 2 must be a superscript.
Discuss this question
14. The <center tag is used to: make text bold align content in the centre of the page create a list insert an image Answer: B) align content in the centre of the page
Explanation: It is deprecated in HTML5 (use CSS).
Discuss this question
15. HTML is a: programming language with loops operating system database markup language Answer: D) markup language
Explanation: It structures content with tags.
Discuss this question
16. HTML tags are enclosed in: square brackets [ ] round brackets ( ) angle brackets < curly braces Answer: C) angle brackets <
Explanation: e.g. <p.
Discuss this question
17. All visible content of a web page is written in the: <head section <body section <title tag DOCTYPE Answer: B) <body section
Explanation: The body holds visible content.
Discuss this question
18. The attribute of the <font tag that changes the typeface is: style only type font-name face Answer: D) face
Explanation: e.g. face="Arial".
Discuss this question
19. The <br tag is used to: start a list insert a line break create a border make text bold Answer: B) insert a line break
Explanation: It moves text to the next line.
Discuss this question
20. <ol type="I" numbers the list items as: A, B, C I, II, III 1, 2, 3 a, b, c Answer: B) I, II, III
Explanation: Uppercase Roman numerals.
Discuss this question
21. The colour code FF0000 represents: white blue red green Answer: C) red
Explanation: RR=FF, GG=00, BB=00.
Discuss this question
22. Which is the correct way to write a comment in HTML? <!-- comment -- / comment / // comment comment Answer: A) <!-- comment --
Explanation: HTML comments are not displayed.
Discuss this question
23. The largest heading tag is: <h6 <heading <head <h1 Answer: D) <h1
Explanation: h1 is the biggest and most important.
Discuss this question
24. The latest major version of HTML is: XHTML 0.5 HTML5 HTML2 HTML 3.2 Answer: B) HTML5
Explanation: HTML5 is the current standard.
Discuss this question
25. Which tag displays "Hello" in blue Arial font of size 5? <font color="5" size="blue" face="Arial"Hello</font <text size="5" color="blue"Hello</text <font size="5" color="blue" face="Arial"Hello</font <font face="5" color="Arial"Hello</font Answer: C) <font size="5" color="blue" face="Arial"Hello</font
Explanation: size, color and face attributes are used correctly.
Discuss this question
Page 1 of 3 Next
Practise HTML Basics: Structure, Text Formatting and Lists MCQs
More Computer Science chapters