NCO- Cyber Olympiad (SOF) Class 12: Questions 1 of 520

Question

MCQ▾

In HTML, ________ Attribute of < ul > Tag Specifies that the list Should Render Smaller than Normal.

Choices

Choice (4) Response

a.

Kind

b.

Type

c.

Compact

d.

Name

Answer

c.

Explanation

  • The < ul > tag defines an unordered list.
  • Use the < ul > tag together with the < li > tag to create unordered lists.
  • Attributes: compact and type
  • The compact attribute is a boolean attribute.
  • When present, it specifies that the list should render smaller than normal, by reducing the space between lines and the indentation of the list.
  • For example:
    1. <ulcompact>
    2. <li>Breakfast</li>
    3. <li>Lunch</li>
    4. <li>Dinner</li>
    5. </ul>

    Output:

    • Breakfast
    • Lunch
    • Dinner

Developed by: