Multimedia Web Design and Development Using Languages to Build Dynamic Web Pages 1st Edition Theodor Richardson instant download
Multimedia Web Design and Development Using Languages to Build Dynamic Web Pages 1st Edition Theodor Richardson instant download
https://ebookfinal.com/download/multimedia-web-design-and-
development-using-languages-to-build-dynamic-web-pages-1st-
edition-theodor-richardson/
https://ebookfinal.com/download/web-development-with-javaserver-
pages-2nd-edition-duane-k-fields/
https://ebookfinal.com/download/advanced-dom-scripting-dynamic-web-
design-techniques-1st-edition-jeffrey-sambells/
https://ebookfinal.com/download/smil-adding-multimedia-to-the-web-1st-
edition-mary-slowinski/
Creating Database Backed Library Web Pages Using Open
Source Tools 1st Edition Stephen R. Westman
https://ebookfinal.com/download/creating-database-backed-library-web-
pages-using-open-source-tools-1st-edition-stephen-r-westman/
https://ebookfinal.com/download/learning-javascript-add-sparkle-and-
life-to-your-web-pages-3rd-edition-ethan-brown/
Build Your Own Database Driven Web Site Using PHP MySQL
4th Edition Kevin Yank
https://ebookfinal.com/download/build-your-own-database-driven-web-
site-using-php-mysql-4th-edition-kevin-yank/
https://ebookfinal.com/download/learn-java-for-web-development-modern-
java-web-development-1st-edition-vishal-layka/
Multimedia Web Design and Development Using
Languages to Build Dynamic Web Pages 1st Edition
Theodor Richardson Digital Instant Download
Author(s): Theodor Richardson; Charles Thies
ISBN(s): 9781937585006, 193758500X
Edition: 1
File Details: PDF, 8.25 MB
Year: 2012
Language: english
MULTIMEDIA WEB DESIGN
AND DEVELOPMENT
LICENSE, DISCLAIMER OF LIABILITY, AND LIMITED WARRANTY
By purchasing or using this book (the “Work”), you agree that this license grants
permission to use the contents contained herein, but does not give you the right
of ownership to any of the textual content in the book or ownership to any of the
information or products contained in it. This license does not permit uploading of the
Work onto the Internet or on a network (of any kind) without the written consent of
the Publisher. Duplication or dissemination of any text, code, simulations, images,
etc. contained herein is limited to and subject to licensing terms for the respective
products, and permission must be obtained from the Publisher or the owner of the
content, etc., in order to reproduce or network any portion of the textual material (in
any media) that is contained in the Work.
MERCURY LEARNING AND INFORMATION (“MLI” or “the Publisher”) and anyone involved
in the creation, writing, or production of the companion disc, accompanying algo-
rithms, code, or computer programs (“the software”), and any accompanying Web
site or software of the Work, cannot and do not warrant the performance or results
that might be obtained by using the contents of the Work. The author, developers,
and the Publisher have used their best efforts to insure the accuracy and functional-
ity of the textual material and/or programs contained in this package; we, however,
make no warranty of any kind, express or implied, regarding the performance of
these contents or programs. The Work is sold “as is” without warranty (except for
defective materials used in manufacturing the book or due to faulty workmanship).
The author, developers, and the publisher of any accompanying content, and anyone
involved in the composition, production, and manufacturing of this work will not be
liable for damages of any kind arising out of the use of (or the inability to use) the
algorithms, source code, computer programs, or textual material contained in this
publication. This includes, but is not limited to, loss of revenue or profit, or other
incidental, physical, or consequential damages arising out of the use of this Work.
The sole remedy in the event of a claim of any kind is expressly limited to replace-
ment of the book, and only at the discretion of the Publisher. The use of “implied
warranty” and certain “exclusions” vary from state to state, and might not apply to
the purchaser of this product.
MULTIMEDIA WEB DESIGN
AND DEVELOPMENT
Using Languages to
Build Dynamic Web Pages
Theodor Richardson
Charles Thies
Theodor Richardson and Charles Thies. Multimedia Web Design and Development.
ISBN: 978-1-936420-38-4
The publisher recognizes and respects all marks used by companies, manu-
facturers, and developers as a means to distinguish their products.
All brand names and product names mentioned in this book are
trademarks or service marks of their respective companies. Any omission
or misuse (of any kind) of service marks or trademarks, etc. is not an
attempt to infringe on the property of others.
131415 321
— Theodor Richardson
—Charles Thies
CONTENTS
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Chapter 1
WEB DESIGN BASICS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Chapter 2
SITE PLANNING AND PRODUCTION . . . . . . . . . . . . . . . . . 35
Contents — vii
2.3Professional HTML Authoring Tools ....................................... 45
2.3.1 Adobe Dreamweaver ..................................................46
2.3.2 Microsoft Expression Web .........................................48
2.3.3 Notepad++ ..................................................................49
Chapter Summary .....................................................................51
Chapter Knowledge Check........................................................51
Chapter Projects ........................................................................53
Chapter Exercises .....................................................................54
Chapter Review Questions........................................................55
Chapter 3
INTRODUCTION TO HTML . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Chapter 4
CSS3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.1 Introduction to Cascading Style Sheets ............................79
4.1.1 Invoking Styles in HTML ..........................................80
4.1.2 CSS Classes and Tags ................................................81
4.1.3 CSS IDs.......................................................................82
4.1.4 Pseudo-classes ............................................................83
4.1.5 Inheritance .................................................................84
4.2 Positioning and Layering ...................................................84
4.2.1 Element Position ........................................................85
4.2.2 Layers .........................................................................89
4.2.3 Height and Width.......................................................91
4.2.4 Margins and Padding.................................................94
4.3 Display Properties...................................................................... 97
4.3.1 Background Images ...................................................97
viii — Contents
Colors ..........................................................................99
4.3.2
Borders ..................................................................... 103
4.3.3
Shadows .................................................................... 104
4.3.4
Content Alignment................................................... 105
4.3.5
Text Modification ..................................................... 106
4.3.6
4.4 Reusing CSS Styles.................................................................. 108
Chapter Summary ................................................................... 110
Chapter Knowledge Check ..................................................... 116
Chapter Projects ..................................................................... 118
Chapter Exercises ................................................................... 118
Chapter Review Questions...................................................... 120
Chapter 5
HTML5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
5.1 Branding a Site ................................................................. 124
5.1.1 Planning for Content ............................................... 124
5.1.2 Creating a Site Map ................................................. 125
5.1.3 Hyperlinks ................................................................ 126
5.1.4 Image Links/Hotspots .............................................. 127
5.1.5 Meta Tags ................................................................. 130
5.1.6 Cloning Pages ........................................................... 131
5.1.7 Adding a Site Icon .................................................... 133
5.2 Adding Content ................................................................. 135
5.2.1 Using Paragraphs and Line Breaks ........................ 135
5.2.2 Ampersand Commands ............................................ 136
5.2.3 Adding Tables........................................................... 137
5.2.4 Adding Forms ........................................................... 141
5.2.5 Audio and Video ....................................................... 145
5.2.6 Embedded Code ........................................................ 146
Chapter Summary ................................................................... 148
Chapter Knowledge Check ..................................................... 148
Chapter Projects ...................................................................... 150
Chapter Exercises ................................................................... 151
Chapter Review Questions...................................................... 152
Chapter 6
JAVASCRIPT AND JQUERY. . . . . . . . . . . . . . . . . . . . . . . . . 155
6.1 JavaScript Basics ........................................................................ 155
6.1.1 Variable Declarations .............................................. 158
6.1.2 Assigning Values ...................................................... 159
6.1.3 Function Calls .......................................................... 161
6.1.4 Defining Functions................................................... 163
6.1.5 Conditional Statements ........................................... 165
Contents — ix
Looping ..................................................................... 168
6.1.6
6.2 Using JavaScript ...................................................................... 170
6.2.1 Using the alert() Function ....................................... 171
6.2.2 String Parsing and Form Validation ...................... 171
6.2.3 Dynamic Content ..................................................... 179
6.2.4 Events ....................................................................... 182
6.2.5 External JavaScript ................................................. 184
6.3 jQuery ........................................................................................ 185
6.3.1 Installing jQuery ...................................................... 186
6.3.2 jQuery Code and Use ............................................... 187
Chapter Summary .................................................................. 190
Chapter Knowledge Check...................................................... 190
Chapter Projects ...................................................................... 192
Chapter Exercises ................................................................... 193
Chapter Review Questions...................................................... 194
Chapter 7
PHP AND PERL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
7.1 Hosting a Web Site .................................................................. 197
7.2 PHP............................................................................................ 201
7.2.1 PHP Basics ............................................................... 202
7.2.2 Form Processing ....................................................... 204
7.2.3 Emailing with PHP .................................................. 208
7.3 Perl .................................................................................... 210
7.3.1 Perl Basics .................................................................. 211
7.3.2 Form Processing ......................................................... 212
7.3.3 Emailing with Perl ..................................................... 216
Chapter Summary ................................................................... 219
Chapter Knowledge Check...................................................... 219
Chapter Projects ...................................................................... 221
Chapter Exercises ................................................................... 222
Chapter Review Questions...................................................... 223
Chapter 8
MYSQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
8.1 MySQL ...................................................................................... 227
8.1.1 MySQL Data Types .................................................. 228
8.1.2 Creating a MySQL Database .................................. 230
8.2 Structured Query Language (SQL)........................................ 234
8.2.1 Select Queries........................................................... 234
x — Contents
Update Queries ........................................................ 235
8.2.2
Insert Queries .......................................................... 236
8.2.3
8.3 Using MySQL with PHP ......................................................... 236
8.3.1 Accessing a MySQL Database with PHP................ 237
8.3.2 Storing Data in a MySQL Database ....................... 239
8.3.3 Retrieving Data from a MySQL Database.............. 240
Chapter Summary ................................................................... 243
Chapter Knowledge Check...................................................... 243
Chapter Projects ...................................................................... 245
Chapter Exercises ................................................................... 246
Chapter Review Questions...................................................... 247
Appendix
SELECTED ANSWERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Contents — xi
Introduction
This book is a complete guide to the concepts and practices of Web
design and development. It includes hands-on activities and profes-
sional advice for best practices in learning the procedures and prac-
tices of both design and development, allowing you to practice the
entire life cycle of a Web project. The material herein captures all of
the stages, from initial designs to back-end programming, of creating
complex Web applications. After completing this text, you will have
the ability to create dynamic, engaging Web sites with interactive
components and persistent styles. Each topic provides all of the neces-
sary instruction for getting started in that particular area.
The first five chapters of the book focus on the front-end design of a
Web site. This includes the use of HTML5 and CSS3 to create profes-
sional Web pages. This also includes guidelines for graphic design to
make the most of your pages using color, font, and style. The profes-
sional tools Adobe Dreamweaver and Microsoft Expression Web are
also introduced, with guidelines for their use in creating the case proj-
ect that continues throughout the text.
Chapter 6 focuses on the use of JavaScript for creating dynamic
elements and enabling interactions with the user. This also serves
as an introduction to the common syntax for conditional statements,
variable declarations, looping, and branching. This chapter completes
the front-end development of the Web site and transitions into con-
siderations for back-end Web application development. The jQuery
library of functions for creating complex JavaScript effects across
browsers is also introduced in this chapter, including instructions on
installing the library to a site, linking it to a page, and implementing
its functionality.
Chapter 7 introduces both PHP and Perl for developing back-end
code for Web applications. It gives an overview of both programming
languages, with the goal of focusing on common tasks needed for inter-
activity and processing user input through forms or JavaScript sub-
missions. This chapter includes instructions for emailing from both of
these server-side languages. In order to complete the activities for this
chapter, you will need Web hosting that supports one or both of them.
Ideally, the hosting solution you choose will also support MySQL for
completing the case project in its entirety. GoDaddy.com basic hosting
is recommended for this project, as it meets all of these criteria at a
relatively low cost.
Chapter 8 introduces MySQL, the most commonly used open
source database software, for data management and storage. This
includes an introduction to databases and the SQL database language.
The PHP toolkit is used for accessing, storing, and modifying data for
use in a Web application. The case project is completed in this chapter
with the storage and retrieval of information from the interactive form
developed for the site.
Chapter Structure
Each chapter is structured so as to provide you with an overview
and best practices for one component of creating a complete Web site
from the front-end design to the back-end programming. The chapters
contain hands-on activities both in the text and as standalone chal-
lenges to help you master the material. A case project is given as an
example for you to follow and expand on. Two additional projects are
presented to reinforce the material and allow you to practice it with
different objectives. A knowledge check is provided to allow you to test
your comprehension of the chapter. Answers to select odd-numbered
questions are provided at the back of the book. Additional exercises
and discussion questions are presented to help you further explore the
concepts in each chapter.
Code Notation
Some lines of code are longer than the lines of text in this book.
Whenever you see a symbol in the code, the line immediately follow-
ing it is a continuation that should be on the same line in your actual
code. In HTML this is not important but in formal languages it is
x i v — Introduction
necessary to keep all of the code on the same line. The code snippets
on the companion DVD contain the code in the correct lines for use.
Student Resource DVD
The textbook provides a DVD inside the back cover that includes
resources and sample video tutorials for the student. This DVD
includes all of the files needed to complete the chapter exercises within
the text. You will also find a repository of high-resolution images from
the chapters and companion Excel template documents for using com-
mon functions effectively. There are also student resources with addi-
tional project samples and videos for each chapter, as well as video
tutorials, on the companion Web site for the book(authorcloudware.
com).
Introduction — x v
Acknowledgments
Theodor Richardson:
I am very proud of the book that you now hold in your hands, and
I want to thank you for choosing it over others. Web design has been
a passion of mine and a profession for decades now, and I am pleased
to share what I have learned with you. This book is the result of the
combined creative forces of everyone who has worked to make it pos-
sible, and I want to offer my sincere thanks to them all, whether we
have met or not. I want to thank Katie Kennedy for her continued sup-
port, patience, and understanding as well as for her unprecedented
ability to make café lattes instantly as needed. I also want to thank
my grandparents, Leonard and Sylvia Ullom, and my parents, Dan
and Deborah Richardson, for giving me such a wonderful upbringing
and perpetual support and for helping me to capitalize on the oppor-
tunities that have led to my lifelong dream of seeing a book of my own
creation in print. I would like to thank my publisher, David Pallai,
and my co-author and friend, Charles Thies, for seeing another project
through to completion. Last, and certainly not least, I want to thank
you, dear reader, for your support.
Charles Thies:
I certainly have many people to thank who have made this project
possible. We have been writing now for a couple of years, and I would
like to thank my beautiful wife, Lea, and my sons, Matt and Will, for
their patience and support throughout. I would like to extend a special
thank you to my friend and co-author, Ted, for all of his guidance and
support throughout the project. A very special thank you to all of the
people we know worked to make this textbook possible but we never
met. Finally, a very special thank you to the students and professors
who have adopted this book; you are the reason we are always think-
ing about new ways to present material in the best format so that you
will be prepared in your field of study.
CHAPTER
1
Web Design Basics
I N T HI S CHAP T E R
Within this great Picarian order there are two large sub-orders,
called respectively the Scansorial and the Fissirostral[232] Picariæ.
The Scansorial birds are also sometimes known as the Zygodactylæ,
[233] or yoke-footed birds, because they have their toes arranged in
pairs, two in front and two behind, and their name of Scansores is
given to them because most of them are climbing birds, and run up
trees and rocks with great facility, though in different ways. Parrots,
for instance, use their bills in climbing from branch to branch, while
Woodpeckers have very powerful feet and stiffened tail-feathers,
which support them as they cling to the bark of the trees, the bill
being chiefly employed to prise off the bark in order to get at the
insects underneath. Cuckoos do not climb trees in the same manner
as the Woodpeckers, though they have true zygodactyle feet: the
present writer has, however, seen a common Cuckoo (Cuculus
canorus) cling with both feet to the trunk of a huge elm while it
picked off insects from the bark. It must not be supposed, however,
that the above are the only birds which climb trees, for among the
true Passeres, or perching birds, there occur such birds as the
Dendrocolaptidæ in South America, who have stiffened tails exactly
as the Woodpeckers, while the Tree-creepers are just as expert as
the last-named birds, and yet cannot be placed in the same order as
the Scansorial (Picariæ), for they possess a simple passerine foot,
with three toes in front and one behind.
The Fissirostres, or wide-gaping birds, are also called Gressorial
Picariæ, as their toes are more or less connected together, which
gives them a very flat sole to the foot. They generally hunt for their
food from some selected spot, ordinarily a post or a dead bough,
whence they take flights after their prey, usually returning to the
same spot to devour it. Their flight is active and swift, their gape
extremely large, and the head correspondingly big, and in many
instances clumsy and ungainly. The feet are generally small and
weak.
SUB-ORDER I.—ZYGODACTYLÆ.
This is one of the most powerful of all the Parrot tribe, measuring
about twenty-four inches in length, and having a bill of unusual
thickness and power. Its black plumage also renders it a conspicuous
species, the only relief to this sombre colouring being the greyish
crest and the dull crimson cheeks. Its home is New Guinea, but it is
also found in the Cape York Peninsula in Australia, where it was
discovered by John Macgillivray during the voyage of the
Rattlesnake. He writes as follows respecting it:—“This very fine bird,
which is not uncommon in the vicinity of Cape York, was usually
found in the densest scrub among the tops of the tallest trees, but
was occasionally seen in the open forest land perched on the largest
of the Eucalypti, apparently resting on its passage from one belt of
trees or patch of scrub to another. Like the Black Cockatoos, or
Calyptorhynchi, it flies slowly and usually but a short distance. In
November, 1849, the period of our last visit to Cape York, it was
always found in pairs, very shy, and difficult of approach. Its cry is
merely a low short whistle of a single note, which may be
represented by the letters ‘Hweet-Hweet.’ The stomach of the first
one killed contained a few small pieces of quartz and triturated
fragments of palm-cabbage, with which the crop of another
specimen was completely filled; and the idea immediately suggests
itself, that the powerful bill of this bird is a most fitting instrument
for stripping off the leaves near the summits of the Seaforthia
elegans and other palms to enable it to arrive at the central tender
shoot.”
AMAZON PARROT.
These Parrots are entirely American, and are the only birds of the
New World which can compete in talking powers with the African
Grey Parrots, who, however, far surpass their American relatives.
About thirty species of Amazon are known, all of them confined
within the limits of the Neotropical region, which comprises the
whole of Central and Southern America, south of an imaginary line
drawn through Northern Mexico. The West India islands are also
included in this area, and most of them are inhabited by a species of
Amazon. The habits of all these Parrots seem to be very similar, and
a good account of the Active Amazon of Jamaica (Chrysotis agilis) is
given by Mr. Gosse[240]:—“All the Parrots are gregarious, cunning,
watchful, noisy, mischievous; and thus are like the Monkeys. This
and the Yellow-billed Parrot [Mr. Gosse’s name for C. agilis is the
Black-billed Parrot] are so much alike in manners and general
appearance, that a description of one applies nearly to the other.
Flocks varying from half a dozen to twenty or thirty fly hither and
thither over the forest, screeching as they go, and all alight together
on some tree covered with berries. Here they feast, but with caution.
On a slight alarm one screams, and the whole flock is on the wing,
vociferous if not musical, and brilliant if not beautiful, particularly
when the sun shines on their green backs and crimsoned wings.
They generally prefer lofty trees, except when, in June, the ripe
yellow plantain tempts them to descend, or when the blackberry
shines upon the pimento. Of the latter the flocks devour an immense
quantity, and the former they destroy by cutting it to pieces with
their powerful beaks, to get at the small seeds. One day in January,
when the pimento on the brow of Bluefields Mountain was about
ready for picking, being full-sized, but yet green and hard, I
observed large flocks of Black-bills, and a few Parrakeets, flying to
and fro with voluble chatter, now alighting to feed on the hot,
aromatic berry, now flying off, and wheeling round to the same
neighbourhood again. They were not at all shy, but, with unusual
carelessness of one’s proximity, scarcely moved at the report of the
gun which brought their companions to the ground. Of two which I
shot on this occasion, I found the craws stuffed with the cotyledons
of the seed alone, the most pungently aromatic part of the berry;
the fleshy part having been, as I presume, shorn off by the beak and
rejected. When alighted, as is often the case, on a dry branch, their
emerald hue is conspicuous, and affords a fair mark for the gunner;
but in a tree of full foliage, their colour proves an excellent
concealment. They seem aware of this, and their sagacity prompts
them to rely on it for security. Often we hear their voices proceeding
from a certain tree, or else have marked the descent of a flock upon
it, but on proceeding to the spot, though the eye has not wandered
from it, and we are therefore sure that they are there, we cannot
discover an individual. We go close to the tree, but all is silent, and
still as death; we institute a careful survey of every part with the
eye, to detect the slightest motion, or the form of a bird among the
leaves, but in vain; we begin to think that they have stolen off
unperceived, but on throwing a stone into the tree, a dozen throats
burst forth into cry, and as many green birds rush forth upon the
wing. The screaming of this and the following species differs from
that of the Parrakeet, so far as to be easily distinguished. That of the
latter consists of a series of harsh screeches, of comparative length;
that of the Parrots is less shrill, more broken into short and rapid
articulations, forming a series of varying length, separated by
momentary pauses. It is, in fact, much more like a hurried
chattering.”
The Conures are inhabitants of the New World, and are very
abundant in South America, but one species, the Carolina Conure,
penetrating into the Nearctic region above the line of North Mexico.
It is a very handsome bird, but is rapidly decreasing in numbers, and
becoming restricted in its range, so much so, that in places where it
was once plentiful it is now no longer to be found at all. Even in
1842, when Audubon wrote, they were then fast diminishing, and
are now confined to the Southern and South-western States, as far
west as the Missouri river. The food of the Carolina Conure is stated
to consist chiefly of the seeds of the Cockle-burr (Xanthirum
strumarium), but it is also very partial to fruit of all kinds, and it is
owing to the way in which it has been shot down that it is now so
rare, for Mr. Audubon describes the immense damage done by a
flock of Conures to stacks of grain, which they covered in such
numbers that they presented to the eye the same effect as if a
brilliant-coloured carpet had been thrown over them. The farmers
resented the attacks on their property to such an extent that the
same naturalist states that he has seen hundreds killed in the course
of a few hours, the survivors, after each shot, flying round for a few
minutes, and then settling again in a place of most imminent danger.
Even in confinement the birds seem to develop their destructive
propensities, destroying wood, books, and, in short, everything that
comes in their way, while from their incapability of talk, and their
harsh, disagreeable voices, they are not much esteemed as pets. As
Audubon observes, the woods are the habitation best fitted for
them, and there the richness of their plumage, their beautiful mode
of flight, and even their screams, afford welcome intimation that the
darkest forests and most sequestered swamps are not destitute of
charms. According to the same observer, they deposit their eggs,
without making a nest, in the bottoms of such cavities in trees as
those to which they usually retire at night. Many females deposit
their eggs together, and he believed that the number laid by each
hen bird was two; the eggs were greenish-white, and nearly round,
and the young are at first covered with soft down, such as is seen in
nestling Owls. The colour of this Parrot is green, the head and neck
bright-yellow, and the forehead and region of the eye scarlet; the bill
is white, the feet pale flesh-colour, and the iris hazel; the length of
the bird being about fourteen inches. The female is like the male,
but the young bird has the head green instead of yellow.
ROSELLA.
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.
ebookfinal.com