Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames

Status
Not open for further replies.

Franky000

Technical User
Nov 25, 2005
1
GB
Ok, i'm new to XHTML (or any form of web design), so bear with me. Basically, I am using the frames below as a template for a web site which consists of four different pages, with each one having the same set of frames -

- a frame at the top for the heading
- a frame in the middle for the main body of text
- a frame down the side for links to other pages

1. How do I create the actual individual web pages;
2. How do I insert the frames within them, i.e.link them up;
3. How do I enter information within the frames.

I have no idea what im doing so go easy with me :)

Thanks.

------


<?xml version="1.0" encoding = "UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"<html xmlns=" xml:lang="en" lang="en">
<head>

<!-- header - edit "Data/yourXhtmlHeader" to customize -->
<!-- contents - edit "EventHandlers/XML file/onCreate" to customize -->

<title>Title</title>

</head>
<frameset rows="15%,*">
<frame name="title" src = "titleframepage.html" frameborder="0"/>
<frameset cols="20%,*">
<frame name= "links" src = "linksframepage.html" frameborder="0"/>
<frame name="main" src = "mainframepage.html" frameborder="0"/>
</frameset>
</frameset>

</html>
 
A frame is just the same as a regular page so you would just create it as you would any other page.

A frameset is a way of displaying one or more frames within the same browser window.

I would advise that you make a frameset with two frames instead of three. Whatever you were going to put in the header just put in the left frame.

See faq215-5692 which should answer most of your questions. You need a different doctype for the frameset page.


Clive
 
Franky-

Do read the faq Clive posted.

Since you mentioned being new to the web design community I feel these tips might be of use to you:

[ul]
[li]Spend time surfing the web. Look at others designs, layouts, presentation techniques. forum253 is a good place to do this.[/li]
[li]When you see a design you like look at how it is done. This takes patience (lots!). Most browsers have an option to view the source code -- check it out and see how they did what they did[/li]
[li]Go through the faq based tutorial here: faq215-716, faq215-717, faq215-720, faq215-724, faq215-725 and surf the web for more tutorials[/li]
[li]Remember (especially when viewing other peoples coding) not all working HTML is good HTML.[/li]
[li]Have fun with it[/li]
[li]Lastly (even though I could probably go on for quite some time...) make sure to never stop learning. Webdesign is an ever-changing world with new techniques and technologies coming out every time you blink.[/li]
[/ul]
Welcome to the web site design world and tek-tips! It can be overwhelming, Post your questions here!

Robert Carpenter
"Disobedience to conscience is voluntary; bad poetry, on the other hand, is usually not made on purpose." - C.S. Lewis (Preface to Paradise Lost)
ô¿ô
 
Franky,

Also please bear in mind that you can build this same layout without using frames which will improve the usability of the site for your visitors.


Tony
 
I agree with Tony on this one. With newer CSS becoming more widely supported, frames are rarely needed for a site to look or function well.

Personally, I'd avoid them unless you find you need them for a specific purpose.

Hope this helps,
Dan




[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top