So I am having trouble with my HTML tags. So I will explain.
Imagine this.
1. You have a folder called Website.
2. Inside that folder you have index.html and a folder called file
3. Inside the file folder you have a file called page1.html
4. Inside of page.html you have this code \/
<!DOCTYPE html>
<html lang="en">
<head>
<title>Page1</title>
</head>
<body>
<a href="index.html">Home</a>
<a href="page1.html">Page1</a>
</body>
</html>
5. Inside index.html you have this code \/
<!DOCTYPE html>
<html lang="en">
<head>
<title>Website</title>
</head>
<body>
<a href="index.html">Home</a>
<a href="page1.html">Page1</a>
</body>
</html>
6. And I wont to be able to go back and forth between the 2 pages by clicking on the links. Dose anyone know how to do that? If you do, lease tell me.
In both cases you have linked to files in the same folder as the current HTML file.
To go one folder down you need to include the folder name followed by a slash:
Off-topic post moved here: http://forums.htmlhelp.com/index.php?showtopic=43619
Hi there sarika78,
Please note that "href" is not an element - it is an attribute
Here is a little further reading for your edification....
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href
The post you answered contained spam and was removed. In case you wonder where it went.
The post you answered contained spam and was removed.
In case you wonder where it went.
I had a sneaky suspicion that was the case but, unfortunately,
I had an uncontrollable urge to make a flippant response.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)