01introductiontowebdevelopment 090306114001 Phpapp01
01introductiontowebdevelopment 090306114001 Phpapp01
INTO WEB
DEVELOPMENT
1 Introduction
1. I t d ti
1 INTRODUCTION
2 HTML
3 TABLES
4 FORMS
5 HTTP
6 CSS
7 CSS FRAMEWORKS
8 DIGITAL MEDIA
2 9 USABILITY
Overview of Web Applications
3
O
Over the
h past ten years, the
h Internet
I has
h evolved
l d from
f
a hypertextual information system offering static
information,,
to a
marketplace for the buying and selling of goods and
services,
and now to a
widely-used
id l d iinfrastructure
f t t for
f the
th development
d l t and
d hhosting
ti
of software applications within an enterprise.
Thus,, over time,, the Internet has moved from p
principally
p y
static page content to dynamically-generated content
via programs running on web servers.
Intranets
5
HTTP for
p
Transport
HTML/CSS/Javascript
p y
for Display
The Internet
HTML
B
Browsers
7
Web Site Structure
8
A web
b site
it is
i typically
t i ll composed
d off many fil
files.
A web site will have:
HTML files
These are ASCII text files. Most sites will have many HTML files.
These HTML files may also include client-side scripting (usually Javascript).
image
g files (optional)
( p )
There are two file formats (GIF and JPG) that are supported by all browsers.
object files (optional)
Files that require a helper application or plug
plug-in.
in.
Sound files, video files, Flash files, Java files, etc
server-side scripts (optional)
programs for accessing server-based resources such as databases.
databases
Typically CGI-Perl, ASP, ASP.NET, JSP, Cold Fusion, etc.
Web Site Structure
9
programs.htm
index.htm courses.htm
faculty.htm
index.html
Javascript
for image
roll-over
Links to
Image other HTML
files files
Link to
server side
server-side
script
Links to
server-side
scripts
10 Javascript to
validate form input
Basic Web Development Process
11
1 Create
1. C t HTML file(s)
fil ( ) 2 Test
2. T t llocally
ll on browser(s)
b ( )
<HTML><HEAD></HEAD><BODY
BACKGROUND="images/mainback.gif"
BGCOLOR="#999966" TOPMARGIN="8"
LEFTMARGIN="8">
<TABLE BORDER="0" WIDTH=544 CELLSPACING=0>
<TR><TD WIDTH="31"><IMG SRC="images/pixel.gif"
WIDTH="31" HEIGHT="8"></TD><TD
WIDTH="58"><IMG SRC="images/pixel.gif"
WIDTH="58" HEIGHT="8"></TD><TD
WIDTH="30"><IMG SRC="images/pixel.gif"
WIDTH "30" HEIGHT
WIDTH="30" HEIGHT="8"></TD>
"8" /TD
</TR></TABLE>
HTML Editor
R
Required
i d
Image Editor
FTP
Flash Optional
Media editors
Why Several Browsers?
13
The original
Th i i l iintention
i b behind
hi d HTML was that
h iti describes
d ib
meaning, not formatting.
That is, it is up to the browser to determine the formatting of
tags.
Thus, the same tags can be displayed differently on
different browsers.
browsers
As well, Netscape, and then later, Microsoft, added
their own proprietary tags.
Many of these special tags added physical formatting,
tables, frames, etc.
The browsers can vary in how they display pages.
CSS and Javascript, in particular, vary on the browsers.
Different Browsers, Different
14
Pages?
Given the different capabilities of the different
browsers, it is almost impossible to design a web
page that will look the same for all viewers.
Different Browsers, Different Pages?
15
St t i for
Strategies f dealing
d li with
ith differing
diff i b browsers:
Different versions for different browsers
Too difficult and time-consuming
g
Lowest common denominator design
Design for safest HTML standard (HTML 3.2)
Current version design
Design for most current versions of browsers
Splitting the difference
Design web pages that take advantage of newest
features, but are still usable and attractive for those
with older browsers.
Standards-based design
Design pages for current web standards, regardless
of browser support.
Use CSS and XHTML 1.0
Browser Market Share
16
Test, Test, Test
17
18
Static Web Content
19
Dynamic Web Content
20
Dynamic Web Technologies
There are quite
Th i a number
b off different
diff technologies
h l i for f
dynamically generating Web content.
ASP.NET
ASP
CGI
ColdFusion
JSP
PHP
Ruby on Rails
All of these technologies share one thing in common:
Using programming logic, they generate HTML on the server
and send it back to the requesting browser.
21
Web Frameworks
22