December 11, 2018 · coding html

HTML Links and Anchor Tags

The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL. This is a closed tag.
The href (attribute) contains a URL or a URL fragment that the hyperlink points to.

<p><em><strong> <a  href="https://www.catster.com/cat-behavior/what-is-cat-flehmen-response">Cat  Extraordinaire­čÉł</a></strong></em></p>   
<h3>My Hobbies</h3>
<ul>
    <li><a href="https://www.youtube.com/watch?v=B7UmUX68KtE">Cooking</a></li>
      <li><a href="http://cleaneatsfastfeets.com/wp-content/uploads/2014/04/OCD-Cleaning.jpg">Cleaning</a></li>
   <li> <a href="https://www.pathofexile.com/forum/view-thread/1894754/page/1#p14458556">Gaming</a></li>
     <li> <a href="https://www.petmd.com/cat/wellness/evr_ct_best-places-to-pet-a-cat">Patting my cats</a></li>
</ul>

To redirect a link to another page on your site, use the following code

<a href="hobbies.html">My Hobbies</a>
<br>
<a href="contact-me.html">Contact Me!</a>

You need to make sure you have created a new file within the folder that your currently working on so that they link together -

<!DOCTYPE html>
    <html>
<head>
        <meta charset="utf-8">
<title>Contact Me!</title>
</head>
<body>
<img src="Images\dog.jpg" alt="Hello this is dog">
        </body>
</html>
  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket