How do you use directorys in HTML?

Status
Not open for further replies.

Glitchy

New Member
Messages
21
Reaction score
0
Points
0
If anyone can figure this out for me, then I'd be thanks. Say my index was in www, but all my files are in the glitchy folder. How do I point to that in HTML? I can't get my CSS or my pages to work.
 

Chris73

New Member
Messages
5,356
Reaction score
1
Points
0
unless it's a 2nd page. Take them out of any folders that you might have them in. Minus the Images folder. They can all stay in there. should look something like this. home/name/public_html/index.html
home/name/public_html/css style


Those are examples.
 

Glitchy

New Member
Messages
21
Reaction score
0
Points
0
unless it's a 2nd page. Take them out of any folders that you might have them in. Minus the Images folder. They can all stay in there. should look something like this. home/name/public_html/index.html
home/name/public_html/css style


Those are examples.

That still doesn't work. But I did move my CSS file. Here is my header:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><link rel="stylesheet" type="text/css" href="home/name/public_html/style2.css ">
<HEAD><link rel="shortcut icon" href="/public_html/images/sll.ico" type="image/vnd.microsoft.icon">
<link rel="icon" href="/public_html/images/sll.ico"" type="image/vnd.microsoft.icon">
<title>Super Luigi Land: All about the guy in green</title>
<body>
 

Chris73

New Member
Messages
5,356
Reaction score
1
Points
0
And your style2.css is in the public_html folder and not in a folder in the public_html?
 
Last edited:

*Face

New Member
Messages
62
Reaction score
0
Points
0
In a web browser, /public_html/ is just one slash "/" for you. Replace all public_html with that one slash and you should be fine.
Edit:
... I should clarify.

Move all your websites files from your "glitchy folder" to public_html/.

Then, delete "public_html" (keep the slash at the end of it) from all your paths, and everything before. So:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><link rel="stylesheet" type="text/css" href="home/name/public_html/style2.css ">
<HEAD><link rel="shortcut icon" href="/public_html/images/sll.ico" type="image/vnd.microsoft.icon">
<link rel="icon" href="/public_html/images/sll.ico"" type="image/vnd.microsoft.icon">
<title>Super Luigi Land: All about the guy in green</title>
<body>
Should look like:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><link rel="stylesheet" type="text/css" href="/style2.css ">
<HEAD><link rel="shortcut icon" href="/images/sll.ico" type="image/vnd.microsoft.icon">
<link rel="icon" href="/images/sll.ico"" type="image/vnd.microsoft.icon">
<title>Super Luigi Land: All about the guy in green</title>
<body>
 
Last edited:

Glitchy

New Member
Messages
21
Reaction score
0
Points
0
In a web browser, /public_html/ is just one slash "/" for you. Replace all public_html with that one slash and you should be fine.
Edit:
... I should clarify.

Move all your websites files from your "glitchy folder" to public_html/.

Then, delete "public_html" (keep the slash at the end of it) from all your paths, and everything before. So:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><link rel="stylesheet" type="text/css" href="home/name/public_html/style2.css ">
<HEAD><link rel="shortcut icon" href="/public_html/images/sll.ico" type="image/vnd.microsoft.icon">
<link rel="icon" href="/public_html/images/sll.ico"" type="image/vnd.microsoft.icon">
<title>Super Luigi Land: All about the guy in green</title>
<body>
Should look like:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><link rel="stylesheet" type="text/css" href="/style2.css ">
<HEAD><link rel="shortcut icon" href="/images/sll.ico" type="image/vnd.microsoft.icon">
<link rel="icon" href="/images/sll.ico"" type="image/vnd.microsoft.icon">
<title>Super Luigi Land: All about the guy in green</title>
<body>

Thanks! It looks great now!
 
Status
Not open for further replies.
Top