Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What does the <div> tag represent in HTML?
A. A list item
B. A link
C. A division or section in an HTML document
D. An image
Direction: Choose the correct option

Q2.

Is the <div> tag block-level or inline?
A. Both
B. Block-level
C. Neither
D. Inline
Direction: Choose the correct option

Q3.

<div class="container">
<h1>Title</h1>
<p>Text</p>
</div>
What is the purpose of this div?
A. To make text bold
B. To create a link
C. To add an image
D. To group heading and paragraph together
Direction: Choose the correct option

Q4.

How can you style multiple divs differently?
A. Using inline styles only
B. You cannot
C. Using class or id attributes
D. Using different tag names
Direction: Choose the correct option

Q5.

Which of the following is a best practice for using divs?
A. Use divs for everything
B. Use semantic HTML5 tags when possible instead of divs
C. Avoid divs completely
D. Use only divs and spans