Documente Academic
Documente Profesional
Documente Cultură
Week 2
Web Design
18/01/2010
Objectives
Describe the current state of HTML
Transition from HTML to XHTML
Use good coding practices
Describe browser compatibility issues
Design for connection speed differences
Code for multiple screen resolutions
Address operating system issues
Hong Kong Baptist University
HTML as a Markup
p Language
g g
<html>
<head>
<meta http-equiv="Content-Type"
http equiv="Content Type" content="text/html; charset=big5">
<title>What is HTML ?</title>
</head>
<body>
<h1>What is HTML?</h1>
<p>HTML is a markup language
language, a structured language that lets you identify
common sections of a document such as headings, paragraphs, and lists. An
HTML file includes text and HTML markup (or element) tags that identify
these sections. The HTML markup tags indicate how the document sections
appear in a browser.
browser
</p>
</body>
/html
</html>
Example
p
Html format
<font
font color
color=“blue”><h1
blue h1 align=“center”>Type
align center Type your Heading here</h1></font>
here /h1 /font
Example
<poem>
<title> Psalm 23 </title>
<stanza>
<line> The Lord is my shepherd, I shall not be in want .</line>
<li > He
<line> H makesk me lilie d
down iin green pastures,
t h
he lleads
d me b beside
id quiet
i t waters,
t </li >
</line>
<line> he restores my soul. He guides me in paths of righteousness for his name’s sake.</line>
<line> Even though I walk through the valley of the shadow of death, I will fear no veil, for you are with
me; your rod and your staff, they comfort me.</line>
<line>You pprepare
p a table before me in the ppresence of my y enemies. You anoint my y head with oil;; my
y
cup overflows /line>
<line>Surely goodness and love will follow me all the day of my life, and I will dwell in the house of the
LORD forever </line>
</stanza>
</poem>
One of the g
greatest challenges
g facing g HTML authors is
designing pages that display properly in multiple browsers
Every b
E browser contains
t i a program called
ll d a parser that
th t
interprets the markup tags in an HTML file and displays the
results in the canvas area of the browser interface
Bandwidth Concerns
It will still be awhile before most computer users have fast access to
the Web
Hong K
H Kong (more
( than
th 78.6%
78 6% using
i b broaddband,
ddb d > 1 1.5M),
5M) almost
l t
every household can use broadband to access internet
Bandwidth Concerns
If your pages download slowly, your users will probably click to
go to another site before they see your content
Most users will simply not wait longer than 20 seconds for a
page
p g to load
Test your site as if you were a user visiting for the first time. This
is when users experience the greatest download times.
Clear your cache of the files and images that the browser has
stored
Example : http://www.speakeasy.net/speedtest/
The browser always tries to load images and files from the
cache
Objectives
Design
g for the computer
p medium
Create a unified site design
Design
g for the user
Design for the screen
Good use of white space guides the reader and defines the
areas of your page
Summary
• Craft a look and feel and stick with it throughout your site.
Revise and test your interface by paying close attention to
the demands of online display
display.
• Make your design portable, using as low a bandwidth as
possible ?
• Plan for easy access to your information. Don’t let the user
click through more than two or three pages before they get
what they want.
Hong Kong Baptist University
Summary
• Design a unified look for your site.
site Create templates for your
grid structure and apply them consistently.
• Use white space actively as an integral part of your design.
Use text, color, and object placement to guide the user’s
eye.
• Leverage the power of hypertext linking
linking. Provide enough
links for the user to create their own path through your
information.
Summary
• Use the ALT attribute on all graphics
graphics. Plan for users who
can’t or won’t download graphics.
• Design your text for online display
• Know your audience and design pages that suit their needs,
interests, and viewing preferences