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