Introduction notes of Xiaobai front end (12), Set dummy link

Hello everyone , Welcome to freecodecamp HTML Topic No 12 piece .

Today's challenge is still about a label .

Background knowledge

sometimes , We want to add one before we know where the link points to a label .

It seems a little incredible , But I'm actually learning JavaScript after , You'll find that's the norm . because JavaScript It can be modified dynamically HTML as well as CSS The content of , So we can set it up before we know the specific link a label .

About JavaScript The content of , We'll learn about them later .

The question

Now we have a a label , its href Property points to "https://freecatphotoapp.com". We hope that href Replace the content in with #. That is, in English hashtag, Represents an invalid link .

such as :


<a href="#"></a>

requirement
1. Yours a The element should contain an invalid link , adopt href Point to # Realization

Editor

<h2>CatPhotoApp</h2><main> <p>Click here to view more <a href="https://freecatphotoapp.com" target="_blank">cat photos</a>.</p> <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."> <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p> <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p></main>

solution

The challenge today is very simple , We just need to put... According to the requirements of the title a In the label href Attribute change # that will do .


<h2>CatPhotoApp</h2><main> <p>Click here to view more <a href="#" target="_blank">cat photos</a>.</p> <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."> <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p> <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p></main>

I want to be pro automatic
If you want to have a try, don't forget to click the reading text at the end of the article to jump ~

This is the end of the article , Let's give it a triple before we go ~