Help - Search - Members - Calendar
Full Version: Web Hosting, .html files?
Forums > Resource Center > Webmasters' Corner > Resolved Topics
nikx618
okay, so i made a file on notepad, and saved it as a .html file.
right?
inside the .html file, is it just content? or is it the whole website template too?
like, do i copy the template EVERY time, i make a .html file, with different content?

&after i loaded the .html file to cPanel on 000webhost.com
i tried to make a link like this
<p><a class="menu" href="root/layoutspage.html" target="_self">layouts</a><br />
&it does not work, it shows

***Error 404 - The Webpage cannot be found

Most likely causes:

* You clicked a link that can be outdated
* You are trying to access file that does not exists on server
* Domain you are trying to access is not configured on this server (website was removed or is not setup or DNS has not propagated yet).***


i mean, wtf is with that. i loaded the .html file to the root directory, and it says it cannot be found.

anyone please help?
i'm going crazy. xP

this is the site
http://subliminalgreen.net76.net/



thanks in advance[:
karmakiller
You mean copying the template as in the layout for you site and stuff? If you're using html, then you probably have to. Otherwise, you could use PHP Includes. And the template will be in one place where you can edit it, rather than having to copy it to every page that you create.

Have you tried using the whole URL, like:
CODE
<p><a href="http://subliminalgreen.net76.net/root/layoutspage.html" class="menu" target="_self">layouts</a></p>

nikx618
grrrr, i tried
http://subliminalgreen.net76.net/root/layoutspage.html
then
http://subliminalgreen.net76.net/layoutspage.html

both dont work.

&when i do save it and look again it changes it to
/root/layoutspage.html
&
/layoutspage.html


i am unfamiliar with PHP. X[
is there anyway i can learn, if so HOW, &WHERE?
here? lmfao. but, i mean i am so confused, i am wondering
how other people learned this stuff.

im just wondering why it wont show up after i loaded the
html file. ughhhhhhh
Smarmosaur
yes, with HTML, you have to put the template in each page. to save some time srolling, you can make a seperate file named style.CSS, put your CSS in there (without style tags), and link it in each page, using this:
CODE
<link href="style.css" rel="stylesheet" type="text/css" />


note, you could also use some sort of frames (iframe would be your best bet, they're easier). frames are exactly as they sound, a frame. it lets you load a new "page" (which would be just a file with the content) in the selected area. it also cuts down on load time for your page.
you can find an iframe on the internet, or click here to go to the one here on CB.
nitrogoat
Ok I started learning website design from scratch as well.

Get out there and read read read tutorials- they'll boost your understanding and teach you a lot in a short time.

It's very hard for us to answer some of your questions because they really are fundamental aspects of web design.

I wouldn't start bothering yourself over PHP just yet. Dive headfirst into some HTML tutorials and grasp the basics then start learning how to mix in some CSS as well to get your pages looking funky.

There really are a wealth of tutorials out there, just use google and search.

I've written one as well- First website

Also, i started from your position as well and built my site from scratch with little to no help.
venti-anemoi
So if you named your file layoutpage.html, then like it like so:

CODE
<a href="layoutpage.html">LAYOUTS</a>


You DO NOT, I repeat, DO NOT need "root/" or "/" before it. At least in my experience you don't.

I agree with nitrogoat; you don't want to be worrying about PHP or CSS when you're just starting out. Get a good grasp on the basics of HTML first.
Smarmosaur
actually, 000webhost does only work with a / in front of it. pinch.gif or at least for me.
nikx618
thanks guys! im at the part where, look at this,

http://subliminalgreen.net76.net

every page is a PHP file, with the whole layout
in every single one of them
but with different content.
i know im probably doing it wrong,
but it still works okay right?


i understand and pretty much know html, &css stuff, mostly.
for like myspace. i know headers and images and links, and fonts.

but yeah, i think i get it, i just dont get how you can
avoid copying the layout every single time,
cause then youll have to edit ALL of them, if you edit one thing.
you know?

but that the only thing, i dont get ^
but, i ahve been saving the stuff as .php files instead of .html
&it seems to be working fine.
thanks for your guys' help[:

venti-anemoi
Oh, really? Huh. That's kind of strange. Nevermind, then.

But Niko, I thought you got everything working already?
nikx618
yeeah, i got it. well, i dont GOT it. i mean, i get it.
lmfao, thanks EVERYONE for your help. [x


TOPIC RESOLVED, PLEASE CLOSE
or move to resolved?

biggrin.gif
manny-the-dino
Topic Closed & Moved
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.