Help ! Same page 15/17


Hi everyone;

For this exercice i did the first question successfully
But I didn’t understand the second one;
Wrap the text of each list item in the unordered list in an anchor element. Each anchor tag should link to the corresponding <div>on the page (The <a> element that contains the text “Introduction” links to #introduction).

Someone can help me, pleaseeeee :slight_smile:


this instructions consist of two parts:

Do you understand this? <li></li> is the list item, each list item has text, which should be wrapped in an anchor element (<a></a>)

anchor elements allow us to make hyperlink reference to different pages, or in this case, different div elements on the same page using the ids. So the list item that says introduction, should have a hyperlink reference (href attribute) pointing to #introduction. Which reference to <div id="introduction">, so that when text in anchor element is clicked, the page jumps to the div with id introduction