Chapter 1 - Introduction to Computers and the Internet
Chapter 1 - Introduction to Computers and the Internet
MIS 450
4
5
c Figure 1.3 gives some examples of how
computers and the Internet provide the
infrastructure to communicate, navigate,
collaborate and more.
6
7
8
9
c Figure 1.4 lists a few of the exciting ways in
which computers and the Internet are used in
entertainment.
10
11
12
HTML5
c HTML (HyperText Markup Language) is a special type of
computer language called a markup language designed to
specify the content and structure of web pages (also called
documents) in a portable manner.
14
c Cascading Style Sheets (CSS) are used to specify the
presentation, or styling, of elements on a web page (e.g.,
fonts, spacing, sizes, colors, positioning).
c CSS was designed to style portable web pages independently
of their content and structure.
15
c JavaScript helps you build dynamic web pages (i.e., pages that
can be modified “on the fly” in response to events, such as user
input, time changes and more) and computer applications.
c It enables you to do the client-side programming of web
applications. JavaScript was created by Netscape.
c Both Netscape and Microsoft have been instrumental in the
standardization of JavaScript by ECMA International (formerly
the European Computer Manufacturers Association) as
ECMAScript.
c ECMAScript 5, the latest version of the standard, corresponds to
the version of JavaScript we use in this book.
c JavaScript is a portable scripting language. Programs written in
JavaScript can run in web browsers across a wide range of
devices.
16
Web Browsers and Web-Browser Portability
c Ensuring a consistent look and feel on client- side browsers is
one of the great challenges of developing web-based
applications.
17
c Browsers are available in many versions and on many
different platforms (Microsoft Windows, Apple Macintosh,
Linux, UNIX, etc.).
c Vendors add features to each new version that
sometimes result in cross-platform incompatibility
issues.
c It’s difficult to develop web pages that render correctly on all
versions of each browser.
c All of the code examples in the book were tested in the
five most popular desktop browsers and the two most
popular mobile browsers (Fig. 1.5).
18
19
jQuery
c jQuery (jQuery.org) is currently the most popular of
hundreds of JavaScript libraries.
◦ www.activoinc.com/blog/2008/11/03/jquery-emerges- as-
most-popular-javascript-library-for-web- development/.
21
c A bit (short for “binary digit”) is the smallest data item in a
computer; it can assume the value 0 or 1.
22
Packet Switching
c One of the primary goals for ARPANET was to allow multiple
users to send and receive information simultaneously over the
same communications paths (e.g., phone lines).
23
c The sequencing information helped in reassembling the packets—
which, because of complex routing mechanisms, could actually arrive
out of order—into their original order for presentation to the
recipient.
24
TCP/IP
c The protocol (i.e., set of rules) for communicating over the
ARPANET became known as TCP—the Transmission
Control Protocol.
c TCP ensured that messages were properly routed from
sender to receiver and that they arrived intact.
c As the Internet evolved, organizations worldwide were
implementing their own networks for both
intraorganization (i.e., within the organization) and
interorganization (i.e., between organizations)
communications.
25
c ARPA accomplished this with the development of IP—the
Internet Protocol, truly creating a network of networks, the
current architecture of the Internet.
c The combined set of protocols is now commonly called
TCP/IP.
c Each computer on the Internet has a unique IP address.
c The current IP standard, Internet Protocol version 4 (IPv4),
has been in use since 1984 and will soon run out of possible
addresses.
27
World Wide Web, HTML, HTTP
c The World Wide Web allows computer users to
execute web-based applications and to locate and
view multimedia-based documents on almost any
subject over the Internet.
30
cIn its simplest form, a web page is nothing more than an
HTML (HyperText Markup Language) document (with the
extension .html or .htm) that describes to a web browser the
document’s content and structure.
Hyperlinks
c HTML documents normally contain hyperlinks, which,
when clicked, load a specified web document.
c Both images and text may be hyperlinked.
c When the user clicks a hyperlink, a web server locates the
requested web page and sends it to the user’s web browser.
c Similarly, the user can type the address of a web page into the
browser’s address field and press Enter to view the specified
page.
31
c Hyperlinks can reference other web pages, e-mail addresses,
files and more.
c If a hyperlink’s URL is in the form
mailto:emailAddress, clicking the link loads your
default e-mail program and opens a message window
addressed to the specified e- mail address.
32
URIs and URLs
c URIs (Uniform Resource Identifiers) identify resources on the
Internet.
c URIs that start with http:// are called URLs (Uniform Resource
Locators).
Parts of a URL
c A URL contains information that directs a browser to the
resource that the user wishes to access.
35
Web 1.0 versus Web 2.0
c Web 1.0 (the state of the web through the 1990s and early
2000s) was focused on a relatively small number of
companies and advertisers producing content for users to
access (some people called it the “brochure web”).
36
c Programmers write instructions in various programming
languages, some directly understandable by computers and
others requiring intermediate translation steps.
c Any computer can directly understand only its own machine
language, defined by its hardware design.
c Machine languages generally consist of numbers (ultimately
reduced to 1s and 0s). Such languages are cumbersome for
humans.
c Programming in machine language—the numbers that computers
could directly understand—was simply too slow and tedious for
most programmers.
c Instead, they began using Englishlike abbreviations to represent
elementary operations.
c These abbreviations formed the basis of assembly languages.
c Translator programs called assemblers were developed to
convert assembly-language programs to machine language.
37
c Although assembly-language code is clearer to humans, it’s
incomprehensible to computers until translated to machine
language.
c To speed the programming process even further, high-level
languages were developed in which single statements could be
written to accomplish substantial tasks.
c High-level languages allow you to write instructions that look
almost like everyday English and contain commonly used
mathematical expressions.
c Translator programs called compilers convert high-level
language programs into machine language.
c Interpreter programs were developed to execute high-level
language programs directly, although more slowly than compiled
programs.
c Figure 1.16 introduces a number of popular programming
languages.
c
38
39
40
41
42
43
44