12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Frames<br />

tors. However, in some websites still in use by various employers, in the form of content<br />

management systems, frames are still in use.<br />

Frames usage made sense when internet connection speeds were much slower. You could<br />

use a frameset where one frame displayed your banner segment, another our navigation<br />

segment, and a third your footer segment – and kept the same content of these three<br />

frames displayed whenever the content segment frame was updated. Only the content<br />

frame changed, which made web page loading faster.<br />

Server-side includes now in use do this same thing, but allowing you to create separate<br />

files for your banner segment, navigation segment, footer segment, and repeating sidebar<br />

segments, and linking those files to your main web page where you change only the content.<br />

You can learn more about this when you study the Web languages that support them,<br />

but HTML/XHTML does not go this far.<br />

In frames you use one main page and swap parts for other pages. Each coded page needs<br />

all head section information, however.<br />

Frameset Page<br />

Your main frames page, index.html, is known as a Frameset page in frames use. It is the<br />

pager where you set the “structure” of how many frames will load into it, and it uses<br />

instead of tags.<br />

This frameset page also requires to use the frameset doctype:<br />

In the frameset you create links to separate pages that will be opened inside the frameset,<br />

such as your banner, nav, guts, and footer pages. Each of these web pages needs to use the<br />

standard doctype and body tags so that they display properly. Only the frameset page uses<br />

the frameset doctype and frameset tags in order to pull in these other pages for viewing.<br />

The pages that are pulled in need to be named so that you can direct the frameset where<br />

the file opening locations will be.<br />

183

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!