Beginning Web Programming with HTML XHTML and CSS Jon Duckett download
Beginning Web Programming with HTML XHTML and CSS Jon Duckett download
https://ebookname.com/product/beginning-web-programming-with-
html-xhtml-and-css-jon-duckett/
https://ebookname.com/product/html-your-visual-blueprint-for-
designing-effective-web-pages-with-html-css-and-xhtml-1st-
edition-paul-whitehead/
https://ebookname.com/product/html-xhtml-css-for-dummies-7th-
edition-ed-tittel/
https://ebookname.com/product/html-xhtml-and-css-
comprehensive-6th-ed-edition-gary-b-shelly/
https://ebookname.com/product/the-housebuilder-s-bible-13th-
edition-mark-brinkley/
Statistical modeling for biomedical researchers 1st
Edition William D. Dupont
https://ebookname.com/product/statistical-modeling-for-
biomedical-researchers-1st-edition-william-d-dupont/
https://ebookname.com/product/how-to-read-a-poem-1st-edition-
terry-eagleton/
https://ebookname.com/product/data-mining-using-sas-applications-
chapman-hall-crc-data-mining-and-knowledge-discovery-series-1st-
edition-george-fernandez/
https://ebookname.com/product/advanced-java-programming-uttam-
kumar-roy/
https://ebookname.com/product/the-value-added-
employee-31-competencies-to-make-yourself-irresistible-to-any-
company-2nd-edition-edward-j-cripe/
Enacting a Pedagogy of Teacher Education Values
Relationships and Practices 1st Edition Tom Russell
https://ebookname.com/product/enacting-a-pedagogy-of-teacher-
education-values-relationships-and-practices-1st-edition-tom-
russell/
59313ffirs.qxd:WroxPro 3/22/08 2:30 PM Page v
Beginning
Web Programming with
HTML, XHTML, and CSS
Second Edition
Jon Duckett
59313ffirs.qxd:WroxPro 3/22/08 2:30 PM Page iv
59313ffirs.qxd:WroxPro 3/22/08 2:30 PM Page i
Beginning
Web Programming with
HTML, XHTML, and CSS
Second Edition
59313ffirs.qxd:WroxPro 3/22/08 2:30 PM Page iv
59313ffirs.qxd:WroxPro 3/22/08 2:30 PM Page v
Beginning
Web Programming with
HTML, XHTML, and CSS
Second Edition
Jon Duckett
59313ffirs.qxd:WroxPro 3/22/08 2:30 PM Page vi
Credits
Acquisitions Editor Vice President and Executive Group Publisher
Jennifer Watson Richard Swadley
Production Manager
Tim Tate
59313ffirs.qxd:WroxPro 3/22/08 2:30 PM Page x
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xi
Contents
Introduction xxiii
Contents
The <acronym> Element Is for Acronym Use 31
The <dfn> Element Is for Special Terms 32
The <blockquote> Element Is for Quoting Text 32
The <q> Element Is for Short Quotations 33
The <cite> Element Is for Citations 33
The <code> Element Is for Code 34
The <kbd> Element Is for Text Typed on a Keyboard 34
The <var> Element Is for Programming Variables 35
The <samp> Element Is for a Program Output 35
The <address> Element Is for Addresses 36
Lists 36
Using the <ul> Element to Create Unordered Lists 36
Ordered Lists 37
Definition Lists 39
Nesting Lists 40
How It Works 43
Editing Text 45
Using <ins> to Indicate New Additions to Text 46
Using <del> to Indicate Deleted Text 46
Using Character Entities for Special Characters 47
Comments 47
The <font> Element (deprecated) 48
Understanding Block and Inline Elements 48
Grouping Elements with <div> and <span> 49
Summary 50
Exercises 51
xii
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xiii
Contents
Advanced E-mail Links 74
Summary 75
Exercises 76
xiii
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xiv
Contents
Chapter 5: Forms 139
Introducing Forms 140
Creating a Form with the <form> Element 141
The action Attribute 142
The method Attribute 142
The id Attribute 142
The name Attribute (deprecated) 142
The onsubmit Attribute 143
The onreset Attribute 143
The enctype Attribute 144
The accept-charset Attribute 144
The accept Attribute 144
The target Attribute 145
White Space and the <form> Element 145
Form Controls 145
Text Inputs 145
Buttons 150
Checkboxes 154
Radio Buttons 156
Select Boxes 158
File Select Boxes 164
Hidden Controls 165
Object Controls 166
Creating Labels for Controls and the <label> Element 169
Structuring Your Forms with <fieldset> and <legend> Elements 171
Focus 173
Tabbing Order 173
Access Keys 175
Disabled and Read-Only Controls 176
Sending Form Data to the Server 178
HTTP get 178
HTTP post 179
Summary 183
Exercises 183
xiv
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xv
Contents
Browser-Specific Extensions to the <frameset> Element 192
The <frame> Element 194
The src Attribute 195
The name Attribute 195
The frameborder Attribute 195
The marginwidth and marginheight Attributes 196
The noresize Attribute 196
The scrolling Attribute 196
The longdesc Attribute 197
The <noframes> Element 197
Creating Links Between Frames 198
Setting a Default Target Frame Using the <base> Element 200
Nested Framesets 200
Floating or Inline Frames with <iframe> 204
The <iframe> Element 206
Summary 209
Exercises 209
xv
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xvi
Contents
The text-transform Property 235
The letter-spacing Property 236
The word-spacing Property 237
The white-space Property 237
The direction Property 238
The unicode-bidi Property 239
Text Pseudo-Classes 239
The first-letter Pseudo-Class 239
The first-line Pseudo-Class 240
Selectors 243
Universal Selector 243
The Type Selector 243
The Class Selector 244
The ID Selector 244
The Child Selector 244
The Descendent Selector 245
The Adjacent Sibling Selector 245
Using Child and Adjacent Sibling Selectors to Reduce Dependence
on Classes in Markup 245
Attribute Selectors 247
Lengths 249
Absolute Units 249
Relative Units 249
Percentages 251
Introducing the Box Model 251
An Example Illustrating the Box Model 252
The Border Properties 255
The padding Property 258
The margin Property 259
Dimensions 260
Summary 270
Exercises 270
xvi
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xvii
Contents
Lists 283
The list-style-type Property 284
The list-style-position Property 285
The list-style-image Property 286
The list-style Property (the shorthand) 286
The marker-offset Property 287
Tables 287
Table-Specific Properties 289
The border-collapse Property 289
The border-spacing Property 291
The caption-side Property 292
The empty-cells Property 292
The table-layout Property 294
Outlines 294
The outline-width Property 295
The outline-style Property 295
The outline-color Property 295
The outline Property (the shorthand) 296
The :focus and :active Pseudo-Classes 296
Generated Content 297
The :before and :after Pseudo-Elements 297
The content Property 298
Miscellaneous Properties 301
The cursor Property 301
The display Property 302
The visibility Property 302
Additional Rules 304
The @import Rule: Modularized Style Sheets 304
The @charset Rule 305
The !important Rule 305
Positioning with CSS 305
Normal Flow 306
The position Property 306
Box Offset Properties 307
Relative Positioning 307
Absolute Positioning 309
Fixed Positioning 310
The z-index Property 311
Floating Using the float Property 312
The clear Property 314
Summary 320
Exercises 321
xvii
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xviii
Contents
Chapter 9: Page Layout 323
Understanding the Site 323
Understanding a Site’s Aims 324
Whom You Expect to Visit 325
New Content 326
Defining Your Site’s Content 326
Grouping and Categorization 327
Creating a Site Map 328
Identifying Key Elements for Every Page 329
Page Size (and Screen Resolution) 330
Fixed-Width vs. Liquid Designs 331
Designing Pages 337
Sketching the Placement of Elements 337
Introducing the Style 339
Navigation 342
Home Pages 345
Content Pages 345
Structuring Pages 346
Single-Column Layouts 348
Two-Column Layouts 350
Three-Column Layouts 353
Sacrificial Columns 354
Advanced Layout Using CSS 356
Creating a Layout Using Nested Tables 356
Summary 359
Exercises 359
xviii
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xix
Contents
Shading Multiple Rows of a Table 378
Forms 380
Before Designing the Form 380
Designing the Form 382
Summary 401
Exercises 401
xix
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xx
Contents
for 434
Infinite Loops and the break Statement 435
Events 435
Built-in Objects 437
String 437
Date 441
Math 444
Array 446
Window 447
Writing JavaScript 449
A Word About Data Types 450
Keywords 451
Summary 451
Exercises 452
xx
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xxi
Contents
When Not to Use JavaScript 496
Drop-Down Navigation Menus 497
Hiding Your E-mail Address 497
Quick Jump Select Boxes 497
Anything the User Requires from Your Site 497
Summary 498
Exercises 498
xxi
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xxii
Contents
Appendix A: Answers to Exercises 539
Index 715
xxii
59313flast.qxd:WroxPro 3/22/08 2:31 PM Page xxiii
Introduction
There are a lot of books about designing and building web pages, so thank you for picking up this one.
Why do I think it is different? Well, the Web has been around for over a decade now, and during its life
many technologies have been introduced to help you create web pages, some of which have lasted, others
of which have disappeared. Many books that teach you to write web pages are revisions of earlier versions
of the same book and therefore still take the same approach as the previous edition did. The purpose of
this book, however, is to teach you how to create pages for the Web as it is today and will be for the next
few years. Then, once you have worked through this book, it should continue to serve as a helpful refer-
ence text you can keep nearby and dip into when you need to.
At one time, you needed to learn only one language to write web pages: HTML. As the Web has advanced,
however, so have the technologies you need to learn in order to create effective and attractive web pages.
As the title of this book suggests, you will be learning a few different languages:
❑ HTML and XHTML: HTML and XHTML are needed to explain the structure of any web pages.
They’re used to indicate what text should be considered a heading, where paragraphs start and
end, and what images should appear in the document, and to specify links between different
pages. As you might be relieved to hear, you shouldn’t think of HTML and XHTML as two sep-
arate languages. Rather, you can consider XHTML as more like the latest version of HTML.
❑ CSS: CSS is used to control how a document should appear. For example, you can use it to spec-
ify that a typeface should be a large, bold, Arial typeface or that the background of a page should
be a light green. It can also be used to control where different items appear on a page. For example,
you can use CSS to present text in two columns on the same page.
❑ JavaScript: You learn a little bit of JavaScript to add interactivity to the web pages you create, and
to work with the browser displaying the web page.
Despite the fact that you are looking at several languages, not just HTML, you can consider it a very good
time to be coming to the Web because many of the technologies used to create web pages have matured,
and favored methods, or “best practices,” for creating web sites have been emerging. It is these that you
will be learning.
The tradition which attributes the Fourth Gospel to John the son of
Zebedee is confirmed by the testimony of the Gospel itself. Although
the book does not mention the name of its author it clearly implies
who he was.
(1) Indirectness of the Testimony.—This testimony of the
Gospel itself is all the more valuable because it is indirect. If the
name John had been mentioned at the beginning, then it might
conceivably be supposed that an unknown author had desired to
gain a hearing for his work by putting it falsely under the name of a
great apostle. As it is, the inference that the author claims to be
John the son of Zebedee, though certain, does not force itself upon
the careless reader. A forger would not thus, by the indirectness of
his claim, have deprived himself of the benefits of his forgery.
The testimony of the Gospel to its author must now be considered.
(2) The Author an Eyewitness.—In the first place, almost at the
very beginning, we observe that the author claims to be an
eyewitness of the life of Jesus. "We beheld his glory," he says in
John 1:14. By beholding the glory of Christ he evidently does not
mean merely that experience of Christ's power which is possessed
by every Christian. On the contrary, the glory of Christ, as it is
intended by the evangelist, is fully explained by such passages as ch.
2:11. The miracles of Jesus—palpable, visible events in the external
world—are clearly included in what is meant. It will be observed that
in ch. 1:14 it is very specifically the incarnate Christ that is spoken
of. The evangelist is describing the condition of things after "the
Word became flesh." Evidently, therefore, it was the earthly life of
Jesus which the evangelist claims to have "beheld."
This conclusion is confirmed by I John 1:1-4. Scarcely anyone doubts
that the First Epistle of John was written by the man who wrote the
Gospel. When, therefore, the author of the epistle speaks of "that
which we have heard, that which we have seen with our eyes, that
which we beheld, and our hands handled, concerning the Word of
life," evidently these words have significance for the Gospel also.
The author fairly heaps up expressions to show, beyond all
possibility of misunderstanding, that he had come into actual
physical contact with the earthly Jesus.
(3) The Unnamed Disciple of John 1:35-42.—The author of the
Fourth Gospel, then, clearly claims to be an eyewitness of the
earthly life of Christ. Further indications identify him with a particular
one among the eyewitnesses. In John 1:35-42, an unnamed disciple
of Jesus is mentioned. "One of the two," it is said in v. 40, "that
heard John speak, and followed him, was Andrew, Simon Peter's
brother." Who was the other? There is some reason for thinking that
he was one of the two sons of Zebedee. But the matter will become
clearer as we proceed.
Another question is why this disciple is not mentioned by name. The
Fourth Gospel is not chary of names. Why, then, is the disciple who
appears so prominently along with Andrew and Simon not
mentioned by name? Only one plausible explanation suggests itself—
the explanation that the unnamed disciple was the author of the
Gospel, who, through a feeling common in the literature of antiquity,
as well as of our own time, did not like to mention his own name in
the course of his narrative. We have already observed that the
author claims to be an eyewitness of the life of Christ. John 1:14.
When, therefore, near the beginning of the narrative a disciple of
Jesus is introduced, rather mysteriously, without a name, when,
furthermore, events in which this disciple was immediately
concerned are narrated with unusual vividness and wealth of detail,
vs. 35-42, the conclusion becomes very natural that this unnamed
disciple is none other than the author himself.
(4) The Beloved Disciple.—This conclusion, it must be admitted,
so far as this first passage is concerned, is nothing more than a
likely guess. But by other passages it is rendered almost certain.
In John 13:21-25, a disciple is mentioned as leaning on Jesus' breast
and as being one whom Jesus loved. This disciple is not named. But
who was he? Evidently he was one of the twelve apostles, for only
the apostles were present at the Supper which is described in chs.
13 to 17. The disciple "whom Jesus loved," however, was not only
among the Twelve; he was evidently among the innermost circle of
the Twelve. Such an innermost circle appears clearly in the Synoptic
Gospels. It was composed of Peter and James and John. The
beloved disciple was probably one of these three; and since he is
clearly distinguished from Peter, ch. 13:24, he was either James or
John.
The introduction of an unnamed disciple, which seemed significant
even in John 1:35-42, becomes yet far more significant in the
present passage. In the account of the Last Supper, a considerable
number of the disciples are named—Peter, Judas Iscariot, Thomas,
Philip, Judas not Iscariot—yet the disciple who is introduced with
especial emphasis, whose very position at table is described with a
wealth of detail far greater than is displayed in the case of any of
the others, is designated merely as "one of his disciples, whom Jesus
loved." The strange omission of this disciple's name can be explained
only if he was the author of the book. Clearly the painter has here
introduced a modest portrait of himself in the midst of his great
picture.
Passing by John 18:15,16, where "the other disciple" is probably the
author, and ch. 19:26,27, where the repetition of the strange
designation, "the disciple ... whom he [Jesus] loved," confirms the
impressions derived from ch. 13:21-25, we discover another
important indication in ch. 19:35. "And he that hath seen hath borne
witness, and his witness is true: and he knoweth that he saith true,
that ye also may believe." "He that hath seen" can scarcely refer to
anyone other than the beloved disciple who was mentioned just
before as standing by the cross. In the present verse, this beloved
disciple is represented as the one who is now speaking. The
identification of the beloved disciple with the author of the Gospel,
which was implied before, here becomes explicit.
In John 20:1-10, "the other disciple whom Jesus loved" is of course
the same as the one who appears in ch. 13:21-25; 19:26,27,35.
(5) Testimony of the Appendix.—In John 21:7,20-23, the
beloved disciple appears again, and in v. 24 he is identified, in so
many words, with the writer of the Gospel. In this verse the first
person plural is used; other persons seem to be associated with the
author in commending the Gospel to the attention of the Church.
This phenomenon is explained if the twenty-first chapter be
regarded as a sort of appendix, perhaps added at the request of a
circle of friends. It will be observed that ch. 20:30,31 forms a fit
ending to the book; what follows therefore appears the more like an
appendix, though it was certainly written by the author's own hand
and published before his death along with the rest of the book.
(6) Why Are John and James Not Mentioned by Name?—The
conclusion of our investigation is that the author of the Fourth
Gospel indicates clearly that he was either one or the other of the
two sons of Zebedee. This conclusion is confirmed by the curious
circumstance that neither one of these men is mentioned in the
Gospel by name. How did they come to be omitted? They were in
the very innermost circle of Jesus' disciples; many apostles far less
prominent than they are named frequently on the pages of the
Gospel. There can be only one solution of the problem: one at least
of these men is, as a matter of fact, introduced in the Gospel as the
beloved disciple, and the reason why he is introduced in such a
curiously anonymous way and why his brother also is not named, is
that the author felt a natural delicacy about introducing his own and
his brother's name into a narrative of the Lord's life.
One statement that has just been made requires qualification: it is
not quite true that the sons of Zebedee are not designated by name
in the Gospel. They are not indeed called by their individual names,
but in ch. 21:2, they are designated by the name of their father.
Possibly this slight difference of usage between chapter 21 and the
rest of the Gospel has something to do with the fact that chapter 21
seems to be an appendix.
(7) The Author Was Not James, but John.—The author of the
Fourth Gospel, then, identifies himself with one or the other of the
sons of Zebedee. As to which one of the two is meant there cannot
be the slightest doubt. James the son of Zebedee was martyred in A.
D. 44. Acts 12:2. There is abundant evidence that the Fourth Gospel
was not written so early as that; and John 21:20-23 apparently
implies that the author lived to a considerable age. Evidently,
therefore, it is John and not James with whom the author identifies
himself.
(8) Is the Gospel's Own Testimony True?—Thus the singularly
strong tradition which attributes the Fourth Gospel to John the son
of Zebedee is supported by the independent testimony of the book
itself. Conceivably, of course, that testimony might be false. But it is
very hard to believe that it is. It is very hard to believe that the
author of this wonderful book, who despite all the profundity of his
ideas exalts in a very special manner the importance of simple
testimony based upon the senses, John 19:35; I John 1:1-4, has in a
manner far subtler and more heinous than if he had simply put a
false name at the beginning palmed himself off as an eyewitness of
the Saviour's life. Many learned men have found it possible to accept
such a view; but the simple reader of the Gospel will always be
inclined to dissent. The author of this book has narrated many things
hard to be believed. But there are still found those who accept his
solemn testimony; there are still found those in whom the purpose
of the book is achieved, who through this Gospel believe that Jesus
is the Christ, the Son of God, and believing have life in his name.
John 20:31.
The tradition about the Fourth Gospel is not confined to the bare
fact of Johannine authorship; it has preserved certain other very
interesting information.
(1) The Ephesian Residence.—For example, tradition represents
the Fourth Gospel as written after the other three Gospels and at
Ephesus. The evidence for the Ephesian residence of the apostle
John is singularly abundant and weighty; and the contrary evidence
which has been thought to attest an early death of John is
exceedingly weak. At first, John, like the others of the original
apostles, remained in Palestine. He appears in Jerusalem a little
before A. D. 50 at the Apostolic Council. Gal. 2:9. At some
subsequent time, perhaps at the outbreak of the Jewish war in A. D.
66, he journeyed to Asia Minor and there for many years was the
revered head of the Church. He lived indeed until the reign of Trajan,
which began in A. D. 98.
(2) The Gospel of John Supplementary to the Synoptic
Gospels.—According to tradition, the Gospel of John was not only
written after the Synoptic Gospels, but was intended to be
supplementary to them. This information is amply confirmed by the
Gospel itself. Evidently John presupposes on the part of his readers a
knowledge of the Synoptic account. This explains his peculiar choice
of material—for example, his omission of most of the Galilean
ministry, and of such events as the baptism and the institution of the
Lord's Supper. It explains also, for example, a verse like John 3:24:
"For John was not yet cast into prison." The Synoptic Gospels begin
their account of the ministry of Jesus with what happened after the
imprisonment of John the Baptist. Mark 1:14. Readers of Mark might
even receive the impression that Jesus had not begun his teaching
till after that time. John corrects any such impression in ch. 3:24.
If, then, the Gospel of John is intended not to compete with the
Synoptic Gospels, but to supplement them, in what direction does
the supplementing move? What is it that John adds to what had
already been told? Here, again, tradition affords us useful hints.
Eusebius, in the early part of the fourth century, writes as follows
(Church History, iii, 24, 7-13, translated by McGiffert, in "Nicene and
Post-Nicene Fathers," second series, vol. i, p. 153):
"And when Mark and Luke had already published their Gospels, they
say that John, who had employed all his time in proclaiming the
Gospel orally, finally proceeded to write for the following reason. The
three Gospels already mentioned [Matthew, Mark and Luke] having
come into the hands of all and into his own too, they say that he
accepted them and bore witness to their truthfulness; but that there
was lacking in them an account of the deeds done by Christ at the
beginning of his ministry. And this indeed is true. For it is evident
that the three evangelists recorded only the deeds done by the
Saviour for one year after the imprisonment of John the Baptist, and
indicated this in the beginning of their account. For Matthew, after
the forty days' fast and the temptation which followed it, indicates
the chronology of his work when he says: 'Now when he heard that
John was delivered up he withdrew from Judea into Galilee.' Mark
likewise says: 'Now after that John was delivered up Jesus came into
Galilee.' And Luke, before commencing his account of the deeds of
Jesus, similarly marks the time, when he says that Herod, 'adding to
all the evil deeds which he had done, shut up John in prison.' They
say, therefore, that the apostle John, being asked to do it for this
reason, gave in his Gospel an account of the period which had been
omitted by the earlier evangelists, and of the deeds done by the
Saviour during that period; that is, of those which were done before
the imprisonment of the Baptist. And this is indicated by him, they
say, in the following words: 'This beginning of miracles did Jesus';
and again when he refers to the Baptist, in the midst of the deeds of
Jesus, as still baptizing in Ænon near Salim; where he states the
matter clearly in the words: 'For John was not yet cast into prison.'
John accordingly, in his Gospel, records the deeds of Christ which
were performed before the Baptist was cast into prison, but the
other three evangelists mention the events which happened after
that time. One who understands this can no longer think that the
Gospels are at variance with one another, inasmuch as the Gospel
according to John contains the first acts of Christ, while the others
give an account of the latter part of his life. And the genealogy of
our Saviour according to the flesh John quite naturally omitted,
because it had been already given by Matthew and Luke, and began
with the doctrine of his divinity, which had, as it were, been reserved
for him, as their superior, by the divine Spirit."
According to Eusebius, then, John intended to treat the time before
the imprisonment of the Baptist as the Synoptists treated the time
after that event. We have already noted the element of truth in this
observation. Of course it is not the only observation that needs to be
made. Much of what John narrates occurred after the imprisonment
of the Baptist.
According to Clement of Alexandria, of the close of the second
century, who here reports what had been said by his predecessors in
Alexandria, John, seeing that "bodily" matters had been treated by
the Synoptists, supplemented their work by writing a "spiritual"
Gospel. In this testimony also there is no doubt an element of truth.
It is true that the Fourth Gospel reproduces certain profound
elements in the teaching of Jesus which in the earlier Gospels
appear only incidentally.
The oral tradition which forms the chief basis of the Synoptic
Gospels was rooted deep in the earliest missionary activity of the
Church. Especially, perhaps, in the Gospel of Mark, but also in
Matthew and Luke, we have for the most part those facts about
Jesus and those elements of his teaching which could appeal at once
to simple-minded believers or to outsiders. The Gospel of John, on
the other hand, drawing, like the others, from the rich store of Jesus'
teaching and Jesus' person, has revealed yet deeper mysteries. In
this profound book, we have the recollections of a beloved disciple,
at first understood only imperfectly by the apostle himself, but
rendered ever clearer by advancing experience, and firmly fixed by
being often repeated in the author's oral instruction of the Church.
With regard to the Fourth Gospel, the matter is not quite so plain.
The contrast between the Synoptists and John has already been
noticed. It forces itself upon even the most casual reader. Difference,
however, is not necessarily contradiction. It may be due to a
difference in the point of view. Both the Synoptists and John give a
true picture of Jesus; the same features appear very different when
viewed from different angles.
3. DIVINITY AND HUMANITY
The Epistle of James has been called the least Christian book in the
New Testament. Superficially this judgment is true. The name of
Jesus occurs only twice in the epistle, James 1:1; 2:1, and there is
no specific reference to his life and death and resurrection. A close
examination, however, reverses the first impression.
(1) James and the Synoptic Discourses.—In the first place, the
ethical teaching of James is permeated by the spirit of Jesus. Even
the form of the epistle displays a marked affinity for the discourses
of the Synoptic Gospels, and the affinity in content is even more
apparent. Many striking parallels could be cited; but what is more
convincing than such details is the indefinable spirit of the whole.
The way in which James treats the covetousness, the pride, the
heartlessness, the formalism, the pettiness and the meanness of his
readers, is strikingly similar to the way in which his Master dealt with
the Pharisees. James does not indeed actually cite the words of
Jesus; but the absence of citations makes the underlying similarity
all the more significant. The writer of this epistle did not live at a
time when the knowledge of the words of Jesus was derived from
books; rather he had himself listened to the Master—even though he
was not at first a disciple—and was living in a community where the
impression of Jesus' teaching and Jesus' person was still fresh in the
memory of those who had known him on earth.
(2) James and Christian Doctrine.—In the second place,
moreover, the Christianity of James is religious as well as ethical. Of
course it could not be like the teaching of Jesus if it were merely
ethical; for everything that Jesus taught even about the simplest
matters of human conduct was determined by the thought of the
heavenly Father and by the significance of his own person. But by
the religious character of the Epistle of James even more than this is
meant. Like all the writers of the New Testament James was well
aware of the saving significance of Jesus' death and resurrection. For
him as well as for the others, Jesus was Lord, ch. 1:1, and a Lord
who was possessed of a heavenly glory. Ch. 2:1. James, as well as
the others, was waiting for the second coming of Christ. Ch. 5:8. He
does not directly refer to the saving events that form the substance
of Christian faith; but he takes them everywhere for granted. The
word of truth through which the disciples have been formed by God,
ch. 1:18, the implanted word, v. 21, that needs ever to be received
anew, can hardly be anything else than the apostolic gospel as it
was proclaimed in the earliest speeches of Peter which are recorded
in The Acts, and as it found its rich unfolding in the teaching of Paul.
Just because that gospel in our epistle is presupposed, it does not
need to be expounded in detail. The men to whom James was
writing were not lacking in orthodoxy. If they had been, he would
have set them right, and we should have had another exposition of
the gospel. As a matter of fact their fault was in practice, not in
theory; and it is in the sphere of practice that they are met by
James. The epistle would be insufficient if it stood alone. It does not
lay the foundation of Christian faith. But it shows how, upon that
foundation, may be built not the wood, hay and stubble of a wordy
orthodoxy, but the gold and silver and precious stones of an honest
Christian life.
This epistle, then, might be misleading if taken by itself; but it
becomes salutary if it is understood in its historical connections. Far
from disparaging Christian doctrine—as the modern Church is
tempted to suppose—it builds upon doctrine. In that it agrees with
the whole of the Bible. Christianity, as has been finely said, is a life
only because it is a doctrine. Only the great saving events of the
gospel have rendered possible a life like that which is described in
the Epistle of James. And where the gospel is really accepted with
heart as well as mind, that life of love will always follow.
The view which will be held about the date of the Epistle of James
will depend very largely upon the interpretation of the passage
about faith and works. James 2:14-26. In that passage, some of the
same terms appear as are prominent in connection with the great
Judaistic controversy in which Paul was engaged from the time of
the Apostolic Council to the time of the third missionary journey.
Three views have been held with regard to the date of the Epistle of
James. The epistle may be regarded as written (1) before the
Judaistic controversy arose, (2) during that controversy or while it
was still fresh in men's minds, or (3) long after the controversy had
been settled.
(1) The Intermediate Date.—The second of these three views
may be eliminated first. This intermediate view has the advantage of
placing the epistle within the lifetime of James. It can treat the
epistle as authentic. It has furthermore the advantage of explaining
the coincidences between James 2:14-26 and Rom., ch. 4. For if the
epistle was written at the very close of the lifetime of James—say
about A. D. 62, or, following Hegesippus, A. D. 66—the author may
have become acquainted with the Epistle to the Romans.
But the difficulties of this view far overbalance the advantages. If
James was writing with Galatians and Romans before him, then
apparently in ch. 2:24 he intends to contradict those epistles. As a
matter of fact, however, as is shown in the Student's Text Book, he
does not really contradict them, but is in perfect harmony with them.
He has therefore gone out of his way in order to introduce a formal
contradiction of the great apostle to the Gentiles although there is
no real contradiction of meaning at all! What could he possibly gain
by such useless trouble-making? If James really wanted to combat
Paul's doctrine of justification by faith, he would have done so very
differently; and if he did not want to combat it, he would certainly
not have uselessly created the appearance of doing so.
Perhaps, however, James 2:14-26 is a refutation not of Paul but of a
misunderstanding of Paul. This also is very improbable. If the
passage was a refutation not of Paul but of a misunderstanding of
Paul, why did James not say so? Why did he not distinguish Paul
clearly from his misinterpreters? Instead he has indulged uselessly in
a formal contradiction of Paul, and has in refutation of a
misunderstanding of Paul not even used the abundant materials
which Paul himself could offer! And where was such a
misunderstanding of Paul possible in Jewish Christian circles of A. D.
62?
What makes every form of this intermediate dating impossible is the
total absence from the epistle of any reference to the question of the
conditions upon which Gentiles were to be received into the Church.
In A. D. 62 this question had recently been the subject of bitter
controversy. At that time no one could have touched upon the
closely related topic of faith and works as James does and yet have
ignored so completely the controversial question.
Evidently, therefore, the epistle was written either before the
Judaistic controversy arose or else long after it was over.
(2) The Late Date.—The latter view makes the epistle a
pseudonymous work—it assumes that an unknown author has here
tried to enhance the influence of his work by putting it under the
name of the first head of the Jerusalem church. This is of itself
sufficient to refute the late dating. For the procedure of the
supposed falsifier is quite incomprehensible. He has chosen James
as the alleged author only because of the lofty position which James
held, and yet he has designated him in the first verse merely as a
simple Christian! The procedure of real forgers is very different.
There are also, however, other objections to the late dating. Would
any writer in the second century, when the authority of Paul was
well established, have ventured to introduce such an apparent
contradiction of Paul as appears in James 2:24? In a writer of A. D.
150 we should have had formal agreement with Paul and material
disagreement; in the Epistle of James we have formal disagreement
and material harmony. Apparent contradiction of expression
combined with perfect unity of thought is a sure sign of
independence. The Epistle of James has made no use of the epistles
of Paul.
Against this conclusion may be urged only the coincidence that
James and Paul both use the example of Abraham, and cite the
same verse, Gen. 15:6, with regard to him. But it must be
remembered that to every Jew Abraham offered the most obvious
example in all the Scriptures. It is possible, too, that the faith and
works of Abraham had in pre-Christian Jewish circles already been
the subject of controversy. Furthermore, James does not confine
himself to Abraham, but introduces Rahab also, who is not
mentioned by Paul. The coincidence between Paul and James is
quite insufficient to overbalance the clear evidence of independence.
(3) The Early Date.—Only one hypothesis, then, suits the facts.
The Epistle of James was clearly written before the Judaistic
controversy became acute at the time of the Apostolic Council. In
the second chapter of the epistle, James has used the same terms
that became prominent in that controversy, but he has used them in
refuting a practical, not a theoretical, error—an error that is related
only indirectly to the great subject of Galatians and Romans.
At first sight the Epistle of James seems to possess very little unity.
Topic follows topic often with little apparent connection. But the
connection between the individual sections is closer than appears at
first; and the epistle as a whole possesses at least a perfect unity of
spirit.
(1) Reality in Religion.—The ruling tone of the epistle, which may
be detected beneath all the varying exhortations, is a certain manly
honesty, a certain fierce hatred of all sham and cant and humbug
and meanness. James is a stern advocate of a practical religion.
(2) Supremacy of Religion.—It must be noticed, however, that
the religion of this writer is none the less religious because it is
practical. James is no advocate of a "gospel of street-cleaning." On
the contrary he insists with characteristic vehemence upon personal
piety. The same writer who has been regarded as emphasizing works
at the expense of faith, who might be hailed as a leader of those
who would make religion terminate upon man rather than God, who
might be thought to disparage everything but "social service"—this
same writer is one of the most earnest advocates of prayer. James
1:5-8; 4:2,3; 5:14-18. This apostle of works, this supposed
disparager of faith, is almost bitter in his denunciation of unbelief!
Ch. 1:6-8. God, not man, according to James, is the author of every
perfect gift. V. 17. Prayer is the remedy both for bodily and for
spiritual ills. Ch. 5:14-18. James lends no countenance to the
modern disparagement of religious devotion. The same
uncompromising severity with which he lashes an inactive religion is
also applied just as mercilessly to an irreligious activity. Ch. 4:13-15.
James does not attack religion in the interests of reality; he attacks
unreality in the interests of religion.
The opening of the epistle, like that of the letters contained in Acts
15:23-29; 23:26-30, is constructed according to the regular Greek
form.
After the opening, James speaks first of trials or temptations. Rightly
used they will lead to perfection. If, however, there is still
imperfection, it can be removed by prayer to God. The imperfection
which is here especially in view is an imperfection in wisdom.
Apparently the readers, like the Pharisees, had laid an excessive
stress upon knowledge. The true wisdom, says James, can be
obtained not by human pride, as the readers seem to think, but only
by prayer. Prayer, however, must be in faith—there must be no
wavering in it. Pride, indeed, is altogether blameworthy. If there is to
be boasting, it should certainly be not in earthly wealth but in those
spiritual blessings which often reverse earthly distinctions. Returning
to the subject of temptations, James insists that in their evil they do
not come from God, but from the depths of man's own desires. From
God comes no evil thing, but every perfect gift; and in the gospel
God has bestowed upon us his richest blessing.
That gospel must be received with all diligence. It will exclude wrath
and insincerity. True religion consists not merely in hearing but in
doing; good examples of the exercise of it are the visitation of the
fatherless and widows and the preservation of one's own personal
purity of life.
Faith in Christ, James continues in similar vein, excludes all undue
respect of persons. Indeed God in his choice of those who should be
saved has especially favored the poor. The rich as a class are rather
the oppressors of the Christians. Surely then the Christians should
not favor rich men for selfish reasons. The law of love will exclude all
such unworthy conduct.
That law of love requires an active life. Faith, if it be true faith, leads
to works. Away with a miserable faith that is expressed only in
words!
Words, indeed, are dangerous. The tongue is a prolific source of
harm. Evil speech reveals the deep-seated corruption of the heart.
The readers must be careful, therefore, about seeking the work of a
teacher. The true wisdom, which fits a man to teach, is not of man's
acquiring, but comes from God.
Quarreling—which was produced especially by the inordinate
ambition among the readers to pose as teachers—must be
counteracted by submission to God.
The constant thought of God excludes all pride in human planning.
Especially the rich must reflect upon the transitoriness of earthly
possessions and above all must be sure that their wealth is honestly
gained.
Finally, patient waiting for the Lord, the example of the Old
Testament saints, and the earnest practice of prayer will make
effective all the exhortations of the epistle.
If Paul did not write the Epistle to the Hebrews, who did write it?
Prodigious labor has been expended upon this question, but with
very little result. In ancient times, Barnabas, Luke and Clement of
Rome, were each regarded as the author. Of these three views the
first is most probable; the second is exceedingly unlikely; and the
last is clearly impossible. Whoever wrote the epistle, Clement
certainly did not. The letter which we possess from his pen is
immeasurably inferior to the apostolic writings to which Hebrews
certainly belongs. Clement was a humble reader of Hebrews, not the
author of it. Luther was inclined to regard Apollos as the possible
author of Hebrews; and of all the many suggestions that have been
made, this is perhaps the best. Undoubtedly the circumstances and
training of Apollos were in a number of respects like those which
might naturally be attributed to the author of the epistle. Apollos
was closely associated with Paul, and perhaps at a later time with
others of the apostles, just as might be expected of the author of an
apostolic work such as Hebrews. On the other hand, like the author
of the epistle, he was not an eyewitness of the life of Jesus.
Compare Heb. 2:4. Like the author of the epistle he was no doubt
acquainted with Timothy. Compare ch. 13:23. He was an "eloquent"
or "learned" man, Acts 18:24, who might well have produced the
splendid rhetoric of the epistle. He was a Jew and mighty in the
Scriptures, as was also the author of Hebrews. He was a native of
Alexandria, the university city of the period, and the seat of a large
Jewish community, where just that combination of Greek rhetorical
training with Scriptural knowledge which is exhibited in the epistle is
most naturally to be sought.
These indications, however, can merely show that Apollos might
conceivably have written the epistle; they do not show that he did
write it. The authorship of this powerful work will always remain
uncertain. How little we know, after all, of the abounding life of the
apostolic Church!
In the Student's Text Book, it has been shown that the readers of
the epistle were probably members of some rather narrowly
circumscribed community. Where this community was is by no
means clear. The one indication of place which the epistle contains is
ambiguous. In ch. 13:24 it is said, "They of Italy salute you." These
words may mean that the author is in Italy and sends greetings from
the Christians of that country, or they may mean that the author is
outside of Italy and sends greetings from Italian Christians who
happened to be with him. In the latter case, probably the readers
were in Italy; for otherwise they would have no special interest in
the Italian Christians. All that we can say is then that the epistle was
probably written either from Italy or to Italy. If it was written from
Italy, then since the readers were Jews, it is natural to seek them in
Palestine. The Palestinian Christians were "Hebrews" in the narrower,
linguistic sense of the word, as well as in the broader, national
sense. The ancient heading of the epistle thus comes to its full
rights. On the other hand the Palestinian hypothesis faces some
rather grave difficulties. If the readers are to be sought in Italy, then
perhaps they formed a Jewish Christian community in Rome or in
some other Italian city. The question cannot be settled with any
certainty. The destination of the epistle is an even greater riddle
than the authorship.
The Epistle to the Hebrews was certainly written before A. D. 95, for
at about that time it was quoted by Clement of Rome. The mention
of Timothy in ch. 13:23 perhaps does not carry us much farther, for
Timothy, who was a grown man at about A. D. 50, Acts 16:1-3, may
have lived till the end of the first century. The epistle, however, does
not bear any of the marks of late origin. The question of date is
closely connected with the question whether in the epistle the
temple at Jerusalem is regarded as still standing. This question
cannot be settled with certainty. But on the whole the continuance of
the Levitical ceremonies seems to be assumed in the epistle, and at
any rate there is no clear reference to their cessation. Probably
therefore the Epistle to the Hebrews was written before the
destruction of Jerusalem in A. D. 70.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com