3. Asif Hussain 3
Website Design & Development
⢠What is HTML?
⢠What is CSS?
⢠How Do I Set Up a Web Host?
⢠Website design process
⢠What makes a website good?
⢠Response Time
4. Web development
⢠Web development is a broad term for the work
involved in developing a web site for the Internet
(World Wide Web) or an intranet (a private
network).
⢠This can include
â web design,
â web content development,
â client liaison,
â client-side/server-side scripting,
â web server
â network security configuration,
â e-commerce development.
4Asif Hussain
5. Web development
⢠However, among web professionals, "web
development" usually refers to the main non-
design aspects of building web sites: writing
markup and coding.
⢠Web development can range from developing
the simplest static single page of plain text to
the most complex web-based internet
applications, electronic businesses, or social
network services.
5Asif Hussain
6. Client Side Coding
⢠Ajax Asynchronous JavaScript provides new methods of using JavaScript,
and other languages to improve the user experience.
⢠Flash Adobe Flash Player is an browser plugin
⢠JavaScript is a ubiquitous client side platform for creating and delivering
rich Web applications that can also run across a wide variety of devices.
⢠JQuery Cross-browser JavaScript library designed to simplify and speed up
the client-side scripting of HTML.
⢠Microsoft Silverlight Microsoft's browser plugin that enables animation,
vector graphics and high-definition video playback, programmed using
XAML and .NET programming languages.
⢠Real Studio Web Edition is a rapid application development environment
for the web. The language is object oriented and is similar to both VB and
Java. Applications are uniquely compiled to binary code.
⢠HTML5 and CSS3 Latest HTML proposed standard combined with the
latest proposed standard for CSS natively supports much of the client-side
functionality provided by other frameworks such as Flash and Silverlight
6Asif Hussain
7. Server Side Coding
⢠ASP (Microsoft proprietary)
⢠ColdFusion (Adobe proprietary, formerly Macromedia,
formerly Allaire)
⢠CGI
⢠Java, e.g. Java EE or WebObjects
⢠Perl (open source)
⢠PHP (open source)
⢠Python (open source)
⢠Real Studio Web Edition
⢠Ruby (open source)
⢠Websphere (IBM proprietary)
⢠.NET and .NET MVC Frameworks (Microsoft proprietary)
7Asif Hussain
8. Database Technology
⢠Apache Derby
⢠DB2 (IBM proprietary)
⢠Firebird
⢠Microsoft SQL Server
⢠MySQL
⢠Oracle
⢠PostgreSQL
⢠SQLite
⢠Sybase
8Asif Hussain
9. What is HTML?
⢠Hyper Text Markup Language.
â This is the basic format for the scripting language
that is used to construct the Web.
â Here is an example of what the current HTML
code would look like if you were adding an image.
⢠<img src="image_name.jpg" width="251" height="143"
/>
9Asif Hussain
10. What is CSS?
⢠CSS stands for Cascading Style Sheets.
⢠It is a style sheet language used to describe the design
elements of the websites such as the layout, color,
font size, etc.
⢠It can allow multiple pages to share the same
formatting.
⢠This is what it would look if you wanted to define the
height, width and background color of a specific div
tag.
.div_tag_name
{
background-color: #000000; width: 500px; height: 500px;10Asif Hussain
11. How Do I Set Up a Web Host?
⢠A web hosting service is a type of Internet
hosting service that allows individuals and
organizations to make their own website
accessible via the World Wide Web.
11Asif Hussain
12. Website Design Process
Production
Design Refinement
Design Exploration
Discovery
⌠followed by implementation & maintenance
[this set of slides from James Landay]
12Asif Hussain
14. Design Process:
Discovery
Assess needs
* understand clientâs
expectations
* determine scope of
project
* characteristics of
users
* evaluate existing site
and/or competition
Production
Design Refinement
Design Exploration
Discovery
14Asif Hussain
15. Design Process:
Design Exploration
Production
Design Refinement
Design Exploration
Discovery
Generate multiple
designs
* visualize solutions to
discovered issues
* information & navigation
design
* early graphic design
* select one design for
development
15Asif Hussain
16. Design Process:
Design Refinement
Production
Design Refinement
Design Exploration
Discovery
Develop the design
* increasing level of detail
* heavy emphasis on
graphic design
* iterate on design
16Asif Hussain
17. Prepare design for
handoff
* create final deliverable
* specifications, guidelines,
and prototypes
* as much detail as
possible
Design Process:
Production
Production
Design Refinement
Design Exploration
Discovery
17Asif Hussain
18. Artifacts of Design Practice
⢠Designers create representations of sites at
multiple levels of detail
⢠Web sites are iteratively refined at all levels of
detail
Site Maps Storyboards Schematics Mock-ups
18Asif Hussain
23. What makes a website good?
⢠Graphic design?
⢠Design criteria?
⢠Subjective
23Asif Hussain
24. Response Times:
The 3 Important Limits
⢠0.1 second is the limit for having user feel
system is reacting instantaneously
⢠1.0 second is the limit for userâs flow of
thought to stay uninterrupted (no feedback
necessary, but user will lose feeling of
operating directly on data)
⢠10 seconds is limit for keeping userâs attention
focused on page (for longer delays, percent-
done progress indicator should be used)[Nielsen 1997, Miller 1968, Card et al. 1991]
24Asif Hussain
25. Domain Registrar
⢠A company that provides domain name
registration services for a fee.
⢠Maintain database which maps domain names
to IPâs
⢠Propagate new domain name/IP address
information across the internet
25Asif Hussain
26. Creating a Web Site
1. Choose a domain name
2. Register with a Registrar
3. Choose a hosting service
4. Tell Registrar the IP address
5. Create web content
6. Store (publish) onto hosting server (FTP)
7. Submit new site to search engines
26Asif Hussain
27. 12 Principles of good web design
1. Visitor-centric, clear purpose
2. Progressive disclosure
3. Displays quickly
4. Browser compatible
5. Intuitive navigation
6. Spelling, grammar, writing
7. Secure (eCommerce)
8. Attractive design, easy to read
9. Cultural bias? (Regional? Domestic? International?)
10. No technical problems (broken links, buggy scripts)
11. Maintainable (separate content from style)
12. Search Engine Accessible
27Asif Hussain
28. Creating your Web Site
Technologies & Tools
⢠Markup Languages
â HTML, DHTML, XML, XSLT, etc....
⢠Cascading Style Sheets (CSS)
⢠Scripting languages
â perl,javascript,php, etc....
⢠Web creation and editing software
â Notepad, FrontPage, Coldfusion, Flash, Hotmetal,
Site Builder, etc..
28Asif Hussain
29. Markup Languages - HTML
Derived from SGML
(Standard Generalized Markup Language )
⢠HyperText Markup Language
29Asif Hussain
30. HTML Fundamentals
⢠Clear text, case insensitive
⢠Ignores white space
⢠Comprised of tags <tag />
⢠Open tags and closed tags
30Asif Hussain
31. HTML - Fundamentals
⢠Open tags
â <name attributes/>
â <hr/>, <br/>
â <img src=âurlâ width=â100pxâ height=â60pxâ/>
⢠Closed tags
â <name attributes> stuff </name>
â <b>text to be bolded</b>
â <h1>level 1 heading text</h1>
⢠Comments
< ! - - comment text -- >
31Asif Hussain
33. HTML â Fundamentals
Basic Structure
<html>
<head>
<title> The title of your html page </title>
<meta_tags/>
</head>
<body>
<! - - your web page content and markup - ->
</body>
</html>
33Asif Hussain
42. HTML - Fundamentals
ANCHORS (Hypertext Link)
<A href=âurlâ attributes>Displayed text </A>
Attributes
⢠NAME = âtextâ
⢠TITLE = "text"
⢠TARGET = âframe_name|window_nameâ
42Asif Hussain
43. HTML â Fundamentals
Hypertext links
Click this link
opens mywebpage.html
in the window / frame
named âwindow2â
<a href=âmywebpage.htmlâ target=âwindow2â >Click this link </a>
window2
43Asif Hussain
46. HTML â Fundamentals
Colors
color = âredâ (Browser compatibility issues)
color = â#FF0000â
values vary from 00 to FF (hexadecimal)
0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f
Red
Green
Blue
#FF FF FF
46Asif Hussain
47. HTML â Fundamentals
Headings
⢠Renders text as a heading, the rendering depending on the
level of heading selected. Headings should be automatically
spaced from the body text.
<h1>Heading 1 level text</h1>
<h2>Heading 2 level text</h2>
<h3>Heading 3 level text</h3>
<h4>Heading 4 level text</h4>
<h5>Heading 5 level text</h5>
<h6>Heading 6 level text</h6>
47Asif Hussain
48. HTML â Fundamentals
Lists
Unordered list
<ul>
<li>apples</li>
<li>bananas</li>
<li>grapes</li>
<li>strawberries</li>
</ul>
Ordered list
<ol type=âiâ start=â2â>
<li>apples</li>
<li>bananas</li>
<li>grapes</li>
<li>strawberries</li>
</ol>
48Asif Hussain
49. HTML â Fundamentals
Lists
Unordered list
⢠apples
⢠bananas
⢠grapes
⢠strawberries
Ordered list
II. apples
III. bananas
IV. grapes
V. strawberries
49Asif Hussain
60. HTML â Fundamentals
Frames
⢠Basic Frames
⢠Floating Frames (inline frames)
⢠Picture in picture
⢠Frames let you divide a screen into windows
with each window viewing a different web
page.
60Asif Hussain
68. HTML â Fundamentals
Floating Frames
⢠Floating frames allow you to create a frame
within the boundaries of a page
Basic Frames Floating Frames
68Asif Hussain
71. HTML â Fundamentals
Hypertext links
<a href=âpage.htmlâ target=âblankâ >Click this link </a>
â Creates new window for the page
<a href=âpage.htmlâ target=âparentâ >Click this link </a>
â Opens page in the parent frame/wind of this frame/window
<a href=âpage.htmlâ target=âtopâ >Click this link </a>
â Opens page in top most frame/window
71Asif Hussain
72. HTML â Fundamentals
DIV and ILAYER
⢠Allows you create a position-able block of
content.
Content
positioned
within this
block
72Asif Hussain
74. HTML â Fundamentals
DIV
< DIV ID=âfredâ
STYLE = âPOSITION:absolute|relative;
VISIBILITY:visible:hidden;
Z-INDEX:number;
WIDTH:width in pixels;
HEIGHT:height in pixels;
TOP:pixels from top of page or block;
LEFT:pixels from left edge of page or block;
PADDING:margin in pixels;
other style attributes; â >
content
</DIV>
74Asif Hussain
77. HTML â Fundamentals
CASCADING STYLE SHEETS (CSS)
⢠Styles enable you to define a consistent 'look' for
your documents by describing once how headings,
paragraphs, quotes, etc. should be displayed.
⢠Style sheet syntax is made up of three parts:
selector {property: value}
selector = element.class
77Asif Hussain
81. HTML â Fundamentals
CASCADING STYLE SHEETS (CSS)
Linked
Styles can be defined in a separate file
<font style=âproperty:value; â> text </font>
<font class=âfredâ> text </font>
mystyles.css
<head>
<LINK REL="stylesheet" HREF="mystyles.cssâ TYPE="text/css">
</head>
81Asif Hussain
82. HTML â Fundamentals
CASCADING STYLE SHEETS (CSS)
/* Example style sheet file (note how this comment was created) */
BODY {background: #FFFFD8; margin-top: 20}
A:link {color: #400080; background: #FFFFD8}
H1 {font-weight: bold; text-align: center; color: #006000; background:
#FFFFD8; font-family: Gill Sans, Arial, sans-serif; }
font.caption {font-family: Gill Sans, Arial, sans-serif; font-style: italic; }
/* End of example style sheet file */
82Asif Hussain
83. HTML â Fundamentals
CASCADING STYLE SHEETS (CSS)
Inline
Styles can be placed within individual elements
<font style=âcolor:red; font-face:ariel;â >
83Asif Hussain
84. HTML â Fundamentals
CASCADING STYLE SHEETS (CSS)
Inline > Embedded > Linked
Defining the style of your text
⢠linked -> font-family:arial,georgia;
⢠embedded -> color:navy;
⢠inline -> font-size:2pt;
84Asif Hussain
85. HTML â Fundamentals
CASCADING STYLE SHEETS (CSS)
Using IDs
⢠IDs enable you to define a unique style which you can apply to a number of
elements.
<STYLE>
<!â
#copyright {font-style:italic; font-size:smaller; }
-->
</STYLE>
<p ID=âcopyrightâ> Any textual content </p>
85Asif Hussain
87. HTML â Fundamentals
Using Images
⢠Images take longer to download than text
⢠The larger the image, the slower the page
⢠Use optimization software
⢠Use thumb nail images
87Asif Hussain