Question:medium

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

Solution and Explanation

Step 1: Recall what each attribute does:
Think of it in plain words. href tells the browser where to go. src tells the browser what file to show. type="A" tells a list how to number its items. Each tag must get the attribute that matches its job.

Step 2: Match each tag with its attribute:
StatementTag jobAttribute usedAttribute needed
ILink to another pagesrchref
IIShow a picturehrefsrc
IIIMake a listtype on <ul>type on <ol>, or no type on <ul>
In rows I and II the two attributes are simply swapped. In row III the letter numbering needs an ordered list.

Step 3: Write the corrected statements:
Put the right attribute into each tag and leave everything else as it is.
I.   <a href="page2.html">Next Page</a>
II.  <img src="flower.jpg" alt="Rose">
III. <ol type="A"><li>Item 1</li></ol>
The third statement can also be written as <ul><li>Item 1</li></ul> if we drop the letter style.

Step 4: Check what the browser will show:
Statement I shows a clickable text, Next Page, that opens page2.html. Statement II shows the picture flower.jpg, and the text Rose appears if the picture is missing. Statement III shows one item numbered with the letter A, so it reads A. Item 1.

Final Answer:
All three statements work once the right attribute is used with the right tag. \[ \boxed{\text{I: href, II: src, III: ol with type A (or ul without type)}} \]
Was this answer helpful?
0