KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Applications

Find the errors in the following HTML code and write the correct code.

<UL Style: Square> <LI> Water Bottles <LI> Lunch Box <LI> Handkerchief </OL>

HTML Intro

28 Likes

Answer

The errors in the given code are as follows:

  1. The name of the attribute should be 'Type' and not 'Style'.
  2. The attribute is followed by an '=' symbol and not a ':' symbol.
  3. <LI> tags should be closed with </LI>
  4. The closing tag should be </UL> instead of </OL>.

The correct code is as follows:

<UL Type= "Square"> 
<LI>Water Bottles</LI> 
<LI>Lunch Box</LI> 
<LI>Handkerchief</LI> 
</UL>

Answered By

14 Likes


Related Questions