Woodson
Woodson

Reputation: 9

My HTML Link Is Not Working

I am new to HTML, and that's about to be very obvious, but I need some help on putting a simple link onto my website. The problem I'm experiencing is that my link when clicked on in Safari tries to pull from "file:///Users/kingwoody1/Desktop/Sample%20Website/“http://www.google.com/â€%C2%9D".

What am I missing? Why isn't it just going loading up google.com?

My code looks like this:

<html>
<body>
<div class=“headings”>
   <h1>Scott Woodson for President</h1>
    <p>A Man Of The People</p>
 </div>

 <div class=“options”>
   <ul>
     <li>
     <a href="http://www.google.com">Search for stuff</a>
     </li>
  </ul>
</div>  
</body>

Upvotes: 1

Views: 79

Answers (4)

Sam Denton
Sam Denton

Reputation: 465

your code works fine, but remember to close with <./html> , and use " as the funky quotes can cause problems in PHP (not sure about html). Try using http://jsfiddle.net/ to test websites, and it allows you to make small changes without having to reopen the page.

Upvotes: 0

Mohammed AlBanna
Mohammed AlBanna

Reputation: 2398

Close your </html> tag it may cause some problems.

By the way it works fine on Safari!

Upvotes: 1

Alex Green
Alex Green

Reputation: 70

This all looks good to me! The only problem I can see in this code are the speach marks. Make sure to use the (") version for coding. Not sure if this will help your problem or not.

Upvotes: 1

John Conde
John Conde

Reputation: 219804

You have funky quotes which are probably breaking safari. Change all of the and to ":

<div class=“headings”> to <div class="headings">

and

<div class=“options”> to <div class="options">

Upvotes: 3

Related Questions