Question:

The following HTML statements contain errors. Rewrite the correct statements for each.
I.   <a src="page2.html">Next Page</a>
II.  <img href="flower.jpg" alt="Rose">
III. <ul type="A"><li>Item 1</li></ul>

Show Hint

Ask what each tag needs: a link needs the page address, a picture needs the file name, and letter numbering needs an ordered list.
Updated On: Nov 3, 2026
Show Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Understand what is wrong:
An attribute is an extra setting written inside the opening tag as name="value". In each statement the tag name is correct, but the attribute does not suit that tag. So for every tag we recall the attribute it really uses and swap the wrong one.

Step 2: Correct statement I (anchor tag):
The <a> tag makes a hyperlink. The address of the target page goes in the href attribute (hypertext reference). The statement uses src, which the anchor tag does not use, so the link would not work. We replace src with href.
<a href="page2.html">Next Page</a>


Step 3: Correct statement II (image tag):
The <img> tag shows a picture. The file name of the picture goes in the src attribute (source). The statement uses href, which is a link attribute, so the browser would not find the picture. The alt attribute is already correct, because it holds the text shown when the picture cannot load.
<img src="flower.jpg" alt="Rose">


Step 4: Correct statement III (list tag):
The attribute type="A" sets the numbering style to capital letters A, B, C. This style belongs to an ordered list, which is made with <ol>. An unordered list <ul> shows bullets and does not take a letter style. So we either change <ul> to <ol> and keep the type, or keep <ul> and remove the type. Both fixes are correct.
<ol type="A"><li>Item 1</li></ol>
or
<ul><li>Item 1</li></ul>


Final Answer:
The wrong attributes were src in the anchor tag, href in the image tag, and the list type on an unordered list. The corrected statements are listed above. \[ \boxed{\text{I: href, II: src, III: ol with type A (or ul without type)}} \]
Was this answer helpful?
0
0

Top CBSE X Questions

View More Questions