SlideShare a Scribd company logo
1 of 85
Web Design Principles
5th
Edition
Chapter Eight
Incorporating Graphics and Color
Objectives
When you complete this chapter, you will be able to:
• Understand graphic file formats
• Choose a graphics tool
• Use the <img> element
• Control image properties with CSS
• Understand computer color basics
• Control color properties with CSS
• Control background images with CSS
2Web Design Principles 5th
Ed.
Understanding Graphic File
Formats
Understanding Graphic File
Formats
• You can currently use only three image file
formats on the Web: GIF, JPG, and PNG
– A newer format, SVG, has had limited success
• These formats all compress images to create
smaller files
– Knowing which file format to use for which type of
image is important
• If you choose the wrong file type, your image
won’t compress or display properly
4Web Design Principles 5th
Ed.
5
GIF
• GIF uses a lossless compression
technique, meaning that no color
information is discarded when the image is
compressed
• The color depth of GIF is 8-bit, allowing a
palette of no more than 256 colors
• GIF excels at compressing and displaying
flat color areas, making it the logical choice
for line art and color graphics
Web Design Principles 5th
Ed.
GIF Transparency
• With GIF files, you can choose any one color
in an image to appear as transparent in the
browser
• The background color or pattern will show
through the areas that you have designated
as transparent
• Using transparent areas allows you to create
graphics that appear to have an irregular
outside shape, rather than being bounded by
a rectangle
Web Design Principles 5th
Ed. 6
Web Design Principles 5th
Ed. 7
GIF Animation
• The GIF format lets you store multiple images
and timing information about the images in a
single file
• This means that you can build animations
consisting of multiple static images that play
continuously, creating the illusion of motion
Web Design Principles 5th
Ed. 8
Web Design Principles 5th
Ed. 9
JPG
• JPG is best for photographs or continuous
tone images
• JPGs are 24-bit RGB images that allow
millions of colors
• JPGs use a “lossy” compression routine
especially designed for photographic
images
– When the image is compressed, some color
information is discarded, resulting in a loss of
quality from the original image
Web Design Principles 5th
Ed. 10
JPG
• When you create the JPG file, you can also
manually balance the amount of compression
versus the resulting image quality
• The higher the compression, the lower the
image quality
– You can play with this setting to create files that
are as small as possible but still look good
• Many photos can sustain quite a bit of
compression while still maintaining image
integrity
Web Design Principles 5th
Ed. 11
Web Design Principles 5th
Ed. 12
PNG
• A royalty-free file format that is intended to
replace GIF
• This lossless format compresses bit
images to smaller file sizes than GIF
• PNG supports transparency and interlacing
but not animation
Web Design Principles 5th
Ed. 13
SVG
• A language for describing two-dimensional
graphics using XML
• SVG graphics are scalable to different
display resolutions and are printable
• Most new browsers now support SVG
Web Design Principles 5th
Ed. 14
Using Interlacing & Progressive
Display
• These are the gradual display of a graphic in a
series of passes as the data arrives in the browser
• Most Web-capable graphics editors let you save
images in an interlaced or progressive format
• You can choose this display option when creating
GIF, PNG, and JPG files
• GIF and PNG files use interlacing, while JPGs use
progression
Web Design Principles 5th
Ed. 15
Web Design Principles 5th
Ed. 16
Where You Can Find Images
• Stock photo collections
• Digital cameras
• Scanner
• Public-domain Web sites
• Clip art
• Create your own
• Remember to respect copyright laws!
Web Design Principles 5th
Ed. 17
Choosing the Right Format
• GIF: the everyday file format for all types of
simple colored graphics and line art
– GIF’s transparency feature lets you seamlessly
integrate graphics into your Web site
• JPG: use JPG for all 24-bit full color
photographic images, as well as more
complicated graphics that contain color
gradients, shadows, and feathering
Web Design Principles 5th
Ed. 18
Choosing the Right Format
• PNG: you can use PNG as a substitute for
GIF
• SVG: offers many advantages, wait for
complete browser support
Web Design Principles 5th
Ed. 19
Choosing a Graphics Tool
Choosing a Graphics Tool
• You use graphics software to create or manipulate
graphics
• Look for a tool that meets your needs and will not
take a long time to learn
• Shareware and freeware software are available
Web Design Principles 5th
Ed. 21
Using the Image Element
Using the Image Element
• <img> is a replaced element
• <img> is an empty element, so never use
a closing tag with it
Web Design Principles 5th
Ed. 23
Using the Image Element
• Normal image alignment is to the baseline
of the text
• Images that are within a line of text must
have spaces on both sides, or the text will
touch the image
Web Design Principles 5th
Ed. 24
<img> Element Attributes
Web Design Principles 5th
Ed. 25
Replacing Element Attributes with
Style Sheet Properties
Web Design Principles 5th
Ed. 26
Specifying alt and title Attribute Text
• The alt text is displayed if the image does
not appear, providing a description of the
image
• The title text appears as a pop-up when
the user places the cursor over the image
Web Design Principles 5th
Ed. 27
Web Design Principles 5th
Ed. 28
<img src="balloons_sm.jpg" width="200" height="267"
alt="Hot Air Balloon image" title="Balloons at the
Great Falls Festival in Lewiston, Maine"/>
Web Design Principles 5th
Ed. 29
Specifying Image Width and Height
• Every <img> element on your site should
contain width and height attributes
• These attributes provide important information
to the browser by specifying the amount of
space to reserve for the image
• This information dramatically affects the way
your pages download to the user, especially at
slower connection speeds
Web Design Principles 5th
Ed. 30
Web Design Principles 5th
Ed. 31
Web Design Principles 5th
Ed. 32
Sizing Graphics for the Page
• Size graphics appropriately
• Keep their dimensions small and appropriate to the
size of the page
Web Design Principles 5th
Ed. 33
Web Design Principles 5th
Ed. 34
Controlling Image Properties with CSS
• Removing the hypertext border
• Aligning text and images
• Floating images
• Adding white space around images
Web Design Principles 5th
Ed. 35
Removing the Hypertext Border
from an Image
• When you create a hypertext image, the
browser’s default behavior is to display the
hypertext border around the image
• This border is often unnecessary as users
often use their mouse to point to each
image to see if the hypertext cursor
displays
<img src="balloon.jpg" width="100"
height="100" alt="balloon”
style="border: none" />
Web Design Principles 5th
Ed. 36
Web Design Principles 5th
Ed. 37
Aligning Text and Images
• You can align text along an image border
using the align attribute
• Text and image alignment defaults to
bottom alignment, which means the bottom
of the text aligns with the bottom edge of
the image
• Valid values are: top, middle, bottom, left,
right
Web Design Principles 5th
Ed. 38
Web Design Principles 5th
Ed. 39
Floating Images
• The float property can be used to float an
image to the left or right of text
• The following style rules create two
classes of <img> elements, one of which
floats to the left of text; the other floats to
the right
img.left {float:left;}
img.right {float:right;}
Web Design Principles 5th
Ed. 40
Web Design Principles 5th
Ed. 41
Adding White Space around Images
• Add white space around your images to
reduce clutter and improve readability
• Use the CSS margin property to increase
the white space around an image
Web Design Principles 5th
Ed. 42
Web Design Principles 5th
Ed. 43
Understanding Computer
Color Basics
• Monitors display colors by mixing three basic
colors of light: red, green, and blue
– Intensity ranges from:
• 0% (complete absence of color) to 100% (complete presence
of color)
• Color depth
– Amount of data used to create the color
• bit (256 colors), 16-bit, and 24-bit (16.7M colors)
Web Design Principles 5th
Ed. 44
Color Depth
• The amount of data used to create color on a
display is called the color depth
• If your users have a 24-bit color display, they
can appreciate the full-color depth of your
images
• If your monitor doesn’t support the full color
depth of an image, the browser must resort to
mixing colors that attempt to match the
original colors in the image
Web Design Principles 5th
Ed. 45
Web Design Principles 5th
Ed. 46
Specifying CSS Color Values
• Color names
• RGB color values
• Hexadecimal color values
Web Design Principles 5th
Ed. 47
Using Color Names
• Sets color values using common color names
– Blue, gray, red, etc.
• Limited to small range of colors
• Not a very specific representation of color
Web Design Principles 5th
Ed. 48
Web Design Principles 5th
Ed. 49
Using RGB Color Values
• Numerical values that specify the blending of the
red, green, and blue color channels
• Range: 0-100% (zero color to max color)
– Also: 0-255 (integer)
• Can be expressed as percentage or integer:
P {color: rgb(0, 100%, 100%);}
or
P {color: rgb(0, 255, 255);}
Web Design Principles 5th
Ed. 50
Using Hexadecimal
Color Values
• Numerical values that specify the blending of the
red, green, and blue color channels
– Base 16 number system (0-9, A-F)
• Range: 00-FF (zero color to max color)
– Example: Red → FF 00 00
– The following rules specify the same color:
P {color: #00FFFF;}
P {color: rgb(0, 100%, 100%);}
P {color: rgb(0, 255, 255);}
Web Design Principles 5th
Ed. 51
Understanding Element Layers
• Background color layer—the backmost layer,
specified by the background-color property
• Background image layer—the middle layer,
specified by the background-image property
• Content layer—the frontmost layer; this is the
color of the text content; specified by the color
property
Web Design Principles 5th
Ed. 52
Web Design Principles 5th
Ed. 53
Controlling Color Properties
with CSS
Controlling Color Properties
with CSS
• Specifying color values
• Setting default text color
• Changing link colors
• Specifying background color
• Setting the page background color
• Creating a text reverse
Web Design Principles 5th
Ed. 55
Specifying Color Values
/* color name */
p {color: blue;}
/* hexadecimal value */
p {color: #0000ff;}
/* RGB numbers */
p {color: rgb(0,0,255);}
/* RGB percentages */
p {color: rgb(0%,0%,100%);}
The following style rules show the different
methods of specifying a color:
Web Design Principles 5th
Ed. 56
Web Design Principles 5th
Ed. 57
Changing Link Colors
• You can change the colors of hypertext links by
using the following special CSS classes
• link—the unvisited link color
• active—the active link color; this is the color
displayed when the user points to a link and
holds down the mouse button
• visited—the visited link color
Web Design Principles 5th
Ed. 58
Changing Link Colors
• You can use these special classes only with the
<a> tag
• The syntax uses a colon (:) flag character as
shown in the following examples:
a:link {color: #000000;} /* new links are black */
a:active {color: #FF0000;} /* active links are red */
a:visited {color: #CCCCCC;} /* visited links are gray */
Web Design Principles 5th
Ed. 59
Web Design Principles 5th
Ed. 60
Specifying Background Colors
• Background-color
– Sets the background color of any element on a
Web page (including padding area)
– By default, background color of any element is
transparent
Web Design Principles 5th
Ed. 61
Web Design Principles 5th
Ed. 62
Setting Page Background Color
• To set the page background color, use body as the
selector
• The following rule sets a background color for the
<body> element
body {background-color: #c5f0ff;}
Web Design Principles 5th
Ed. 63
Web Design Principles 5th
Ed. 64
Creating a Text Reverse
• The background and foreground colors are
reversed
• The following rule sets the text color to
white and the background color to blue:
h1 { color: #fff;
padding: .25em;
background-color: #f90000;
}
Web Design Principles 5th
Ed. 65
Web Design Principles 5th
Ed. 66
Controlling Background Images
with CSS
Specifying a Background Image
• The background-image property lets you
specify which image to display
• Other CSS background properties control how
the image is displayed
Web Design Principles 5th
Ed. 68
Web Design Principles 5th
Ed. 69
Web Design Principles 5th
Ed. 70
Creating a Page Background
• To tile an image across the entire background of
the Web page, use body as the selector
body {background-image: url(clouds.jpg);}
Web Design Principles 5th
Ed. 71
Creating an Element Background
h1 {background-image: url(bluetex.jpg); padding: .25em;}
• Images can be applied to the background of
any element
• The following rule applies an image to the
background of the H1 element:
Web Design Principles 5th
Ed. 72
Web Design Principles 5th
Ed. 73
Specifying Background Repeat
• Controls tiling of background images
body {
background-image: url(grayivy.jpg);
background-repeat: repeat-y;
}
Web Design Principles 5th
Ed. 74
• Allows creation of a vertically repeating background
graphic
body {
background-image: url(column.jpg);
background-repeat: repeat-y;
}
Creating a Vertical Repeat
Web Design Principles 5th
Ed. 75
Web Design Principles 5th
Ed. 76
Creating a Horizontal Repeat
• Allows creation of a horizontally repeating
background graphic
body {
background-image: url(header.jpg);
background-repeat: repeat-x;
}
Web Design Principles 5th
Ed. 77
Web Design Principles 5th
Ed. 78
Creating a Nonrepeating
Background Image
• Allows creation of a single instance of an
image in the background
• The following style rule shows the use of the
no-repeat value:
body {
background-image: url(balloon_sm.jpg);
background-repeat: no-repeat;
}
Web Design Principles 5th
Ed. 79
Specifying Background Position
• The background-position property lets you use
three types of values: percentage, length, or
keywords
#right {
background-image:
url(rightgradient.gif);
background-repeat: repeat-y;
background-position: right;
}
Web Design Principles 5th
Ed. 80
Web Design Principles 5th
Ed. 81
Positioning Vertical and Horizontal
Background Images
• Positions images that repeat on either the
horizontal or vertical axis of the Web page
Web Design Principles 5th
Ed. 82
Web Design Principles 5th
Ed. 83
Summary
• The four popular file formats for the Web are GIF,
JPG, PNG, and SVG
• Your computer monitor displays color by mixing the
three basic colors of light: red, green, and blue
(RGB)
• Reduce image size to the appropriate dimensions
• The color scheme you choose for a Web site
should create a distinctive look without detracting
from your content’s legibility
Web Design Principles 5th
Ed. 84
Summary
• Use the color property to set foreground colors for
elements
• Background colors affect any padding areas in the
element
• Choose background images that do not detract
from the legibility of your content
• Test your work on different browsers and
computing platforms
Web Design Principles 5th
Ed. 85

More Related Content

What's hot

Lego blocks and pieces stacked on top of one another process 5 stages style ...
Lego blocks and pieces stacked on top of one another  process 5 stages style ...Lego blocks and pieces stacked on top of one another  process 5 stages style ...
Lego blocks and pieces stacked on top of one another process 5 stages style ...SlideTeam.net
 
Helpsheet 2 this time its personal
Helpsheet 2 this time its personal Helpsheet 2 this time its personal
Helpsheet 2 this time its personal hiletman
 
Helpsheet 2
Helpsheet 2 Helpsheet 2
Helpsheet 2 hiletman
 
JPEG vs GIF vs PNG
JPEG vs GIF vs PNGJPEG vs GIF vs PNG
JPEG vs GIF vs PNGSomeone Else
 

What's hot (8)

Lego blocks and pieces stacked on top of one another process 5 stages style ...
Lego blocks and pieces stacked on top of one another  process 5 stages style ...Lego blocks and pieces stacked on top of one another  process 5 stages style ...
Lego blocks and pieces stacked on top of one another process 5 stages style ...
 
Lab#2 illustrator
Lab#2 illustratorLab#2 illustrator
Lab#2 illustrator
 
Image formats
Image formatsImage formats
Image formats
 
image formats
image formatsimage formats
image formats
 
Helpsheet 2 this time its personal
Helpsheet 2 this time its personal Helpsheet 2 this time its personal
Helpsheet 2 this time its personal
 
Helpsheet 2
Helpsheet 2 Helpsheet 2
Helpsheet 2
 
JPEG vs GIF vs PNG
JPEG vs GIF vs PNGJPEG vs GIF vs PNG
JPEG vs GIF vs PNG
 
Digital image formats
Digital image formatsDigital image formats
Digital image formats
 

Viewers also liked

Road Trip Summer 2016
Road Trip Summer 2016Road Trip Summer 2016
Road Trip Summer 2016bobpearlman
 
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSSA CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSSJimena Kerszenblat
 
Drugi rok Zwinnej Łodzi
Drugi rok Zwinnej ŁodziDrugi rok Zwinnej Łodzi
Drugi rok Zwinnej ŁodziRadoslaw Lont
 
From Students to Learners: New Learning Environments for 21st Century Learners
From Students to Learners: New Learning Environments for 21st Century LearnersFrom Students to Learners: New Learning Environments for 21st Century Learners
From Students to Learners: New Learning Environments for 21st Century Learnersbobpearlman
 
What does 21st Century Learning look like?
What does 21st Century Learning look like?What does 21st Century Learning look like?
What does 21st Century Learning look like?bobpearlman
 
We Make Makers! The new Innovation Labs, Makerspaces, and Learning Commons
We Make Makers! The new Innovation Labs, Makerspaces, and Learning CommonsWe Make Makers! The new Innovation Labs, Makerspaces, and Learning Commons
We Make Makers! The new Innovation Labs, Makerspaces, and Learning Commonsbobpearlman
 
Olutionmanual microprocessorsand interfacing-dv-hall
Olutionmanual microprocessorsand interfacing-dv-hallOlutionmanual microprocessorsand interfacing-dv-hall
Olutionmanual microprocessorsand interfacing-dv-hallky phung
 
Estructuras de almacenamiento
Estructuras de almacenamientoEstructuras de almacenamiento
Estructuras de almacenamientoAndrea Mendez
 
QMS_OF KING KONG SECURITY
QMS_OF KING KONG SECURITYQMS_OF KING KONG SECURITY
QMS_OF KING KONG SECURITYMr Nembudani
 
2016 tempo awards press release
2016 tempo awards press release2016 tempo awards press release
2016 tempo awards press releaseJayne McGrath
 
Servers Shift Card 2.0
Servers Shift Card 2.0Servers Shift Card 2.0
Servers Shift Card 2.0Arijit Das
 

Viewers also liked (16)

Road Trip Summer 2016
Road Trip Summer 2016Road Trip Summer 2016
Road Trip Summer 2016
 
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSSA CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
A CALL FOR ACTION TO STRENGTHEN HEALTHCARE FOR HEARING LOSS
 
Ppt ch07
Ppt ch07Ppt ch07
Ppt ch07
 
Drugi rok Zwinnej Łodzi
Drugi rok Zwinnej ŁodziDrugi rok Zwinnej Łodzi
Drugi rok Zwinnej Łodzi
 
Ppt ch09
Ppt ch09Ppt ch09
Ppt ch09
 
From Students to Learners: New Learning Environments for 21st Century Learners
From Students to Learners: New Learning Environments for 21st Century LearnersFrom Students to Learners: New Learning Environments for 21st Century Learners
From Students to Learners: New Learning Environments for 21st Century Learners
 
What does 21st Century Learning look like?
What does 21st Century Learning look like?What does 21st Century Learning look like?
What does 21st Century Learning look like?
 
Ahn i lab
Ahn i labAhn i lab
Ahn i lab
 
We Make Makers! The new Innovation Labs, Makerspaces, and Learning Commons
We Make Makers! The new Innovation Labs, Makerspaces, and Learning CommonsWe Make Makers! The new Innovation Labs, Makerspaces, and Learning Commons
We Make Makers! The new Innovation Labs, Makerspaces, and Learning Commons
 
Olutionmanual microprocessorsand interfacing-dv-hall
Olutionmanual microprocessorsand interfacing-dv-hallOlutionmanual microprocessorsand interfacing-dv-hall
Olutionmanual microprocessorsand interfacing-dv-hall
 
Estructuras de almacenamiento
Estructuras de almacenamientoEstructuras de almacenamiento
Estructuras de almacenamiento
 
QMS_OF KING KONG SECURITY
QMS_OF KING KONG SECURITYQMS_OF KING KONG SECURITY
QMS_OF KING KONG SECURITY
 
2016 tempo awards press release
2016 tempo awards press release2016 tempo awards press release
2016 tempo awards press release
 
TRRHC 5 year plan Year 1 Review
TRRHC 5 year plan Year 1 ReviewTRRHC 5 year plan Year 1 Review
TRRHC 5 year plan Year 1 Review
 
Servers Shift Card 2.0
Servers Shift Card 2.0Servers Shift Card 2.0
Servers Shift Card 2.0
 
Everything about pest
Everything about pestEverything about pest
Everything about pest
 

Similar to Ppt ch08

9781111528705_PPT_ch08.ppt
9781111528705_PPT_ch08.ppt9781111528705_PPT_ch08.ppt
9781111528705_PPT_ch08.pptSimonChirambira
 
Chapter 23: Web Images
Chapter 23: Web ImagesChapter 23: Web Images
Chapter 23: Web ImagesSteve Guinan
 
Castro Chapter 5
Castro Chapter 5Castro Chapter 5
Castro Chapter 5Jeff Byrnes
 
Portfolio Presentation Final
Portfolio Presentation FinalPortfolio Presentation Final
Portfolio Presentation FinalShea Hinds
 
Image optimization and you
Image optimization and youImage optimization and you
Image optimization and youJohannes Siipola
 
File Types Pro Forma
File Types Pro FormaFile Types Pro Forma
File Types Pro Formajessstanton17
 
Design for Non-Designers: An Introduction to Design for Nonprofits
Design for Non-Designers: An Introduction to Design for NonprofitsDesign for Non-Designers: An Introduction to Design for Nonprofits
Design for Non-Designers: An Introduction to Design for NonprofitsNetSquared Vancouver
 
Optimizing images in WordPress to improve site performance and sSEO
Optimizing images in WordPress to improve site performance and sSEOOptimizing images in WordPress to improve site performance and sSEO
Optimizing images in WordPress to improve site performance and sSEOSteve Mortiboy
 
Creating Images for the Web
Creating Images for the WebCreating Images for the Web
Creating Images for the WebShawn Calvert
 
Practical information for images in ebooks - ebookcraft 2015 - Joshua Tallent
Practical information for images in ebooks - ebookcraft 2015 - Joshua TallentPractical information for images in ebooks - ebookcraft 2015 - Joshua Tallent
Practical information for images in ebooks - ebookcraft 2015 - Joshua TallentBookNet Canada
 
Raster vs vector
Raster vs vectorRaster vs vector
Raster vs vectorakn4fotos
 
Your Images are Weighing You Down: Optimization for a Better UX
Your Images are Weighing You Down: Optimization for a Better UXYour Images are Weighing You Down: Optimization for a Better UX
Your Images are Weighing You Down: Optimization for a Better UXTim D'Agostino
 

Similar to Ppt ch08 (20)

9781111528705_PPT_ch08.ppt
9781111528705_PPT_ch08.ppt9781111528705_PPT_ch08.ppt
9781111528705_PPT_ch08.ppt
 
Chapter 23: Web Images
Chapter 23: Web ImagesChapter 23: Web Images
Chapter 23: Web Images
 
Graphics and imagea
Graphics and imageaGraphics and imagea
Graphics and imagea
 
Chapter13
Chapter13Chapter13
Chapter13
 
Chapter 13
Chapter 13Chapter 13
Chapter 13
 
Castro Chapter 5
Castro Chapter 5Castro Chapter 5
Castro Chapter 5
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
 
Portfolio Presentation Final
Portfolio Presentation FinalPortfolio Presentation Final
Portfolio Presentation Final
 
Image optimization and you
Image optimization and youImage optimization and you
Image optimization and you
 
File Types Pro Forma
File Types Pro FormaFile Types Pro Forma
File Types Pro Forma
 
Design for Non-Designers: An Introduction to Design for Nonprofits
Design for Non-Designers: An Introduction to Design for NonprofitsDesign for Non-Designers: An Introduction to Design for Nonprofits
Design for Non-Designers: An Introduction to Design for Nonprofits
 
Optimizing images in WordPress to improve site performance and sSEO
Optimizing images in WordPress to improve site performance and sSEOOptimizing images in WordPress to improve site performance and sSEO
Optimizing images in WordPress to improve site performance and sSEO
 
Portfolio Task 5
Portfolio Task 5Portfolio Task 5
Portfolio Task 5
 
Portfolio Task 5
Portfolio Task 5Portfolio Task 5
Portfolio Task 5
 
Portfolio T
Portfolio TPortfolio T
Portfolio T
 
Creating Images for the Web
Creating Images for the WebCreating Images for the Web
Creating Images for the Web
 
Practical information for images in ebooks - ebookcraft 2015 - Joshua Tallent
Practical information for images in ebooks - ebookcraft 2015 - Joshua TallentPractical information for images in ebooks - ebookcraft 2015 - Joshua Tallent
Practical information for images in ebooks - ebookcraft 2015 - Joshua Tallent
 
Raster vs vector
Raster vs vectorRaster vs vector
Raster vs vector
 
Your Images are Weighing You Down: Optimization for a Better UX
Your Images are Weighing You Down: Optimization for a Better UXYour Images are Weighing You Down: Optimization for a Better UX
Your Images are Weighing You Down: Optimization for a Better UX
 
Ppt ch05
Ppt ch05Ppt ch05
Ppt ch05
 

More from niruttisai

More from niruttisai (8)

Ppt ch12
Ppt ch12Ppt ch12
Ppt ch12
 
Ppt ch11
Ppt ch11Ppt ch11
Ppt ch11
 
Ppt ch10
Ppt ch10Ppt ch10
Ppt ch10
 
Ppt ch04
Ppt ch04Ppt ch04
Ppt ch04
 
Ppt ch05
Ppt ch05Ppt ch05
Ppt ch05
 
Ppt ch03
Ppt ch03Ppt ch03
Ppt ch03
 
-
--
-
 
Ppt ch01
Ppt ch01Ppt ch01
Ppt ch01
 

Recently uploaded

Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 

Recently uploaded (20)

Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 

Ppt ch08

  • 1. Web Design Principles 5th Edition Chapter Eight Incorporating Graphics and Color
  • 2. Objectives When you complete this chapter, you will be able to: • Understand graphic file formats • Choose a graphics tool • Use the <img> element • Control image properties with CSS • Understand computer color basics • Control color properties with CSS • Control background images with CSS 2Web Design Principles 5th Ed.
  • 4. Understanding Graphic File Formats • You can currently use only three image file formats on the Web: GIF, JPG, and PNG – A newer format, SVG, has had limited success • These formats all compress images to create smaller files – Knowing which file format to use for which type of image is important • If you choose the wrong file type, your image won’t compress or display properly 4Web Design Principles 5th Ed.
  • 5. 5 GIF • GIF uses a lossless compression technique, meaning that no color information is discarded when the image is compressed • The color depth of GIF is 8-bit, allowing a palette of no more than 256 colors • GIF excels at compressing and displaying flat color areas, making it the logical choice for line art and color graphics Web Design Principles 5th Ed.
  • 6. GIF Transparency • With GIF files, you can choose any one color in an image to appear as transparent in the browser • The background color or pattern will show through the areas that you have designated as transparent • Using transparent areas allows you to create graphics that appear to have an irregular outside shape, rather than being bounded by a rectangle Web Design Principles 5th Ed. 6
  • 8. GIF Animation • The GIF format lets you store multiple images and timing information about the images in a single file • This means that you can build animations consisting of multiple static images that play continuously, creating the illusion of motion Web Design Principles 5th Ed. 8
  • 10. JPG • JPG is best for photographs or continuous tone images • JPGs are 24-bit RGB images that allow millions of colors • JPGs use a “lossy” compression routine especially designed for photographic images – When the image is compressed, some color information is discarded, resulting in a loss of quality from the original image Web Design Principles 5th Ed. 10
  • 11. JPG • When you create the JPG file, you can also manually balance the amount of compression versus the resulting image quality • The higher the compression, the lower the image quality – You can play with this setting to create files that are as small as possible but still look good • Many photos can sustain quite a bit of compression while still maintaining image integrity Web Design Principles 5th Ed. 11
  • 12. Web Design Principles 5th Ed. 12
  • 13. PNG • A royalty-free file format that is intended to replace GIF • This lossless format compresses bit images to smaller file sizes than GIF • PNG supports transparency and interlacing but not animation Web Design Principles 5th Ed. 13
  • 14. SVG • A language for describing two-dimensional graphics using XML • SVG graphics are scalable to different display resolutions and are printable • Most new browsers now support SVG Web Design Principles 5th Ed. 14
  • 15. Using Interlacing & Progressive Display • These are the gradual display of a graphic in a series of passes as the data arrives in the browser • Most Web-capable graphics editors let you save images in an interlaced or progressive format • You can choose this display option when creating GIF, PNG, and JPG files • GIF and PNG files use interlacing, while JPGs use progression Web Design Principles 5th Ed. 15
  • 16. Web Design Principles 5th Ed. 16
  • 17. Where You Can Find Images • Stock photo collections • Digital cameras • Scanner • Public-domain Web sites • Clip art • Create your own • Remember to respect copyright laws! Web Design Principles 5th Ed. 17
  • 18. Choosing the Right Format • GIF: the everyday file format for all types of simple colored graphics and line art – GIF’s transparency feature lets you seamlessly integrate graphics into your Web site • JPG: use JPG for all 24-bit full color photographic images, as well as more complicated graphics that contain color gradients, shadows, and feathering Web Design Principles 5th Ed. 18
  • 19. Choosing the Right Format • PNG: you can use PNG as a substitute for GIF • SVG: offers many advantages, wait for complete browser support Web Design Principles 5th Ed. 19
  • 21. Choosing a Graphics Tool • You use graphics software to create or manipulate graphics • Look for a tool that meets your needs and will not take a long time to learn • Shareware and freeware software are available Web Design Principles 5th Ed. 21
  • 22. Using the Image Element
  • 23. Using the Image Element • <img> is a replaced element • <img> is an empty element, so never use a closing tag with it Web Design Principles 5th Ed. 23
  • 24. Using the Image Element • Normal image alignment is to the baseline of the text • Images that are within a line of text must have spaces on both sides, or the text will touch the image Web Design Principles 5th Ed. 24
  • 25. <img> Element Attributes Web Design Principles 5th Ed. 25
  • 26. Replacing Element Attributes with Style Sheet Properties Web Design Principles 5th Ed. 26
  • 27. Specifying alt and title Attribute Text • The alt text is displayed if the image does not appear, providing a description of the image • The title text appears as a pop-up when the user places the cursor over the image Web Design Principles 5th Ed. 27
  • 28. Web Design Principles 5th Ed. 28
  • 29. <img src="balloons_sm.jpg" width="200" height="267" alt="Hot Air Balloon image" title="Balloons at the Great Falls Festival in Lewiston, Maine"/> Web Design Principles 5th Ed. 29
  • 30. Specifying Image Width and Height • Every <img> element on your site should contain width and height attributes • These attributes provide important information to the browser by specifying the amount of space to reserve for the image • This information dramatically affects the way your pages download to the user, especially at slower connection speeds Web Design Principles 5th Ed. 30
  • 31. Web Design Principles 5th Ed. 31
  • 32. Web Design Principles 5th Ed. 32
  • 33. Sizing Graphics for the Page • Size graphics appropriately • Keep their dimensions small and appropriate to the size of the page Web Design Principles 5th Ed. 33
  • 34. Web Design Principles 5th Ed. 34
  • 35. Controlling Image Properties with CSS • Removing the hypertext border • Aligning text and images • Floating images • Adding white space around images Web Design Principles 5th Ed. 35
  • 36. Removing the Hypertext Border from an Image • When you create a hypertext image, the browser’s default behavior is to display the hypertext border around the image • This border is often unnecessary as users often use their mouse to point to each image to see if the hypertext cursor displays <img src="balloon.jpg" width="100" height="100" alt="balloon” style="border: none" /> Web Design Principles 5th Ed. 36
  • 37. Web Design Principles 5th Ed. 37
  • 38. Aligning Text and Images • You can align text along an image border using the align attribute • Text and image alignment defaults to bottom alignment, which means the bottom of the text aligns with the bottom edge of the image • Valid values are: top, middle, bottom, left, right Web Design Principles 5th Ed. 38
  • 39. Web Design Principles 5th Ed. 39
  • 40. Floating Images • The float property can be used to float an image to the left or right of text • The following style rules create two classes of <img> elements, one of which floats to the left of text; the other floats to the right img.left {float:left;} img.right {float:right;} Web Design Principles 5th Ed. 40
  • 41. Web Design Principles 5th Ed. 41
  • 42. Adding White Space around Images • Add white space around your images to reduce clutter and improve readability • Use the CSS margin property to increase the white space around an image Web Design Principles 5th Ed. 42
  • 43. Web Design Principles 5th Ed. 43
  • 44. Understanding Computer Color Basics • Monitors display colors by mixing three basic colors of light: red, green, and blue – Intensity ranges from: • 0% (complete absence of color) to 100% (complete presence of color) • Color depth – Amount of data used to create the color • bit (256 colors), 16-bit, and 24-bit (16.7M colors) Web Design Principles 5th Ed. 44
  • 45. Color Depth • The amount of data used to create color on a display is called the color depth • If your users have a 24-bit color display, they can appreciate the full-color depth of your images • If your monitor doesn’t support the full color depth of an image, the browser must resort to mixing colors that attempt to match the original colors in the image Web Design Principles 5th Ed. 45
  • 46. Web Design Principles 5th Ed. 46
  • 47. Specifying CSS Color Values • Color names • RGB color values • Hexadecimal color values Web Design Principles 5th Ed. 47
  • 48. Using Color Names • Sets color values using common color names – Blue, gray, red, etc. • Limited to small range of colors • Not a very specific representation of color Web Design Principles 5th Ed. 48
  • 49. Web Design Principles 5th Ed. 49
  • 50. Using RGB Color Values • Numerical values that specify the blending of the red, green, and blue color channels • Range: 0-100% (zero color to max color) – Also: 0-255 (integer) • Can be expressed as percentage or integer: P {color: rgb(0, 100%, 100%);} or P {color: rgb(0, 255, 255);} Web Design Principles 5th Ed. 50
  • 51. Using Hexadecimal Color Values • Numerical values that specify the blending of the red, green, and blue color channels – Base 16 number system (0-9, A-F) • Range: 00-FF (zero color to max color) – Example: Red → FF 00 00 – The following rules specify the same color: P {color: #00FFFF;} P {color: rgb(0, 100%, 100%);} P {color: rgb(0, 255, 255);} Web Design Principles 5th Ed. 51
  • 52. Understanding Element Layers • Background color layer—the backmost layer, specified by the background-color property • Background image layer—the middle layer, specified by the background-image property • Content layer—the frontmost layer; this is the color of the text content; specified by the color property Web Design Principles 5th Ed. 52
  • 53. Web Design Principles 5th Ed. 53
  • 55. Controlling Color Properties with CSS • Specifying color values • Setting default text color • Changing link colors • Specifying background color • Setting the page background color • Creating a text reverse Web Design Principles 5th Ed. 55
  • 56. Specifying Color Values /* color name */ p {color: blue;} /* hexadecimal value */ p {color: #0000ff;} /* RGB numbers */ p {color: rgb(0,0,255);} /* RGB percentages */ p {color: rgb(0%,0%,100%);} The following style rules show the different methods of specifying a color: Web Design Principles 5th Ed. 56
  • 57. Web Design Principles 5th Ed. 57
  • 58. Changing Link Colors • You can change the colors of hypertext links by using the following special CSS classes • link—the unvisited link color • active—the active link color; this is the color displayed when the user points to a link and holds down the mouse button • visited—the visited link color Web Design Principles 5th Ed. 58
  • 59. Changing Link Colors • You can use these special classes only with the <a> tag • The syntax uses a colon (:) flag character as shown in the following examples: a:link {color: #000000;} /* new links are black */ a:active {color: #FF0000;} /* active links are red */ a:visited {color: #CCCCCC;} /* visited links are gray */ Web Design Principles 5th Ed. 59
  • 60. Web Design Principles 5th Ed. 60
  • 61. Specifying Background Colors • Background-color – Sets the background color of any element on a Web page (including padding area) – By default, background color of any element is transparent Web Design Principles 5th Ed. 61
  • 62. Web Design Principles 5th Ed. 62
  • 63. Setting Page Background Color • To set the page background color, use body as the selector • The following rule sets a background color for the <body> element body {background-color: #c5f0ff;} Web Design Principles 5th Ed. 63
  • 64. Web Design Principles 5th Ed. 64
  • 65. Creating a Text Reverse • The background and foreground colors are reversed • The following rule sets the text color to white and the background color to blue: h1 { color: #fff; padding: .25em; background-color: #f90000; } Web Design Principles 5th Ed. 65
  • 66. Web Design Principles 5th Ed. 66
  • 68. Specifying a Background Image • The background-image property lets you specify which image to display • Other CSS background properties control how the image is displayed Web Design Principles 5th Ed. 68
  • 69. Web Design Principles 5th Ed. 69
  • 70. Web Design Principles 5th Ed. 70
  • 71. Creating a Page Background • To tile an image across the entire background of the Web page, use body as the selector body {background-image: url(clouds.jpg);} Web Design Principles 5th Ed. 71
  • 72. Creating an Element Background h1 {background-image: url(bluetex.jpg); padding: .25em;} • Images can be applied to the background of any element • The following rule applies an image to the background of the H1 element: Web Design Principles 5th Ed. 72
  • 73. Web Design Principles 5th Ed. 73
  • 74. Specifying Background Repeat • Controls tiling of background images body { background-image: url(grayivy.jpg); background-repeat: repeat-y; } Web Design Principles 5th Ed. 74
  • 75. • Allows creation of a vertically repeating background graphic body { background-image: url(column.jpg); background-repeat: repeat-y; } Creating a Vertical Repeat Web Design Principles 5th Ed. 75
  • 76. Web Design Principles 5th Ed. 76
  • 77. Creating a Horizontal Repeat • Allows creation of a horizontally repeating background graphic body { background-image: url(header.jpg); background-repeat: repeat-x; } Web Design Principles 5th Ed. 77
  • 78. Web Design Principles 5th Ed. 78
  • 79. Creating a Nonrepeating Background Image • Allows creation of a single instance of an image in the background • The following style rule shows the use of the no-repeat value: body { background-image: url(balloon_sm.jpg); background-repeat: no-repeat; } Web Design Principles 5th Ed. 79
  • 80. Specifying Background Position • The background-position property lets you use three types of values: percentage, length, or keywords #right { background-image: url(rightgradient.gif); background-repeat: repeat-y; background-position: right; } Web Design Principles 5th Ed. 80
  • 81. Web Design Principles 5th Ed. 81
  • 82. Positioning Vertical and Horizontal Background Images • Positions images that repeat on either the horizontal or vertical axis of the Web page Web Design Principles 5th Ed. 82
  • 83. Web Design Principles 5th Ed. 83
  • 84. Summary • The four popular file formats for the Web are GIF, JPG, PNG, and SVG • Your computer monitor displays color by mixing the three basic colors of light: red, green, and blue (RGB) • Reduce image size to the appropriate dimensions • The color scheme you choose for a Web site should create a distinctive look without detracting from your content’s legibility Web Design Principles 5th Ed. 84
  • 85. Summary • Use the color property to set foreground colors for elements • Background colors affect any padding areas in the element • Choose background images that do not detract from the legibility of your content • Test your work on different browsers and computing platforms Web Design Principles 5th Ed. 85