Pub. Date:
Instant HTML Programmer's Reference HTML 4.0 Edition / Edition 2

Instant HTML Programmer's Reference HTML 4.0 Edition / Edition 2


Current price is , Original price is $19.95. You

Temporarily Out of Stock Online

Please check back later for updated availability.

This item is available online through Marketplace sellers.

Product Details

ISBN-13: 9781861001566
Publisher: Apress
Publication date: 01/01/1998
Edition description: 1997
Pages: 432
Product dimensions: (w) x (h) x 0.05(d)

Read an Excerpt

Chapter 7: Frames


This is supported by both browsers in versions 3 and 4, and specifies whether the frame will be shown with a 3-D border. The syntax is:

where value is either 1 (yes) or 0 (no) The default, if omitted, is yes, as you can see from the previous screen shots. You can use YES or NO instead of the values 1 and 0.


This is supported only by Internet Explorer 3 and 4, and is used to add extra space between frames. The syntax is:


where spacing is the amount of space in pixels.

While you are experimenting with frames, you may notice problems using the 'reload' option on your browser. Some browsers only reload the current frame. Whilst this is often appropriate when viewing a document across a slow modem link, it may not be what you want if you are experimenting with frame layouts. Look instead for an option to re-open the entire document.

The <FRAME> Element

The <FRAME> element provides the following attributes:


plus the usual HTML 4.0 attributes ID, CLASS, STYLE and TITLE.


Renders a 3-D edge border around the frame. The syntax is:


where value is 0, 1, NO or YES. The default is 1 (YES) which inserts a border, while 0 (NO) displays no border. Thiswill over-ride any FRAMEBORDER attribute set using the <FRAMESET> element.


Drefines the amount of space between the top and bottom edges of a frame and its contents. The syntax is:


where height is the amount of space in pixels. This value cannot be less than one (i.e. when the contents touch the frame border).


Defines the amount of space between the left and right edges of a frame and its contents. he syntax is:


where width is the amount of space in pixels. As with MARGINHEIGHT, the value must be 1 or greater. You should generally use MARGINHEIGHT and MARGINWIDTH as a pair, as specifying one without the other can lead to some unexpected effects.


Allows you to specify a name for the frame. The syntax is:


This allows you to attach a name to a particular frame, so that pages can be targeted at it in hypertext links from another frame. We'll look at an example later in this chapter.


Prevents the user from resizing the frame. The syntax is simply:


By default, users can resize frames by dragging the borders. Including NORESIZE prevents this, but should be used only when necessary as the user may be viewing your documents at a lower resolution, and may prefer to resize the frame rather than scroll up and down or left and right.


Creates a frame with or without scrollbars. The syntax is:


where value can be YES (scrollbars are always displayed, even if the page content fits within the frame), NO (scrollbars are not displayed, even if the page content is too large for the frame) or AUTO (scrollbars are only displayed when the content is larger than the frame). Again, you need to use this only when absolutely necessary. Setting SCROLLING=NO and NORSIZE could render your site very difficult to use for someone with a low resolution screen, and hence a small browser window.

Table of Contents

An Introduction to HTML 1
How the World Wide Web Works 2
Some Terminology 3
Introduction to SGML and the HTML DTD 3
The DTD 5
HTML Standards and Specifications 5
What You Need to Use this Book 6
Chapter 1: Creating an HTML Document 9
Web Page Authoring 9
Scripting Languages 9
JavaScript 10
VBScript 10
ECMAScript 10
Dynamic HTML 11
Which Language Do I Use? 11
The Different Components of HTML 11
Tags and Elements 11
Start and End Tags 12
Nesting Elements 13
Attributes 13
Creating an HTML Document 14
The <!DOCTYPE> Element 15
The <HTML> Element 15
The <HEAD> Element 16
Universal Attributes 16
Attributes of <HEAD> 17
Elements That <HEAD> Can Enclose 17
The <TITLE> Element 18
The <BASE> Element 18
The <ISINDEX> Element 19
The <LINK> Element 19
The <STYLE> Element 21
The <SCRIPT> Element 21
The <META> Element 21
Using the <META> Element 22
About Ratings 23
The <BODY> Element 24
The HTML 4.0 <BODY> Attributes 24
Deprecated Attributes of <BODY> 24
Internet Explorer Extensions to <BODY> 26
Colors 27
An Example Page 27
Adding Comments 29
Revision Numbers 29
Summary 30
Chapter 2: Formatting Text 31
Text Layout 31
Headings 31
The <Hn> element 31
Breaking up Text 32
The <P> (Paragraph) Element 33
The <br> (Line Break) Element 33
L<DL> (Definition List) Element 38
The <DT> (Definition Term) Element 38
The <DD> (Definition Description) Element 39
Using <DL>, <DT> and <DD> 39
The <HR> (Horizontal Rules) Element 40
Allowable Attributes 40
Internet Explorer Specific Attributes 41
Using Horizontal Rules 41
Text Emphasis and Style 42
Fonts 42
The <FONT> Element 43
Navigator 4 Specific Attributes 44
The <BASEFONT> Element 45
Physical and Logical Style Tags 46
Physical Tags 46
Logical Tags 47
The <MARQUEE> Element 48
Summary 51
Chapter 3: Styles and Style Sheets 53
Using Styles and Style Sheets 53
What are Style Sheets? 54
Advantages of Style Sheets 54
Why use Style Sheets? 54
Why are Style Sheets more important in HTML 4.0? 55
Style Sheets in Action 55
Creating Style Sheets 57
Syntax 57
Inheritance 58
Contextual Selectors 59
Pseudo-classes and Pseudo-elements 59
How do Style Sheets Cascade Anyway? 60
Linking Style Sheets to your document 62
Using <LINK> 62
Using <STYLE> 62
Using @import 63
Applying Cascading Style Sheets 64
Classes 64
The <DIV> element 65
The <SPAN> element 67
Using the STYLE attribute with Individual Tags 69
Summary 69
Chapter 4: Images and Inclusions 71
What are Inclusions? 71
Image Files and Formats 72
The GIF Image Format 72
The Right Number of Colors 72
Transparent GIFs 73
Interlaced GIF Images 73
Animated GIF Files Element 79
Some Examples of Using Images 79
Using the <IMG> Element 80
Adding a LOWSRC Attribute 80
Using the ALT Attribute 80
Using Transparent GIFs 81
Wrapping Text Round an Image 81
The Single Pixel GIF Trick 82
Summary 83
Chapter 5: Linking to Other Files 85
Creating Hypertext Links 85
Uniform Resource Locators 85
The Type and Format of URLs 86
Relative URLs Inside an HTML Document 88
Anchors Within A Page 88
The HyperText Elements 88
The <A> Anchor Element 88
Internet Explorer <A> Extensions 91
The <BASE> Element 92
Other Linking Elements 92
Hypertext Link Examples 93

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews