Basic HTML and HTML5: Link to External Pages with Anchor Elements

You can use anchor elements to link to content outside of your web page.

anchor elements need a destination web address called an href attribute. They also need anchor text. Here's an example:

<a href="">this links to</a>

Then your browser will display the text "this links to" as a link you can click. And that link will take you to the web address

Create an a element that links to and has "cat photos" as its anchor text.

  <a href="">cat photos</a>

  <img src="" 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>

results matching ""

    No results matching ""