I would like to open my own (html) web in Explorer and link it to a file in the same web, but it says "I can't browse this page" and it doesn't link.
How can I link?
By the way, I write html in visual studio code.
If you open it in Internet Explorer and click the /boards/india.html/ part, it will not appear.(By the way, the code for /boards/india.html/ has already been written.)
<!DOCTYPE html>
<html>
<head>
<metacharset="utf-8"/>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>indiachan</title>
<style type='text/css'>
body {font-family:arial,helvetica,sans-serif;color:rgb(30,30,30);font-size:14px;background-color:rgb(240,240,240);}
h1 {font-size:26px;text-align:center;}
h3 {font-size: 16px; margin:3px;}
# What_is {max-width:600px;background-color:#fff; border:1px solid#444;padding:10px;margin:auto;}
# board_select {max-width:700px;background-color:#fff; border:1px solid#444;padding:10px;margin:auto;margin-top:20px;ext-align:center;line-height:200%;}
# board_select_inner a {margin-left:5px;margin-right:5px;}
</style>
</head>
<body>
<div id='about'>
<h1>Welcome to Indiachan.</h1>
<div id='what_is'>
<p>
Indiachan is a simple image-based bulletin board where anyone can post comments and share images about any topic. You do not need to register an account for posting. Indiachan will not use cookies or third party ads.
</p>
<p>
See <a href='/rules_and_faq.html/'>rules and faq</a> to learn more about using this site. And yes, this site is inspired by 4chan :)
</p>
</div>
</div>
<div id='board_select'>
<h3>boards : </h3>
<div id='board_select_inner'>
<a href='/boards/india.html/'>India</a> <a href='/boards/b.html/'>Random</a> <a href='/boards/a/'>Anime & Manga</a> <a href='/boa rds/meta/'>meta</a> <a href='/boards/japan.html/'></a>japan</a> <br>
</div>
</div>
</body>
</html>
The link to another file is described as follows, but I think it's because of some extra /
.
<a href='/boards/india.html/'>India</a>
If you start the linked file name with /
, the file will be interpreted as the absolute path, but the actual file should probably be referenced in a relative path, so it should be one of the following ways:
By the way, I think the /
that comes after the file name (*.html
) is also unnecessary.
<a href='./boards/india.html'>India</a>
<a href='boards/india.html'>India</a>
© 2024 OneMinuteCode. All rights reserved.