I’m stuck on html 12 trying to anchor link

Can anyone help, I am a beginner and I am stuck on html question 12. It’s asking me to anchor a link with the (a) element but then it says something about missing href but nothing about href being apart of an attribute was even mentioned before this so no matter what I try I can’t get it right, can anyone help pls?

Is it the building cat photo app?

Alright, I believe you are in the cat photo app.

As you know, they asked you to let the “cat photos” act as a link.

For that we use the anchor element :

<a></a>

Whatever text you add between the opening and the closing tag will be visible in the page and will act as a link (in other words it will get the default link style; underlined and blue-colored):

<a> This text will appear in the page and it will be link</a>

So far the above link won’t take you anywhere if you clicked on it. You will have to add the href attribute to the opening anchor tag as shown below.

href attribute with its value be like :point_down::

href="https://www.add.the.link.overhere.com"

This attribute will be put in the opening tag (where the star is):

<a *here* > This text will appear in the page and it will be link</a>

So it will end up like this :point_down:

<a href="https://www.add.the.link.overhere.com"> This text will appear in the page and it will be link</a>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.