html b oot c amp chapter 11 frames kirkwood continuing education © copyright 2015, fred mcclurg all...

4
HTML BOOT CAMP Chapter 11 Frames Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved

Upload: brendan-bradley

Post on 13-Jan-2016

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: HTML B OOT C AMP Chapter 11 Frames Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved

HTML BOOT CAMP

Chapter 11Frames

Kirkwood Continuing Education

© Copyright 2015, Fred McClurg All Rights Reserved

Page 2: HTML B OOT C AMP Chapter 11 Frames Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved

<frameset> and <frame> Tag

Description: Defines a browser page into multiple independent window frames.

<!DOCTYPE html>

<html>

<frameset cols="25%,25%,*">

<frame src="one.html"

noresize="noresize">

<frame src="two.html">

<frame src="three.html">

<noframes>

Unable to view frame.

</noframes>

</frameset>

</html>

2

Chapter 11 > Frameset and Frame

Page 3: HTML B OOT C AMP Chapter 11 Frames Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved

Naming <frame> Tag

<!DOCTYPE html>

<html>

<frameset cols="25%,*">

<frame src="toc.html">

<frame src="cover.html"

name="content”>

<noframes>

Unable to view frame.

</noframes>

</frameset>

</html>

3

Chapter 11 > Link to Frame

Page 4: HTML B OOT C AMP Chapter 11 Frames Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved

Linking <frame> via “target”

Description: The <a> tag links a window frame via the “target” attribute.

Example:<dl>

<dt>

<a href="chapter01.html"

target="content">

Chapter 1</a>

</dt>

</dl>

4

Chapter 11 > Link to Frame