Get Sams Teach Yourself HTML CSS and JavaScript All in One 1st Edition Meloni Julie C PDF Ebook With Full Chapters Now
Get Sams Teach Yourself HTML CSS and JavaScript All in One 1st Edition Meloni Julie C PDF Ebook With Full Chapters Now
com
https://textbookfull.com/product/sams-teach-
yourself-html-css-and-javascript-all-in-one-1st-
edition-meloni-julie-c/
Sams Teach Yourself HTML CSS and JavaScript All in One 1st
Edition Meloni Julie C
https://textbookfull.com/product/sams-teach-yourself-html-css-and-
javascript-all-in-one-1st-edition-meloni-julie-c/
textbookfull.com
https://textbookfull.com/product/sams-teach-yourself-c-
in-24-hours-6th-ed-6th-edition-rogers-cadenhead/
textbookfull.com
https://textbookfull.com/product/sams-teach-yourself-java-
in-24-hours-8th-ed-8th-edition-rogers-cadenhead/
textbookfull.com
https://textbookfull.com/product/image-guided-interventions-2nd-
edition-m-a-mauro/
textbookfull.com
Reviews of Environmental Contamination and Toxicology
Volume 238 1st Edition Pim De Voogt (Eds.)
https://textbookfull.com/product/reviews-of-environmental-
contamination-and-toxicology-volume-238-1st-edition-pim-de-voogt-eds/
textbookfull.com
https://textbookfull.com/product/magdalene-poems-first-edition-howe/
textbookfull.com
https://textbookfull.com/product/emerald-blaze-hidden-legacy-05-2nd-
edition-ilona-andrews/
textbookfull.com
https://textbookfull.com/product/the-handbook-of-groundwater-
engineering-3rd-edition-john-h-cushman/
textbookfull.com
https://textbookfull.com/product/the-game-console-a-photographic-
history-from-atari-to-xbox-1st-edition-evan-amos-2/
textbookfull.com
Tropospheric Ozone and its Impacts on Crop Plants A Threat
to Future Global Food Security 1st Edition Supriya Tiwari
https://textbookfull.com/product/tropospheric-ozone-and-its-impacts-
on-crop-plants-a-threat-to-future-global-food-security-1st-edition-
supriya-tiwari/
textbookfull.com
Julie C. Meloni
HTML, CSS
and JavaScript
All
One
in
Reader Services
Visit our website and register this book at informit.com/register for convenient access to any
updates, downloads, or errata that might be available for this book.
CHAPTER 1
Publishing Web Content
Before learning the intricacies of HTML (Hypertext Markup Language), WHAT YOU’LL LEARN IN
CSS (Cascading Style Sheets), and JavaScript, it is important that you gain THIS CHAPTER:
a solid understanding of the technologies that help transform these plain- . A very brief history of the
text files to the rich multimedia displays you see on your computer or World Wide Web
handheld device when browsing the World Wide Web. For example, a file . What is meant by the term
containing markup and client-side code HTML and CSS is useless without web page, and why that
term doesn’t always reflect
a web browser to view it, and no one besides yourself will see your content all the content involved
unless a web server is involved. Web servers make your content available
. How content gets from your
to others who, in turn, use their web browsers to navigate to an address personal computer to some-
and wait for the server to send information to them. You will be intimately one else’s web browser
involved in this publishing process because you must create files and then . How to select a web host-
put them on a server to make them available in the first place, and you ing provider
must ensure that your content will appear to the end user as you intended. . How different web
browsers and device types
can affect your content
A Brief History of HTML and the . How to transfer files to
your web server using FTP
World Wide Web . Where files should be
placed on a web server
Once upon a time, back when there weren’t any footprints on the moon,
. How to distribute web con-
some farsighted folks decided to see whether they could connect several tent without a web server
major computer networks together. I’ll spare you the names and stories . How to use other publish-
(there are plenty of both), but the eventual result was the “mother of all ing methods such as blogs
networks,” which we call the Internet. . Tips for testing the appear-
ance and functionality of
Until 1990, accessing information through the Internet was a rather techni- web content.
cal affair. It was so hard, in fact, that even Ph.D.-holding physicists were
often frustrated when trying to swap data. One such physicist, the now-
famous (and knighted) Sir Tim Berners-Lee, cooked up a way to easily
cross-reference text on the Internet through hypertext links.
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
2 CHAPTER 1 Publishing Web Content
NOTE This wasn’t a new idea, but his simple HTML managed to thrive while
For more information about the more ambitious hypertext projects floundered. Hypertext originally meant
history of the World Wide Web, text stored in electronic form with cross-reference links between pages. It is
see the Wikipedia article on now a broader term that refers to just about any object (text, images, files,
this topic: http://en.wikipedia.
and so on) that can be linked to other objects. Hypertext Markup Language is
org/wiki/History_of_the_Web.
a language for describing how text, graphics, and files containing other
information are organized and linked together.
These few paragraphs really are a brief history of what has been a remark-
able period. Today’s college freshmen have never known a time in which
the Web didn’t exist, and the idea of always-on information and ubiquitous
computing will shape all aspects of our lives moving forward. Instead of
seeing web content creation and management as a set of skills possessed
only by a few technically oriented folks (okay, call them geeks if you will),
by the end of this book, you will see that these are skills that anyone can
master, regardless of inherent geekiness.
Those files contain text that is marked up, or surrounded by, HTML codes
that tell the browser how to display the text—as a heading, as a paragraph,
in a red font, and so on. Some HTML markup tells the browser to display
Understanding Web Content Delivery 3
an image or video file rather than plain text, which brings me back to the
point: Different types of content are sent to your web browser, so simply
saying web page doesn’t begin to cover it. Here we use the term web content
instead, to cover the full range of text, image, audio, video, and other
media found online.
In later chapters, you will learn the basics of linking to or creating the vari-
ous types of multimedia web content found in websites. All you need to
remember at this point is that you are in control of the content a user sees
when visiting your website. Beginning with the file that contains text to
display or codes that tell the server to send a graphic along to the user’s
web browser, you have to plan, design, and implement all the pieces that
will eventually make up your web presence. As you will learn throughout
this book, it is not a difficult process as long as you understand all the little
steps along the way.
In its most fundamental form, web content begins with a simple text file
containing HTML or XHTML markup. XHTML is another flavor of HTML;
the “X” stands for eXtensible, and you will learn more about it as you con-
tinue through the chapters. The most important thing to know from the
outset is that all the examples in this book are HTML 4 and XHTML com-
patible, meaning that they will be rendered similarly both now and in the
future by any newer generations of web browsers. That is one of the bene-
fits of writing standards-compliant code: You do not have to worry about
going back to your code sometime in the future and changing it because it
doesn’t work. Your code will likely always work for as long as web
browsers adhere to standards (hopefully a long time).
FIGURE 1.1
A browser request and a server
response.
FIGURE 1.2
Visiting www.google.com.
Figure 1.2 shows a website that contains text plus one image (the Google
logo). A simple version of the processes that occurred to retrieve that text
and image from a web server and display it on your screen is as follows:
1. Your web browser sends a request for the index.html file located at
the http://www.google.com/ address. The index.html file does not
have to be part of the address that you type in the address bar; you’ll
learn more about the index.html file further along in this chapter.
Understanding Web Content Delivery 5
2. After receiving the request for a specific file, the web server process
looks in its directory contents for the specific file, opens it, and sends
the content of that file back to your web browser.
3. The web browser receives the content of the index.html file, which is
text marked up with HTML codes, and renders the content based on
these HTML codes. While rendering the content, the browser hap-
pens upon the HTML code for the Google logo, which you can see in
Figure 1.2. The HTML code looks like this:
<img src=”/logos/logo.gif” width=”384” height=”121” border=”0”
alt=”Google”/>
The tag provides attributes that tell the browser the file source loca-
tion (src), width (width), height (height), border type (border), and
alternative text (alt) necessary to display the logo. You will learn
more about attributes throughout later chapters.
4. The browser looks at the src attribute in the <img/> tag to find the
source location. In this case, the image logo.gif can be found in the
logos directory at the same web address (www.google.com) from
which the browser retrieved the HTML file.
5. The browser requests the file at the
http://www.google.com/logos/logo.gif web address.
6. The web server interprets that request, finds the file, and sends the
contents of that file to the web browser that requested it.
7. The web browser displays the image on your monitor.
As you can see in the description of the web content delivery process, web
browsers do more than simply act as picture frames through which you
can view content. Browsers assemble the web content components and
arrange those parts according to the HTML commands in the file.
You can also view web content locally, or on your own hard drive, without
the need for a web server. The process of content retrieval and display is
the same as the process listed in the previous steps in that a browser looks
for and interprets the codes and content of an HTML file, but the trip is
shorter; the browser looks for files on your own computer’s hard drive
rather than on a remote machine. A web server is needed to interpret any
server-based programming language embedded in the files, but that is out-
side the scope of this book. In fact, you could work through all the chap-
ters in this book without having a web server to call your own, but then
nobody but you could view your masterpieces.
6 CHAPTER 1 Publishing Web Content
If you type web hosting provider in your search engine of choice, you will
get millions of hits and an endless list of sponsored search results (also
known as ads). There are not this many web hosting providers in the
world, although it might seem like there are. Even if you are looking at a
managed list of hosting providers, it can be overwhelming—especially if
all you are looking for is a place to host a simple website for yourself or
your company or organization.
You’ll want to narrow your search when looking for a provider and choose
one that best meets your needs. Some selection criteria for a web hosting
provider include the following”
. Reliability/server “uptime”—If you have an online presence, you
want to make sure people can actually get there consistently.
. Customer service—Look for multiple methods for contacting cus-
tomer service (phone, email, and chat) as well as online documenta-
tion for common issues.
. Server space—Does the hosting package include enough server
space to hold all the multimedia files (images, audio, and video) you
plan to include in your website (if any)?
. Bandwidth—Does the hosting package include enough bandwidth
so that all the people visiting your site and downloading files can do
so without you having to pay extra?
. Domain name purchase and management—Does the package
include a custom domain name, or must you purchase and maintain
your domain name separately from your hosting account?
. Price—Do not overpay for hosting. You will see a wide range of prices
offered and should immediately wonder “what’s the difference?”
Often the difference has little to do with the quality of the service and
everything to do with company overhead and what the company
thinks they can get away with charging people. A good rule of thumb
is that if you are paying more than $75 per year for a basic hosting
package and domain name, you are probably paying too much.
Selecting a Web Hosting Provider 7
Here are three reliable web hosting providers whose basic packages con- NOTE
tain plenty of server space and bandwidth (as well as domain names and I have used all these providers
extra benefits) at a relatively low cost. If you don’t go with any of these (and then some) over the years
web hosting providers, you can at least use their basic package descrip- and have no problem recom-
mending any of them; predomi-
tions as a guideline as you shop around. nantly, I use DailyRazor as a
. A Small Orange (http://www.asmallorange.com)—The “Tiny” and web hosting provider, especially
“Small” hosting packages are perfect starting places for the new web for advanced development envi-
ronments.
content publisher.
. DailyRazor (http://www.dailyrazor.com)—Even its Rookie hosting
package is full featured and reliable.
. LunarPages (http://www.lunarpages.com)—The Basic hosting pack-
age is suitable for many personal and small business websites.
FIGURE 1.3
A sample control panel.
8 CHAPTER 1 Publishing Web Content
You might never need to use your control panel, but having it available to
you simplifies the installation of databases and other software, the viewing
of web statistics, and the addition of email addresses (among many other
features). If you can follow instructions, you can manage your own web
server—no special training required.
Although all web browsers process and handle information in the same
general way, there are some specific differences among them that result in
things not always looking the same in different browsers. Even users of the
same version of the same web browser can alter how a page appears by
choosing different display options or changing the size of their viewing
windows. All the major web browsers allow users to override the back-
ground and fonts specified by the web page author with those of their own
choosing. Screen resolution, window size, and optional toolbars can also
change how much of a page someone sees when it first appears on their
screens. You can ensure only that you write standards-compliant HTML
and CSS.
You should always test your websites with as many of these web browsers
as possible:
Creating a Sample File 9
Now that you have a development environment set up, or at least some
idea of the type you’d like to set up in the future, let’s move on to creating a
test file.
To make use of this content, open a text editor of your choice, such as Notepad NOTE
(on Windows) or TextEdit (on a Mac). Do not use WordPad, Microsoft Word, You will learn a bit about text
editors in Chapter 2,
or other full-featured word-processing software because those programs create
“Understanding HTML and
different sorts of files than the plain-text files we use for web content. XHTML Connections.” Right
Type the content that you see in Listing 1.1, and then save the file using now, I just want you to have a
sample file that you can put on
sample.html as the filename. The .html extension tells the web server that
a web server!
your file is, indeed, full of HTML. When the file contents are sent to the web
browser that requests it, the browser will also know that it is HTML and
will render it appropriately.
10 CHAPTER 1 Publishing Web Content
Now that you have a sample HTML file to use—and hopefully somewhere
to put it, such as a web hosting account—let’s get to publishing your web
content.
FTP clients require three pieces of information to connect to your web serv-
er; this information will have been sent to you by your hosting provider
after you set up your account:
. The hostname, or address, to which you will connect
After you have this information, you are ready to use an FTP client to
transfer content to your web server.
There are many FTP clients freely available to you, but you can also trans-
fer files via the web-based File Manager tool that is likely part of your web
server’s control panel. However, that method of file transfer typically
introduces more steps into the process and isn’t nearly as streamlined (or
simple) as installing an FTP client on your own machine.
Using FTP to Transfer Files 11
FIGURE 1.4
The FireFTP interface.
When you have selected an FTP client and installed it on your computer, you
are ready to upload and download files from your web server. In the next
section, you’ll see how this process works using the sample file in Listing 1.1.
Remember, you first need the hostname, the account username, and the
account password.
1. Start the Classic FTP program and click the Connect button. You will
be prompted to fill out information for the site to which you want to
connect, as shown in Figure 1.5.
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
12 CHAPTER 1 Publishing Web Content
FIGURE 1.5
Connecting to a new site in
Classic FTP.
. The site Label is the name you’ll use to refer to your own site.
Nobody else will see this name, so enter whatever you want.
. The FTP Server is the FTP address of the web server to which
you need to send your web pages. This address will have been
given to you by your hosting provider. It will probably be
yourdomain.com, but check the information you received when
you signed up for service.
. The User Name field and the Password field should also be
completed using information given to you by your hosting
provider.
. Don’t change the values for Initial Remote Directory on First
Connection and Initial Local Directory on First Connection
until you are used to using the client and have established a
workflow.
3. When you’re finished with the settings, click OK to save the settings
and establish a connection with the web server.
You will see a dialog box indicating that Classic FTP is attempting to
connect to the web server. Upon successful connection, you will see
an interface similar to Figure 1.6, showing the contents of the local
directory on the left and the contents of your web server on the right.
Using FTP to Transfer Files 13
FIGURE 1.6
A successful connection to a
remote web server via Classic FTP.
4. You are now almost ready to transfer files to your web server. All that
remains is to change directories to what is called the document root of
your web server. The document root of your web server is the directo-
ry that is designated as the top-level directory for your web content—
the starting point of the directory structure, which you will learn
more about later in this chapter. Often, this directory will be named
public_html (as shown in Figure 1.6), www (also shown in Figure 1.6,
as www has been created as an alias for public_html), or htdocs. This
is not a directory that you will have to create because your hosting
provider will have created it for you.
Double-click the document root directory name to open it. The dis-
play shown on the right of the FTP client interface should change to
show the contents of this directory. (It will probably be empty at this
point, unless your web hosting provider has put placeholder files in
that directory on your behalf.)
5. The goal is to transfer the sample.html file you created earlier from
your computer to the web server. Find the file in the directory listing
on the left of the FTP client interface (navigate around if you have to)
and click it once to highlight the filename.
14 CHAPTER 1 Publishing Web Content
These steps are conceptually similar to the steps you will take anytime you
want to send files to your web server via FTP. You can also use your FTP
client to create subdirectories on the remote web server. To create a subdi-
rectory using Classic FTP, click the Remote menu, and then click New
Folder. Different FTP clients will have different interface options to achieve
the same goal.
http://www.companyname.com/
to
http://www.companyname.com/products/
or
http://www.companyname.com/services/
Understanding Where to Place Files on the Web Server 15
In the previous section, I used the term document root without really
explaining what that is all about. The document root of a web server is
essentially the trailing slash in the full URL. For instance, if your domain is
yourdomain.com and your URL is http://www.yourdomain.com/, the docu-
ment root is the directory represented by the trailing slash (/). The docu-
ment root is the starting point of the directory structure you create on your
web server; it is the place where the web server begins looking for files
requested by the web browser.
If you put the sample.html file in your document root as previously direct-
ed, you will be able to access it via a web browser at the following URL:
http://www.yourdomain.com/sample.html
If you were to enter this URL into your web browser, you would see the
rendered sample.html file, as shown in Figure 1.7.
FIGURE 1.7
The sample.html file accessed via
a web browser.
However, if you created a new directory within the document root and put
the sample.html file in that directory, the file would be accessed at this URL:
http://www.yourdomain.com/newdirectory/sample.html
If you put the sample.html file in the directory you originally saw upon
connecting to your server—that is, you did not change directories and
place the file in the document root—the sample.html file would not be
accessible from your web server at any URL. The file will still be on the
machine that you know as your web server, but because the file is not in
the document root—where the server software knows to start looking for
files—it will never be accessible to anyone via a web browser.
16 CHAPTER 1 Publishing Web Content
The bottom line? Always navigate to the document root of your web server
before you start transferring files.
This is especially true with graphics and other multimedia files. A common
directory on web servers is called images, where, as you can imagine, all
the image assets are placed for retrieval. Other popular directories include
css for stylesheet files (if you are using more than one) and js for external
JavaScript files. Or, if you know you will have an area on your website
where visitors can download many different types of files, you might sim-
ply call that directory downloads.
Whether it’s a ZIP file containing your art portfolio or an Excel spreadsheet
with sales numbers, it’s often useful to publish files on the Internet that
aren’t simply web pages. To make a file available on the Web that isn’t an
HTML file, just upload the file to your website as if it were an HTML file,
following the instructions provided earlier in this chapter for uploading.
After the file is uploaded to the web server, you can create a link to it (as
you’ll learn in later chapters). In other words, your web server can serve
much more than HTML.
Here’s a sample of the HTML code that you will learn more about later in
this book. The following code would be used for a file named artfolio.zip,
located in the downloads directory of your website, and link text that
reads “Download my art portfolio!”:
<a href=”/downloads/artfolio.zip”>Download my art portfolio!</a>
The index.html file (or just index file, as it’s usually referred to) is the name
you give to the page you want people to see as the default file when they
navigate to a specific directory in your website. If you’ve created that page
with usability in mind, your users will be able to get to all content in that
section from the index page.
For example, Figure 1.8 shows the drop-down navigation and left-side
navigation both contain links to three pages: Solutions Overview (the sec-
tion index page itself), Connection Management, and Cost Management.
Random documents with unrelated
content Scribd suggests to you:
“There’s a play here with a kind of an idea in it. It’s hopeless as it
stands, of course, but it might be worked over a little. It’s written by
a man named Vicksburg, or Vickery, or something like that. Funny
thing—he suggests that Sheila Kemble would be the ideal woman for
the principal part. And, do you know, I’ve been thinking she has the
makings of a star some day. Had you ever thought of that?”
“No,” said Reben, craftily.
“Well, I believe she’ll bear watching.”
In after-years this play-returner used to say, “I put Reben on to
the idea that there was star material in Kemble, before he ever
thought of it himself.”
But long before either of them thought of Sheila Kemble as a
star, that destiny had been dreamed and planned for her by Sheila
Kemble.
Frivolous as she appeared on the stage and off, her pretty head
was full of sonorous ambitions. That head was not turned by the
whirlwinds of adulation, or drugged by the bouquets of flattery,
because it was full of self-criticism. She was struggling for
expressions that she could not get; she was groping, listening,
studying, trying, discarding, replacing.
She thought she was free from any nonsense of love. Nonsense
should not thwart her progress and make a fool of her, as it had of
so many others. It should not interrupt her career or ruin it as it had
so many others. She would make friends with men, oh yes. They
were so much more sensible, as a rule, than women, except when
they grew sentimental. And that was a mere form of preliminary
sparring with most of them. Once a girl made a fellow understand
that she was not interested in spoony nonsense, he became himself
and gave his mind a chance. And all the while nature was rendering
her more ready to command love from without, less ready to
withstand love from within. She was becoming more and more of an
actress. But still faster and still more was she becoming a woman.
That night Eldon slipped into the dead man’s shoes—at least he
wore the riding-boots and the hunting-coat and carried the crop that
Tuell had worn. Tuell had had them made too large—for the comic
effect that did not come. They fitted Eldon fairly well. But it was like
acting in another man’s shroud.
He was without ambition, without hope of personal profit. He
was merely a stop-gap. He was too completely gloomy even to feel
afraid of the audience. He was only a journeyman finishing another
man’s job.
His memory worked like a machine, so independently of his mind
that he seemed to have a phonograph in his throat. He kept
wondering at the little explosions of laughter at his words.
He saw the surprise in Sheila’s eyes as he brought down the
house—with so different a laughter now. He murmured to her in
sudden dread, “Are they guying me again?”
“No, no,” she answered. “Go on; you’re splendid!”
The news of Tuell’s death had taken little space in the evening
papers. The audience, as a whole, was oblivious of it, or of what he
had played. There was none of the regret on the other side of the
footlights that solemnized the stage. The play had been established
as a successful comedy. People came to laugh, and laughed with
confidence.
But the pity of Tuell’s fate ruined any joy Eldon might have taken
in the success he was winning. He played the part through in the
same dull, indifferent tone. When he made his final exit he laughed
as he had heard Tuell laugh, with uncanny mimicry as if a ghost
inhabited him. He was hardly conscious of the salvo of applause that
followed him. He supposed that some one still on the stage had
earned it. He sighed with relief as he reached the shelter of the dark
wings. Batterson, who had hovered near him, ready with the
unnecessary prompt-book, glared at him in amazement and
growled:
“Good Lord! Eldon, who’d have ever picked you for a comedian?”
Eldon smiled at what he imagined to be sarcasm, and took from
his pocket the little pamphlet he had carried with him for quick
reference. He offered it to Batterson. Batterson waved it back.
“Keep it, my boy. When the other fellow gets here from New York
he can play your old part.”
CHAPTER XV
The next night Eldon reached the theater in a new mood. He had
been promoted. He still felt sorry for poor Tuell. The grief of the wife
whom he had met at the train and taken to the undertaker’s shop
where Tuell rested had torn his heart as with claws. He had told her
all things beautiful of Tuell. He had wept to see her weep. He wept
his heart clean as a sheep’s heart.
As Villon said, “The dead go quick.” Eldon was ashamed to be so
merciless, but in spite of himself ambition blazed up in him. He was
a comedian. Batterson had told him so. The house had told him so.
Sheila had murmured, “You’re splendid.”
And now he was a comedian with a screamingly funny rôle. Now
he could build it up. He had been working on it half unconsciously all
night and all day.
The second night he marched into the scene with the authority of
one who is about to be very funny. In his first scenes he delivered
his lines with enthusiasm, with appreciation of their humor. He took
pains not to “walk into his laughs” as he had done the night before,
when he had not expected any laughs. He waited for his laughs. He
was amazed to note that they did not come. His pause left a hole in
the action. He worked harder, underlined his important words,
cocked his head as one who says, “The story I am about to tell you
is the funniest thing you ever heard. You’ll die when you hear it.”
It was the scene that died. A new form of stage-fright sickened
him. Hope perished. He was not a comedian, after all. His one
success had been an accident.
When the first curtain fell he slunk away by himself to avoid
Batterson’s searching eyes. To complete his shame he saw that
Batterson was talking earnestly with the new-comer from New York.
Old Mrs. Vining sauntered his way. He tried to escape, but the
heavy standard of a bunch-light cut him off. She approached him
and began in that acid tone of hers:
“Young man, there are two things that are important to a
comedian. One is to get a laugh, and the other is to nail it. You got
your laughs last night and you’ve lost ’em to-night. Do you know
why?”
“If I only did! I’m playing twice as hard to-night.”
“You bet you are, and you’re hard as zinc. You keep telling the
audience how funny you’re going to be, and that finishes you. Now
you’ve lived long enough to know that there are few jokes in the
world so funny that they can stand being boosted before they’re
told. Play your part straight, man. You can fake pathos and rub it in,
but of all things always play comedy straight.
“And another thing, don’t fidget! One of the best comedians that
ever walked the stage told me once, ‘I know only one secret for
getting laughs, and that is, Nobody must move when the laugh
comes.’ But to-night you never waited for anybody else to kill your
laughs. You butchered ’em yourself by lolling your head and making
fool gestures. Quit it! Now you go on in the next act and play the
part as you did last night. Be gloomy and quiet and depressed.
That’s what makes ’em laugh out there—the sight of your misery.
There’s nothing funny to them in your being so damned cheerful as
you were to-night.”
Eldon said, “Thank you very much, Mrs. Vining.” But he was not
convinced of anything except his fatal and eternal unfitness to be an
actor. He walked into the second act carrying his old burden of
dejection; he rather moaned than delivered his lines. And the people
laughed.
The cruelty of the public heart angered Eldon and he made
further experiment in dolor. Laughs came now that he had not
secured the night before. The others were bigger than then. He
threw into some of his lines such subcellar misery that he broke up
Sheila. When he made the laughing exit he did not even chuckle, he
moaned. And the result was a tornado. People mopped their eyes.
Batterson met him with a quizzical smile: “You got ’em going to-
night nearly as good as the time your lantern went out.”
That was higher praise than it sounded at first hearing.
When Mrs. Vining made her exit she said, “Aha! What did I tell
you, young man?”
When Sheila came off she sought him out, and cried, “Oh, you
were wonderful, simply wonderful!”
And when Batterson growled at her: “You spoiled several of his
best laughs by talking through ’em. You ought to know better than
that,” Sheila was so pleased for Eldon’s sake that she relished the
rebuke.
Mrs. Vining had warned him to nail his laughs. At the next
performance he tried to repeat his exact effects. Some of them he
forgot, some of them he remembered. But they did not work this
time. Others went better than ever. Each point was a new battle.
And so it was with every repetition. No two audiences were alike.
Each had its own individuality. He began to study audiences as
individuals. The first part of his first act was his period of getting
acquainted. Some houses were quick and some slow, some noisily
demonstrative, some quietly satisfied. It took all his powers to play
his part. And he could not tire of it because every night was a first
night in a new rôle.
Mrs. Vining was thinking “Aha!” as she crossed the room to their
table. “It’s high time I was getting well. Affairs have been
progressing since I began to nurse my neuralgia.”
She resolved to stick around, like the “demon chaperon” of
Fontaine Fox’s comic pictures. At all costs she must rescue Sheila
from the wiles of this good-looking young man. For her ward to lose
her head and find her heart in an affair with an actor would be a
disaster indeed; the very disaster that Sheila’s mother had warned
her against.
Of course Sheila’s mother had married an actor and been as
happy as a woman had a right to expect to be with any man. And of
course Mrs. Vining’s own dear dead John Vining had been the most
lovable of rascals. But such bits of luck could not keep on recurring
in the same family.
And Mr. Reben did not believe in marriage for actors, either. He
had many reasons far from romantic. The public did not like its
innocent heroines to be wives. The prima donna’s husband is a
proverb of trouble-making. Separated, the couple pine; united, they
quarrel with other members of the company or with each other.
Children arrive contrary to bookings and play havoc with youth and
vivacity, changing the frivolous Juliet into a Nurse or a Roman
Matron.
Reben would have been infuriated to learn that Sheila Kemble,
his Sheila of the golden future, was dallying on the brink of an
infatuation for an infatuated minor member of one of his companies.
A flirtation, even, was too dangerous to permit. He would have
dismissed Eldon without a moment’s pity if he had known what none
of the company had yet suspected. Unwittingly he accomplished the
effect he would have sought if he had been aware.
Reben ran out to Chicago ostensibly, according to his custom, to
inspect the troupe in the last fortnight of its run there. He invited
Sheila to supper with Mrs. Vining. He criticized Sheila severely and
praised Miss Griffen. Later, as if quite casually, he spoke to Mrs.
Vining of a new play he had found abroad. It was a man star’s play.
“I bought it for Tom Brereton,” he said, “but the leadin’ woman’s rôle
is rather interestin’.”
He described one of her scenes and noted that Sheila was
instantly excited. It was one of those craftsmanly achievements the
English dramatists arrive at oftener than ours, and it had made the
instant fame of the actress who played it in London. Having dropped
this golden apple before Atalanta, he changed the subject carelessly.
Sheila turned back to the apple:
“Tell me more about the play, please!”
Reben told her more, permitted her to coax him to tell it all. He
yawned so crudely that she would have noticed his wiles if she had
been able to think of anything but that rôle; for an actress thrills at
the thought of putting on one of these costumes of the soul as
quickly as an average woman grows incandescent before a new
gown.
Sheila clasped her hands and shook her head like a beggar
outside a restaurant window: “Oh, but I envy the woman who plays
that part! Who is she?”
“Parton, I suppose,” Reben yawned. “But she’s fallen off lately.
Gone and got herself in love—and with a fool actor, of all people!
The idiot! I’ve a notion to chuck her. After all the money and
publicity I’ve wasted on her, to fall for a dub like that!”
Sheila did not dare plead for the part. But her eyes prayed; her
very attitude implored it.
Reben laughed: “In case anything awful happened to Parton—like
sudden death or matrimony—I don’t suppose the rôle would interest
you?”
“I’d give ten years off my life to play that part.”
“Would you, now?” Reben laughed. “You don’t mean it. Ten years
off your life, eh? Would you give ten dollars off your salary?” He
chuckled at his shrewdness.
But she answered, solemnly, “I’d play it for nothing.”
“Well, well!” said Reben. “That would be a savin’!” He always
would have his little joke. Then he said: “But jokin’ aside, of course I
couldn’t afford to let you work for nothin’. Fact is, if the play was a
success I could afford to pay you a little better than you’re gettin’
now. What are you gettin’ now?”
“Seventy-five,” said Sheila.
“Is that all!” said Reben. “Well, well, I don’t have to be as stingy
as that. But there’s one thing I can’t afford to do and that’s to work
for an actor—or actress—who quits me as soon as I make him—or
her.”
“I’d never quit you if you gave me chances like that,” Sheila
sighed, hopelessly.
“So they all tell me,” said Reben. “Then they chuck me for the
management of Cupid & Co. Would you be willin’ to sign a five years’
contract with me, young lady?”
“In a minute!”
“Well, well! I’ll see what can be done. Good night!”
He left her to fret herself to an edge with the insomnia of frantic
ambition. The next day he sent her a contract to look over.
“Aha!” said Sheila to Mrs. Vining. “That’s his little game. He
wanted me all the time. Why couldn’t he have said so? I’ll make him
pay for being so clever.”
She sent the contract back with emendations.
He emended her emendations and returned it to her.
She emended further and wrote in the margin, “Oh, Mr. Reben!”
and, “Greedy, greedy!”
He rather enjoyed the duel with the little haggler. He belonged to
the race that best manages to combine really good art with really
good business and really good generosity.
When at last he had bargained Sheila to the wall he made her a
present of better terms than she had accepted—as if he were
tossing her a handsome diamond.
Sheila embraced him and called him an angel. He belonged,
indeed, to the same race as the only original angels.
She signed the contract with exclamations of gratitude. With his
copy in his pocket he put out both hands and wished her all the
glory he planned for her. Then he told her to get ready to leave
within a week for New York and rehearsals.
He had brought to Chicago a young woman stage-named Dulcie
Ormerod to replace her. He wanted Dulcie to play the part at least a
week so that the company could be advertised as “exactly the same
that appeared in Chicago.”
When he had gone Sheila fell from the clouds—at least she
struck a hole in the air and sank suddenly nearer to the earth. She
cried, “Oh, Aunt John, I forgot to ask if he wanted you in the new
play!”
“No, he doesn’t, dearie. He told me how sorry he was that there
was no part for me while you were signing the contract.”
“Oh, I’m so sorry! I won’t leave you!”
“Of course you will, my child. You can’t go on forever chained to
my old slow heels. Besides, I’m too tired to learn a new part this
season. I’ll jog on out to the Coast with this company. I think
California will be good for me.”
A little later Sheila remembered Floyd Eldon. She gasped as if
she had been stabbed.
“Why, what’s wrong now, honey?” cried Mrs. Vining.
“I was just thinking—Oh, nothing!”
Sheila was dismayed at the idea of leaving Eldon, leaving him all
by himself—no, not by himself, for that Dulcie creature would replace
her in the company, and perhaps—no doubt—in his lonely heart.
Sheila had grown ever so fond of Eldon, but she could not expect
any man, least of all so handsome, so big-hearted a man, to resist
the wiles of a cat, or, worse, a kitten, who would select such a name
as “Dulcie.”
An inspiration gave Sheila sudden cheer. She would ask dear Mr.
Reben to give Eldon a chance in the new company. It would be far
better for Floyd to “create” something than to continue hammering
at his present second-hand rôle. He might have to take a smallish
part, but they would be in each other’s neighborhood, and perhaps
the star might fall ill. Eldon would step in; he would make an
enormous sensation; and then and thus in a few short months they
would have accomplished their dream—they would be revolving as
twin stars in the high sky together.
She called up Reben at the theater; he had gone to the hotel. At
the hotel, he had left for the station. At the station, he had taken the
train. Well, she would write to him or, better yet, see him in person
and arrange it the minute she reached New York.
That night she took her contract to the theater in her hand-bag.
She must tell Floyd about it.
He was loitering outside when she reached the stage door. Her
face was agleam with joy as she beckoned him under a light in the
corridor. His face was agleam, too, as he hurried forward. Before she
could whisk out her contract he brandished before her one of his
own. Before she could say, “See what I have!” he was murmuring:
“Sheila! Sheila! What do you suppose? Reben—the great Reben likes
my work. He said he thought I was worth keeping, but I ought to be
playing the juvenile lead instead of a second old man. He’s going to
shift Eric Folwell to a new production East, and he offered me his
place! Think of it! Of course I grabbed it. I’m to replace Folwell as
soon as I can get up in the part. Would you believe it—Reben gave
me a contract for three years. He’s boosted me to fifty a week
already. I’m to play this part all season through to the Coast. And
next season he’ll give me a better part in something else—and at a
better salary.
“I wanted to telephone you about it, but I was afraid to mention
it to you for fear something might prevent him from signing. But he
did!—just before he took the train. See, there’s his own great name!
After next week I’m to be your lover in the play as well as in reality.
Our dream is coming true already, isn’t it—” He hesitated before the
absolute word, then, having made the plunge, went on and
whispered, “Sheila mine!”
Sheila stared at him, at the love and triumph in his eyes; and
suddenly her cake was dough. Her mouth twisted like a child’s when
the rain begins on a holiday. She turned her head away and passed
the side of her hand childishly across her clenched eyes, whence the
tears came thronging. She half murmured, half wept:
“I’m not your Sheila. I’m that hateful old Reben’s slave. And I
don’t go any further with you. Miss—Dulcie Somebody-or-other is to
have my part. She’s prettier than I am. And I’ve got to go to New
York next week to begin rehearsals of—a horrid old B-british
success.”
Sheila and all the company had fought valiantly for the drama.
Once Sir Ralph’s back was turned, they fell to playing their rôles their
own way, and they at least enjoyed their work more. But the
audiences never came.
Sheila was plunged into deeps of gloom. She felt that she must
suffer part of the blame or at least the punishment of the play’s non-
success. She wished she had stayed with “A Friend in Need.”
But Reben had always been known as a good sport, a plucky
taker of whatever medicine the public gave him. After a bastinado
from the critics he had waited to see what the people would do.
There was never any telling. Sometimes the critics would write
pæans of rapture and the lobby would be as deserted as a
graveyard, leaving the box-office man nothing to do but manicure
his nails. Sometimes the critics would unanimously condemn, and
there would be a queue at the door the next morning. Sometimes
the critics would praise and the mob would storm the window.
Sometimes they would blame and audiences would stay away as if
by conspiracy. In any case, “the box-office tells the story.”
Cassard, the manager, once said that he could tell if a play were
a success by merely passing the theater an hour after the
performance was over. A more certain test at the Odeon Theater
was the manner of Mr. Chittick, the box-office man. If he laid aside
his nail-file without a sigh and proved patient and gracious with the
autobiographical woman who loitered over a choice of seats and
their date, the play was a failure. If Mr. Chittick insulted the brisk
business man who pushed the exact sum of money over the ledge
and weakly requested “the two best, please” the play was a triumph.
Mr. Chittick was a very model of affability while Incledon’s play
occupied the stage of the unoccupied theater.
Reben’s motto was “The critics can make or break the first three
weeks of a play and no more. After that they are forgotten.” If he
saw the business growing by so much as five dollars a night he hung
on. But the Incledon play sagged steadily. At the end of a week
Reben had the company rehearsing another play called “Your Uncle
Dudley,” an old manuscript he had bought years ago to please a star
he quarreled with later.
Reben talked big for a while about forcing the run; then he talked
smaller and smaller with the receipts. Finally he announced that
“owing to previous bookings it will be necessary,” etc. “Mr. Reben is
looking for another theater to which to transfer this masterwork of
Sir Ralph Incledon. He may take it to Boston, then to Chicago for an
all-summer run.”
Eventually he took it to Mr. Cain’s storage warehouse.
“Your Uncle Dudley,” appealed to Reben as a stop-gap. It would
cost little. The cast was small; only one set was required. The title
rôle fitted Brereton to a nicety. He offered Sheila the heroine, who
was a “straight.” She cannily chose a smaller part that had
“character.” The play was flung on “cold”—that is, without an out-of-
town try-out.
It caught the public at “the psychological moment,” to use a
denatured French expression. The morning after the first night the
telephone drove Mr. Chittick frantic. He almost snapped the head off
a dear old lady who wanted to buy two boxes. It was a hopeless
success.
The only sour face about the place except his was the star’s. The
critics accused Tom Brereton of giving “a creditable performance.” All
the raptures were for Sheila. She was lauded as the discovery of the
year.
The critics are always “discovering” people, as Columbus
discovered the Indians, who had been there a long while before.
Two critics told Reben in the lobby between the acts that there was
star-stuff in Sheila. He thanked them both for giving him a novel
idea: “I never thought of that, old man.” And the old men walked
away like praised children. Like children, they were very, very
innocent when they were good and very, very incorrigible when they
were horrid.
Tom Brereton behaved badly, to Sheila’s thinking. To his thinking
she was the evil spirit. He gave one of those examples of good
business policy which is called “professional jealousy” in the theater.