HTML Tutorials


Links

Time to really start writing some serious HyperText! With links you can finally link to other web pages! The link tag is <a>, and you need to specify what website you're linking to. Inside of the <a> tag, just use href="http://[Your web address here!]".



Code

<!DOCTYPE html>
<html>
  <head>
    <title>Links!</title>
  </head>

  <body>
    <h2>Cool links!</h2>
    <p><a href="http://umd.edu">UMD Home</a></p>
    <p>My favorite newspaper<a href="http://nytimes.com">The New York Times</a></p>
  </body>
</html>

Result

Cool links!

UMD Home

My favorite newspaper: The New York Times