Computer Applications
Find error(s) in the following HTML code segment. Rewrite the correct code and underline the corrections made.
<UL STYLE: square>
<LI> Water Bottles
<LI> Lunch box
<LI> Handkerchief
</OL>
Answer
The errors in the given code are as follows:
- The name of the attribute should be 'Type' and not 'Style'.
- The attribute is followed by an '=' symbol and not a ':' symbol.
<LI>tags should be closed with</LI>- 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>
Related Questions
Discuss the use of
<UL>and<LI>tags with suitable examples of each.Mihir wants to know the name of any two text editors that can be used to write the code for an HTML webpage. Can you provide him with the names?
Write the HTML code for the following in the space provided.
- A normal sized heading with the text, "LOYOLA HIGH SCHOOL."
- The largest size heading, "PETER PAN"
- A normal sized heading, "A MUSICAL"
- A horizontal line across the page
6CO2 + 6H2O → C6H12O6 + 6O2
To display the above given chemical expression on a web page, the following HTML code was written:
6CO<sup>2</sup> + 6H<sup>2</sup>O → C<sup>6</sup>H<sup>12</sup>O<sup>6</sup> + 6O<sup>2</sup>But it's not displaying the expression in desired format. Identify the fault(s) and suggest the required correction(s).