Almost all of my Href links aren't working?

For some reason almost all of my href links aren’t working? I have them set the same way the one working on is (The “Odds and Ends” link), and I have the html url’s set up correctly, but it won’t redirect? Help would be great.

Here’s the link to the site

Since those files are in a folder, you have to include the folder in the href as well.

3 Likes

Nowwwwwwwww “open.html” won’t work :smiling_face_with_tear:

That’s because you don’t have an index.html file. If open.html is your main file, rename it to index.html and the repl should be fine. (Change any hyperlinks you have in other files if you have them)
Hope this helps!

3 Likes

rename open.html to index.html

change the code for the characters and the endings to include the appropriate folders. (Working code shown below)

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Homepage</title>
  <link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
  <center>
  <h1>
  Welcome To
  </h1>
    <h2>
      Cory's Counterworld!
    </h2>
    <h3>
      A magical, <strong>family-friendly</strong> establishment, full of fun for <strong>ALL AGES,</strong> combined with our newest cutting-edge animatronic technology!
    </h3>
    <h6>
      <b>C.C. Entertainment is not responsible for any injuries, deaths, or damages that may occur in, on, or around company property and premisis. Upon discovering that damage or death has occured, a missing persons report will be filed within 90 days or as soon as property and premisis have been thoroughly cleaned and bleached and the carpets have been replaced.</b>
    </h6>
    <br>
    <h2>Meet the characters!!</h2>
    <a href="Character HTML/cory_capybara.html">
      <button>Cory Capybara</button>
    </a>
    <a href="Character HTML/rook_raccoon.html">
      <button>Rook the Raccoon</button>
    </a>
    <a href="Character HTML/took_raccoon.html">
      <button>Took the Raccoon</button>
    </a>
    <a href="Character HTML/harry_highland_cow.html">
      <button>Harry the Highland Cow</button>
    </a>
    <a href="Character HTML/shimo_kitsune.html">
      <button>Shimo Kitsune</button>
    </a>
    <a href="Character HTML/radio_dude.html">
      <button>Radio Dude</button>
    </a>
    <br>
    <h2>
      <a href="Character HTML/odds_and_ends.html">
        <button><h2>Odds and Ends.</h2></button>
      </a>
    </h2>
    <br>
    <h2>Endings</h2>
      <a href="Endings HTML/goodending.html">
        <button>Good Ending</button>
      </a>
      <a href="Endings HTML/badending.html">
        <button>Bad Ending</button>
      </a>
      <a href="Endings HTML/iquitending.html">
        <button>I Quit Ending</button>
      </a>
      <a href="Endings HTML/springlockedending.html">
        <button>Springlocked Ending</button>
      </a>
      <a href="Endings HTML/raccoonifiedending.html">
        <button>Raccoonified Ending</button>
      </a>
      <a href="Endings HTML/firedending.html">
        <button>Fired Ending</button>
      </a>
      <a href="Endings HTML/loverending.html">
        <button>Lover Ending</button>
      </a>
      <a href="Endings HTML/fireending.html">
        <button>Fire Ending</button>
      </a>
      <a href="Endings HTML/raccoonifiedending.html">
        <button>Raccoonified Ending</button>
      </a>
    <br>
    
    
    </center>
</body>

</html>
1 Like