HTML: A Guide to Hard-Coding

 
   

Starting your first page

The Body

Paragraphs

Headings

Images

Fonts

More Fonts

Line Breaks

Links

Colors

Backgrounds

Horizontal Lines

Mailto

Basic Tables

Advanced Tables

Putting your page Online

Frames

Forms

The Head

JavaScript Drop-Down Menu

Cascading Style Sheets

Basic HTML tags

HTML Home

 

 

Dreamweaver Tutorial

Adobe Acrobat

Faculty Resource Center

 

Susan's Homepage

 

 

More on Frames

We could do almost the exact same thing as before, but this time use rows instead of columns.

We have already talked about rows and columns for the <frameset> tag, and these are generally all the attributes you need for this tag. The other attributes come in the <frame> tag.

"SRC" is obviously the most important attribute, but there are some others that will help you control how your page looks.

"Marginheight" and "marginwidth" allow you to control how close the content gets to the edge of the frame. I would use at least 3 pixels to make sure your content isn't smashed up against the frame.

"Frameborder" dictates whether there is a border around your frame if the content is not large enough to fill the whole frame. If you put "no" and there is too much information, some of the information will be cut off. "Yes" means that there is always a frameborder no matter what. I like to set my frameborder to 0 or "no" because then we have a seamless frame. It just looks a lot better on the page. This means, however, that I need to make sure I don't have too much content in the frame source.

"Noresize" means that the viewer cannot change the size of the frame. You may have seen pages where you could move the frame around. This is because the coder didn't specify noresize. Always use this because if you don't you do not have control over the way your page looks.

"Scrolling" Do you want people to be able to scroll? Usually, yes, but sometimes you don't. You would code scrolling=auto/yes/no.

"Name" is very important. You should always name your frame. I'll explain why later.

It doesn't look a whole lot different, but if you had a lot of content on the SRC page, you would definitely see the difference.

I said before that you can have rows or columns, but not both. What do you do if you want both? You have to nestle them.

For example, you want to make a page that looks like this:

This has a header going all the way across, which would be a row. It also has a column on the left for navigation, and a larger column in the middle for the bulk of the page.

You need to use two sets of <frameset> and put one within the other.

Go on to the next page.