Is my home page setup OK?

liunx

Guest
I have my index.html as a very simple code that looks like this:<br />
<br />
<html><br />
<title><br />
My Webpage<br />
</title><br />
<frameset cols="200,*"><br />
<br />
<frame src=http://www.htmlforums.com/archive/index.php/"contents.html"><br />
<frame src=http://www.htmlforums.com/archive/index.php/"background.html"> <br />
<br />
</frameset><br />
<br />
<br />
Then there is a contents page on the right that you can navigate and a main page with news, etc....<br />
<br />
The layout doesnt seem to work when I hit view in cPanel.<br />
My images also do not show up, I have the image name<br />
as image.jpg. When the website was on my HD, i saw the images fine, but when I have the same setup on the web, no showwy... What seems to be the problem?<br />
<br />
Thanks,<br />
-Ty<!--content--><html><br />
<title><br />
My Webpage<br />
</title><br />
<frameset cols="200,*"><br />
<br />
<frame src=http://www.htmlforums.com/archive/index.php/"contents.html"><br />
<frame src=http://www.htmlforums.com/archive/index.php/"background.html"> <br />
<br />
</frameset><br />
<br />
<br />
This is how you should setup the above:<br />
<br />
<html><br />
<br />
<head><br />
<title>My Webpage</title><br />
</head><br />
<br />
<body><br />
<br />
<frameset cols="200,*"><br />
<frame src=http://www.htmlforums.com/archive/index.php/"contents.html" name="contents"><br />
<frame src=http://www.htmlforums.com/archive/index.php/"background.html" name="background"><br />
</frameset><br />
<br />
</body><br />
<br />
</html><br />
<br />
-------<br />
So what i have done here quickly is move your title in-between the <head> tags, The title must always be between these tags, It is also where you put your meta tags, But that is another story, next i have added <body> tags, This is where you add the rest of the html documents contents, So in this case your <frameset> must be in-between them, then i have closed the tags, Like "</ >" ...<br />
<br />
Now what i have also added to your <frame> is NAME="" , this allows other elements to be loaded in that location, so if you have a new html document to display say in your background frame you would make the link as such:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"document.html" target="background">Link</a><br />
<br />
So with href=http://www.htmlforums.com/archive/index.php/"" you add the new documents name in this & Link is the name of your link for that document...<br />
<br />
to add an image:<br />
<img src=http://www.htmlforums.com/archive/index.php/"image.gif"> where " image.gif " is your file name, better written as:<br />
<img src=http://www.htmlforums.com/archive/index.php/"image.gif" width=? height=? alt="image name"><br />
<br />
Where ? is the size & alt="" is the name of the image, it is important to add the alt=""...<br />
<br />
Well i have to go as it's 2:00am & i need all the sleep i can get, below is a few links that you should look at as they will help you on your way to making your website... jaeman<br />
<br />
Try this! (<!-- m --><a class="postlink" href="http://www.show.scot.nhs.uk/support/ClientScripts/ss04.htm">http://www.show.scot.nhs.uk/support/Cli ... s/ss04.htm</a><!-- m -->)<br />
<br />
And this! (<!-- m --><a class="postlink" href="http://www.werbach.com/barebones/">http://www.werbach.com/barebones/</a><!-- m -->)<br />
<br />
When you know a bit more (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/">http://www.w3.org/TR/html4/</a><!-- m -->)<!--content-->uhh no jeaman, the frame tags are the body.<br />
<br />
<html><br />
<br />
<head><br />
<title>My Webpage</title><br />
</head><br />
<br />
<frameset cols="200,*"><br />
<frame src=http://www.htmlforums.com/archive/index.php/"contents.html" name="contents"><br />
<frame src=http://www.htmlforums.com/archive/index.php/"background.html" name="background"><br />
</frameset><br />
<body><br />
<noframes><br />
you don't have a good browser.<br />
</noframes><br />
</body><br />
<br />
</html><!--content-->You'll need a DOCTYPE, Content-Type meta tag, and Content-Language meta tag too.<br />
<br />
I suggest you run that code through <!-- m --><a class="postlink" href="http://validator.w3.org/detailed.html">http://validator.w3.org/detailed.html</a><!-- m --> and alter it until there are zero errors. You'll need the HTML 4.01 Frameset DOCTYPE to be selected on that page too.<br />
<br />
<br />
A description and keywords meta tag would also be good.<!--content-->Thanks for clearing that up scoutt, You seem to teach me something every time you you post, Must be that you are the "mystical wise one"... jaeman:D<!--content-->Originally posted by giz <br />
You'll need a DOCTYPE, Content-Type meta tag, and Content-Language meta tag too.<br />
<br />
I suggest you run that code through <!-- m --><a class="postlink" href="http://validator.w3.org/detailed.html">http://validator.w3.org/detailed.html</a><!-- m --> and alter it until there are zero errors. You'll need the HTML 4.01 Frameset DOCTYPE to be selected on that page too.<br />
<br />
<br />
A description and keywords meta tag would also be good. <br />
<br />
I really have no idea what all this means, I tried looking for this stuff on the web, but I couldn't find anything. Could someone clear this up?<br />
<br />
Thanks<br />
-Ty<!--content-->Originally posted by jaeman <br />
Thanks for clearing that up scoutt, You seem to teach me something every time you you post, Must be that you are the "mystical wise one"... jaeman:D <br />
that is what I am here for, to teach, not write code ;)<br />
<br />
and yes I am the Mystical Wise One :P<!--content-->hey mystical wise one, could you teach me what im doing wrong, becaue the pages are not showing up. I have the code you wrote on my index.html.... this is in the public_html folder on my web host server. I have the other "pages" coded in the index.html as "contents.html" and "background.html". The contents.html and background.html files are in the same public_html folder on the web hosting server. Niether of them are loading at all. Do I need to specify a URL, or what? I am not sure what is going on.<br />
<br />
BTW my domain has not been "connected" to my web hosting service yet, but I don't know if this is the source of the problem. I thought if I just wanted to see my page, I could do so on my server, but since i didnt have the domain yet, it would actually be on the internet. Thanks again to anyone who can help!<br />
<br />
-Ty<!--content-->without seeing yoru site I can't give you any pointers. <br />
<br />
you should be able to see it on your machine locally since it is just html.<!--content-->>> I really have no idea what all this <br />
means, I tried looking for this stuff on the web, but I couldn't find anything. Could someone clear this up? <br />
<br />
Use the forum search button at the top of the page. I have answered that question about 30 or 40 times in the last year, right here on this forum. (I suggest: search string keyword list here all posts by giz will get you the answer).<br />
<br />
Additionally the best way to learn HTML code is to right click on a page, and view the source code of it. If you run the page through <!-- m --><a class="postlink" href="http://validator.w3.org/detailed.html">http://validator.w3.org/detailed.html</a><!-- m --> you can then also see if the code you are looking at is OK or is full of errors. You'll certainly soon learn what is right and wrong in coding that way.<!--content-->Giz is giving very good Validation advice, with the Doctype and everything, but... as good as it is to put it there, if you really have no idea what's going on, just ignore that for now. "For now" I said.<!--content-->oh ok, sorry, i was unaware... thanks for the advice<!--content-->
 
Back
Top