Skip to main content

Fundamentals of Front End Development MCQs with Answers

Practice important Fundamentals of Front End Development MCQs with answers and explanations.

Chapter: 9
Q121:
Which tag should be used if you want a line break without starting a new paragraph?
A. <p>
B. <hr>
D. <div>
Correct Answer: C
Chapter: 9
Q122:
Fill in the blank: The <hr> tag is used to _______ content in an HTML page.
A. Create a heading
B. Define a line break
C. Separate
D. Define a paragraph
Correct Answer: C
Chapter: 9
Q123:
What does the <body> tag contain in an HTML document?
A. Meta data
B. Document title
C. Main content
D. HTML structure
Correct Answer: C
Chapter: 9
Q124:
Fill in the blank: The <title> element in HTML is displayed in the _______ of the browser.
A. Web page content
B. Document's header
C. Browser tab
D. Navigation bar
Correct Answer: C
Chapter: 10
Q125:
What does the style attribute style="background-color:lightgrey" do in an HTML element?
A. Sets the text color to grey
B. Sets the background color to light grey
C. Sets the font to light grey
D. Sets the font size to light grey
Correct Answer: B
Chapter: 10
Q126:
Which property is used to define the text alignment in an HTML element?
A. font-size
B. text-align
C. font-family
D. color
Correct Answer: B
Chapter: 10
Q127:
Fill in the blank: The font-size property in HTML is used to set the _______ of the text.
A. Color
B. Alignment
C. Size
D. Background
Correct Answer: C
Chapter: 10
Q128:
What does the <i> tag do in HTML?
A. Defines italic text
B. Defines bold text
C. Defines emphasized text
D. Defines small text
Correct Answer: A
Chapter: 10
Q129:
Fill in the blank: The color property in HTML is used to set the _______ of the text.
A. Background color
B. Font size
C. Text color
D. Font family
Correct Answer: C
Chapter: 10
Q130:
What is the purpose of the <mark> element in HTML?
A. Defines bold text
B. Defines highlighted text
C. Defines small text
D. Defines italic text
Correct Answer: B
Chapter: 10
Q131:
Fill in the blank: The <small> tag is used to define _______ text.
A. Large
B. Bold
C. Small
D. Italic
Correct Answer: C
Chapter: 10
Q132:
Which HTML tag is used for text that needs to be displayed as a subscript?
A. <sub>
B. <sup>
C. <small>
D. <mark>
Correct Answer: A
Chapter: 10
Q133:
Fill in the blank: The <sup> tag is used to display text as _______.
A. Subscript
B. Italic
C. Bold
D. Highlighted
Correct Answer: A
Chapter: 10
Q134:
What does the font-family property define in an HTML element?
A. Text alignment
B. Font used
C. Text color
D. Background color
Correct Answer: B
Chapter: 10
Q135:
Fill in the blank: The <b> tag is used to make text _______ without extra importance.
A. Italic
B. Underlined
C. Bold
D. Small
Correct Answer: C
Chapter: 11
Q136:
What does the HTML <q> element define?
A. A short quotation
B. A long quotation
C. An abbreviation
D. Contact information
Correct Answer: A
Chapter: 11
Q137:
Which HTML element is used to define a quoted section with indentation?
A. <q>
B. <blockquote>
C. <abbr>
D. <address>
Correct Answer: B
Chapter: 11
Q138:
Fill in the blank: The <abbr> element is used to define an _______ or an acronym.
A. Address
B. Abbreviation
C. Title
D. Quotation
Correct Answer: B
Chapter: 11
Q139:
What is the purpose of the <cite> element in HTML?
A. To define the title of a work
B. To define a short quotation
C. To define an abbreviation
D. To define contact information
Correct Answer: A
Chapter: 11
Q140:
Fill in the blank: The <bdo> element is used for bi-directional _______ in HTML.
A. Alignment
B. Override
C. Quotation
D. Formatting
Correct Answer: B

Test Your Knowledge

Take a timed quiz on Fundamentals of Front End Development

🚀 Start Quiz Now