everyone. I am currently working on the CS50 pset5 homepage problem. I have encountered a problem in my code. The code needs to contain at least four different .html pages, and it should be possible to get from any page on your website to any other page by following one or more hyperlinks. I have created four .html pages, and am able to use the link to go to other pages, but only for once.
Suppose I first clicked into page a.html, then the css and the link works fine. Then if I use the link on page a to get to other html pages, then the css code will fail, then if I try to go to another page from the second page, then it will fail, and the CSS code would fail again.
This is the code of html page B. Any advice would be helpful! Thanks!
<!DOCTYPE html> <html lang="en"> <head> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"> <link href="styles.css" rel="stylesheet"> <title>My Webpage</title> </head> <body> <p> This is Page B! </p> <p> Visit <a href="Hello World.html/">Hello World</a>. </p> <p> Visit <a href="a.html/">a</a>. </p> <p> Visit <a href="index.html/">index</a>. </p> </body> </html>