Jason Smith Jason Smith - 1 year ago 37
HTML Question

HTML Page isn't working

I am new to HTML and coding so sorry. My code shows a link to a website on my page, but it isn't working. See below:



<html>

<head>
<title>My navigation</title>
</head>

<body>
<div>
<a href=" www.google.com">this google!</a>
</div>
</body>

</html>




Answer Source

Your <a> tag is incorrectly formatted. In order to link to a website, make sure you format it as follows: <a href="http://www.[...]">.

See your updated code below:

<html>

<head>
  <title>My navigation</title>
</head>

<body>
  <div>
    <a href="http://www.google.com/">this is google!</a>
  </div>
</body>

</html>

Let me know if you need any other help.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download