Which of the following options follows content model in HTML? [code] i.<ul> <p>Option one </p> </ul> ii.<ul> <li>Option two

Which of the following options follows content model in HTML?
Code:
i.<ul>
     <p>Option one </p>
  </ul>
ii.<ul>
     <li>Option two </li>
  </ul>
A. i
B. ii
C. i and ii
D. Neither i nor ii
 
Answer: b
Explanation: Content model specifies that certain elements are supposed to occur only within other elements. The <ul> tag which is for unordered list should contain <li> tags which are for list specification. The <p> tag is used for paragraph in HTML.
 

Tìm kiếm

Back
Top