SlideShare a Scribd company logo
1 of 67
Web Design Principles
5th
Edition
Chapter Five
Creating Web Typography
Objectives
When you complete this chapter, you will be able to:
• Understand type design principles
• Understand Cascading Style Sheets (CSS)
measurement units
• Use the CSS font properties
• Use the CSS text-spacing properties
• Build a font and text properties style sheet
• Customize bulleted and numbered lists
2Web Design Principles 5th
Ed.
Understanding Type Design
Principles
3
Understanding Type Design
Principles
• Choose fewer fonts and sizes
• Choose available fonts
• Design for legibility
• Avoid using text as graphics
Web Design Principles 5th
Ed. 4
Choose Fewer Fonts and Sizes
• Your pages will look cleaner when you choose fewer
fonts and sizes of type
• Decide on a font for each different level of topic
importance, such as page headings, section headings,
and body text
• Communicate the hierarchy of information with changes
in the size, weight, or color of the typeface
5Web Design Principles 5th
Ed.
6Web Design Principles 5th
Ed.
Use Common Web Fonts
• The user’s browser and operating system
determine how a font is displayed
• To control more effectively how text appears on
your pages, think in terms of font families, such as
serif and sans-serif typefaces
7Web Design Principles 5th
Ed.
8Web Design Principles 5th
Ed.
9Web Design Principles 5th
Ed.
Specifying Proprietary Web Fonts
• The CSS3 font-face property lets you link to a font,
download it, and use it in style rules
• The common browsers support the font-face
property, though they each implement it differently
• The font-face property opens a new range of fonts
to make Web pages more attractive and legible
• Web designers or the clients they work with must
be prepared to pay licensing fees
10Web Design Principles 5th
Ed.
Design for Legibility
• Browser version, operating system, and video
capabilities can produce variations in the weight,
spacing, and rendering of the font families to
individual users
11Web Design Principles 5th
Ed.
12Web Design Principles 5th
Ed.
Avoid Creating Text as Graphics
• New font options means less text as graphics
• Most Web sites use text graphics in one form or
another whether for a main logo, banner, or
advertisement
• Because you add download overhead with every
additional graphic, save text graphics for important
purposes
• Whenever possible, use HTML-styled text on your
pages, including creating HTML and CSS-based
navigation
13Web Design Principles 5th
Ed.
Understanding CSS
Measurement Units
Understanding CSS
Measurement Units
• CSS offers a variety of measurement units
• The measurement values you choose depends on
the destination medium
• For print media, use absolute units of
measurement
• For the Web, use relative units of measurement
15Web Design Principles 5th
Ed.
16Web Design Principles 5th
Ed.
Absolute Units
• Specify a fixed value
P {margin: 1.25in;}
• Cannot be scaled to client display
• Should only be used when exact measurements of
destination medium are known
17Web Design Principles 5th
Ed.
Relative Units
• Enables scalable Web pages that adapt to different
display types and sizes
• Recommended method for Web page design
• Relative measurement values such as em and px are
designed to let you build scalable Web pages that adapt
to different display types and sizes
• The W3C recommends that you always use relative
values
18Web Design Principles 5th
Ed.
The em Unit
• The em is a printing measurement, traditionally equal to
the horizontal length of the capital letter M in any given
font size
• In CSS, the em unit is equal to the font size of an
element
• It can be used for both horizontal and vertical
measurement
19Web Design Principles 5th
Ed.
Percentages
• Percentages for fonts work exactly the same as
ems
• For example, if the default paragraph font size is
12-point text, a 100% font size equals 12 point; a
font size set to 125% based on a 12-point default
would be 15 points.
20Web Design Principles 5th
Ed.
The ex Unit
• The ex unit is equal to the height of the lowercase
letter x in any given font
• The height of the lowercase letter x varies widely from
one typeface to another
21Web Design Principles 5th
Ed.
22Web Design Principles 5th
Ed.
The px Unit
• Pixels are the basic picture element of a computer
display
• The size of the pixel is determined by the display
resolution
• Pixel measurements work well for computer displays,
but they are not so well suited to other media, such as
printing
• Pixels are not a good choice for font sizing
23Web Design Principles 5th
Ed.
Using the CSS Font Properties
Using the CSS Font Properties
• font-family
• font-face
• font-size
• font-style
• font-variant
• font-weight
• font-stretch
• font-size-adjust
• font (shorthand property)
25Web Design Principles 5th
Ed.
Specifying Font Family
• Allows specification of generic font family
names (e.g., sans-serif) or a specific name
(e.g., Arial)
p {font-family: sans-serif;}
p {font-family: arial;}
26Web Design Principles 5th
Ed.
Generic Font Families
• Serif
• Sans serif
• Monospace
• Cursive
• Fantasy
27Web Design Principles 5th
Ed.
28Web Design Principles 5th
Ed.
Specific Font Families
• The font-family property lets you declare a specific
font family such as Arial or Verdana
• The user must have the font installed on his or her
computer; otherwise, the browser uses the default
font
29Web Design Principles 5th
Ed.
Font Fallbacks
• You can specify a list of alternate fonts
• The browser will attempt to load each successive
font in the list
• If no fonts match, the browser falls back to the
default font
p {font-family: arial, helvetica, sans-
serif;}
30Web Design Principles 5th
Ed.
Specifying Font Face
• The @font-face property lets you specify a font to
be downloaded
• In the style sheet:
@font-face {font-family: Generica;
src: url(http://www.generic.com/fonts/generica.ttf)}
• In the document:
h1 {font-family: generica, serif;}
31Web Design Principles 5th
Ed.
Specifying Font Size
• The font-size property gives you control over the
specific sizing of your type
• You can choose from various length units such as
ems or percentages
• The following rule sets the block quote element to
1.5 em Arial:
blockquote {font-family: arial, sans-serif; font-
size: 1.5em;}
32Web Design Principles 5th
Ed.
33Web Design Principles 5th
Ed.
Specifying Font Style
• This font-style property lets you specify italic text
• Remember that italic text is hard to read on a
computer display
• Use italics for special emphasis only
• The following rule sets italicized text for the note
class attribute
.note {font-style: italic;}
34Web Design Principles 5th
Ed.
Specifying Font Variant
• The font-variant property lets you define small
capitals
35Web Design Principles 5th
Ed.
Specifying Font Weight
• The font-weight property lets you set the weight of
the typeface
• You can use numerical keyword values
• The following style rule sets the warning class to
bold
.warning {font-weight: bold;}
36Web Design Principles 5th
Ed.
Specifying Font Stretch
• The font-stretch property lets you expand or
compress the font face
• This is a CSS3 property that is not yet commonly
supported
h1 {font-family: sans-serif; font-
stretch: expanded}
37Web Design Principles 5th
Ed.
Using the Font Shortcut Property
• The font shortcut property lets you abbreviate the more
verbose individual property listings
• The following rules produce the same results
p {font-weight: bold; font-size: 18pt;
line-height: 24pt; font-family:
arial;}
p {font: bold 18pt/24pt arial;}
38Web Design Principles 5th
Ed.
Using the CSS Text Spacing
Properties
Using the CSS Text Spacing
Properties
• text-indent
• text-align
• line-height
• vertical-align
• letter-spacing
• word-spacing
• text-decoration
• text-transform
• text-shadow
40Web Design Principles 5th
Ed.
Specifying Text Indents
• Use the text-indent property to set the amount of
indentation for the first line of text and element
such as a paragraph
• You can specify a length or percentage value
• The following rules set an indent of 2em for the <p>
element and -2em for the <blockquote> element:
p {text-indent: 2em;}
blockquote {text-indent: −2em;}
41Web Design Principles 5th
Ed.
42Web Design Principles 5th
Ed.
Specifying Text Alignment
• Use the text-align property to set a horizontal
alignment for the lines of text and element
• You can specify for alignment values
– Left
– Center
– Right
– Justify
• The following style rule sets the P element to
justified alignment
p {text-align: justify;}
43Web Design Principles 5th
Ed.
44Web Design Principles 5th
Ed.
Specifying Line Height
• You can specify either a length or percentage value
for the line height
• Line height is also known as leading the white
space between lines of text
• The following rule sets the line height to 150%
p {line-height: 150%;}
45Web Design Principles 5th
Ed.
46Web Design Principles 5th
Ed.
Specifying Vertical Alignment
• The vertical-align property lets you adjust the
vertical line of text within the line box
• Vertical line works only on in-line elements
• You can use this property to superscript or
subscript characters
• The baseline sub and super values are the most
evenly supported
• You can also use vertical alignment to align text
with graphics
47Web Design Principles 5th
Ed.
48Web Design Principles 5th
Ed.
49Web Design Principles 5th
Ed.
Specifying Letter Spacing
• The letter-spacing property lets you adjust the
white space between letters, often called kerning
• Length you specify is added to the default letter
spacing
• The following rule sets the letter spacing to four
pixels:
h1 {letter-spacing: 4px;}
50Web Design Principles 5th
Ed.
51Web Design Principles 5th
Ed.
Specifying Word Spacing
• The word-spacing property lets you adjust the
white space between words in the text
• The length you specify is added to the default
spacing
• The following rule sets the word spacing to 2 em
h1 {word-spacing: 2em;}
52Web Design Principles 5th
Ed.
Specifying Text Decoration
• The text-decoration property lets you apply line
effects to your text
• Underlining should not be used except for
hypertext links
• Some sites choose to remove the underlining from
the hypertext links with this property
53Web Design Principles 5th
Ed.
Specifying Capitalization
• The text-transform property lets you change the
capitalization of text
• Useful for headings
• Lets you change text formatting without actually
editing the text
h1 {text-transform: uppercase;}
54Web Design Principles 5th
Ed.
Specifying Text Shadow
• The text shadow property lets you define a shadow
that is displayed behind text
• You can specify the horizontal and vertical offset as
well as the blur value
• The first two length values indicate the horizontal
and vertical offset
• The third length value specifies the blur amount
h1 {text-shadow: 2px 2px 2px #666;}
55Web Design Principles 5th
Ed.
56Web Design Principles 5th
Ed.
Customizing Bulleted and
Numbered Lists
Customizing Bulleted and
Numbered Lists
• The list-style properties let you control the visual
characteristics of bulleted and numbered lists
58Web Design Principles 5th
Ed.
59Web Design Principles 5th
Ed.
Specifying the list-style-type
Property
• The list-style-type property lets you specify one of
three types of markers for a list
• You can choose a symbol, a numbering system, or
an alphabetical system
60Web Design Principles 5th
Ed.
61Web Design Principles 5th
Ed.
Specifying the list-style-image
Property
• The list-style-image property lets you easily attach
an image to a list and have it repeated as the list
symbol
• The following code shows the style rule that
attaches an image to a bulleted list:
ul {list-style-image: url(pawprint.gif);}
62Web Design Principles 5th
Ed.
63Web Design Principles 5th
Ed.
Specifying the list-style-position
Property
• The list-style-position property lets you determine
the placement of the list marker
64Web Design Principles 5th
Ed.
65Web Design Principles 5th
Ed.
Summary
• Use type to communicate information structure
• HTML text downloads faster than graphics-based
text
• Use fonts that appear consistently across operating
systems
• Standardize your styles
• Use external style sheets
• Test your work
• Design for legibility
66Web Design Principles 5th
Ed.
Summary
• Choose the correct measurement unit based on the
destination medium
• Use font properties to control the look of your letter
forms
• Use text spacing properties to create more visually
interesting and legible text
67Web Design Principles 5th
Ed.

More Related Content

What's hot

MTA managing the graphical interface by using css
MTA managing the graphical interface by using cssMTA managing the graphical interface by using css
MTA managing the graphical interface by using cssDhairya Joshi
 
Intro to html, css & sass
Intro to html, css & sassIntro to html, css & sass
Intro to html, css & sassSean Wolfe
 
Quality Development with CSS3
Quality Development with CSS3Quality Development with CSS3
Quality Development with CSS3Shay Howe
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3Doris Chen
 
Agile CSS development with Compass and Sass
Agile CSS development with Compass and SassAgile CSS development with Compass and Sass
Agile CSS development with Compass and SassAndrea Verlicchi
 
4. Web Technology CSS Basics-1
4. Web Technology CSS Basics-14. Web Technology CSS Basics-1
4. Web Technology CSS Basics-1Jyoti Yadav
 
Syntactically awesome stylesheets (Sass)
Syntactically awesome stylesheets (Sass)Syntactically awesome stylesheets (Sass)
Syntactically awesome stylesheets (Sass)Tahmina Khatoon
 
Intro to css & sass
Intro to css & sassIntro to css & sass
Intro to css & sassSean Wolfe
 
CSS Preprocessors: LESS is more or look SASS-y trying
CSS Preprocessors: LESS is more or look SASS-y tryingCSS Preprocessors: LESS is more or look SASS-y trying
CSS Preprocessors: LESS is more or look SASS-y tryingJames Cryer
 
Write LESS. DO more.
Write LESS. DO more.Write LESS. DO more.
Write LESS. DO more.Eugene Nor
 
Sass and compass workshop
Sass and compass workshopSass and compass workshop
Sass and compass workshopShaho Toofani
 

What's hot (19)

MTA managing the graphical interface by using css
MTA managing the graphical interface by using cssMTA managing the graphical interface by using css
MTA managing the graphical interface by using css
 
Intro to html, css & sass
Intro to html, css & sassIntro to html, css & sass
Intro to html, css & sass
 
CSS3
CSS3CSS3
CSS3
 
Intro to SASS CSS
Intro to SASS CSSIntro to SASS CSS
Intro to SASS CSS
 
Css3
Css3Css3
Css3
 
Quality Development with CSS3
Quality Development with CSS3Quality Development with CSS3
Quality Development with CSS3
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Agile CSS development with Compass and Sass
Agile CSS development with Compass and SassAgile CSS development with Compass and Sass
Agile CSS development with Compass and Sass
 
4. Web Technology CSS Basics-1
4. Web Technology CSS Basics-14. Web Technology CSS Basics-1
4. Web Technology CSS Basics-1
 
Syntactically awesome stylesheets (Sass)
Syntactically awesome stylesheets (Sass)Syntactically awesome stylesheets (Sass)
Syntactically awesome stylesheets (Sass)
 
03html Css
03html Css03html Css
03html Css
 
Css
CssCss
Css
 
css-tutorial
css-tutorialcss-tutorial
css-tutorial
 
Intro to css & sass
Intro to css & sassIntro to css & sass
Intro to css & sass
 
CSS Preprocessors: LESS is more or look SASS-y trying
CSS Preprocessors: LESS is more or look SASS-y tryingCSS Preprocessors: LESS is more or look SASS-y trying
CSS Preprocessors: LESS is more or look SASS-y trying
 
Write LESS. DO more.
Write LESS. DO more.Write LESS. DO more.
Write LESS. DO more.
 
Intro to HTML + CSS
Intro to HTML + CSSIntro to HTML + CSS
Intro to HTML + CSS
 
Sass and compass workshop
Sass and compass workshopSass and compass workshop
Sass and compass workshop
 
Line Height
Line HeightLine Height
Line Height
 

Viewers also liked (20)

Intro to Class Dojo
Intro to Class DojoIntro to Class Dojo
Intro to Class Dojo
 
1 клас
1 клас1 клас
1 клас
 
Researching genre
Researching genreResearching genre
Researching genre
 
Табір "Подоляночка"
Табір  "Подоляночка" Табір  "Подоляночка"
Табір "Подоляночка"
 
Graphic Design
Graphic DesignGraphic Design
Graphic Design
 
Evaluation question 5
Evaluation question 5Evaluation question 5
Evaluation question 5
 
Evaluation q 7
Evaluation q 7Evaluation q 7
Evaluation q 7
 
7 клас
7 клас7 клас
7 клас
 
2 кл
2 кл2 кл
2 кл
 
8 кл
8 кл8 кл
8 кл
 
Sample Photos
Sample PhotosSample Photos
Sample Photos
 
Табір "Веселка"
Табір "Веселка"Табір "Веселка"
Табір "Веселка"
 
WHATSAPP MASIVO
WHATSAPP MASIVOWHATSAPP MASIVO
WHATSAPP MASIVO
 
херсон
херсонхерсон
херсон
 
5 клас
5 клас5 клас
5 клас
 
Plasn sensory survey
Plasn sensory surveyPlasn sensory survey
Plasn sensory survey
 
Personalisatie & ROI
Personalisatie & ROIPersonalisatie & ROI
Personalisatie & ROI
 
10 клас
10 клас10 клас
10 клас
 
6 клас
6 клас6 клас
6 клас
 
"Город на віконці"
"Город на віконці""Город на віконці"
"Город на віконці"
 

Similar to Ppt ch05

Similar to Ppt ch05 (20)

9781111528705_PPT_ch05.ppt
9781111528705_PPT_ch05.ppt9781111528705_PPT_ch05.ppt
9781111528705_PPT_ch05.ppt
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
 
Ppt ch06
Ppt ch06Ppt ch06
Ppt ch06
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
 
Typography On The Web
Typography On The WebTypography On The Web
Typography On The Web
 
CSS tutorial chapter 2
CSS tutorial chapter 2CSS tutorial chapter 2
CSS tutorial chapter 2
 
Castro Chapter 10
Castro Chapter 10Castro Chapter 10
Castro Chapter 10
 
9781111528705_PPT_ch10.ppt
9781111528705_PPT_ch10.ppt9781111528705_PPT_ch10.ppt
9781111528705_PPT_ch10.ppt
 
Omeka css
Omeka cssOmeka css
Omeka css
 
Ppt ch09
Ppt ch09Ppt ch09
Ppt ch09
 
Ppt ch09
Ppt ch09Ppt ch09
Ppt ch09
 
9781111528705_PPT_ch04.ppt
9781111528705_PPT_ch04.ppt9781111528705_PPT_ch04.ppt
9781111528705_PPT_ch04.ppt
 
Fonts
FontsFonts
Fonts
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Cascading style sheets - CSS
Cascading style sheets - CSSCascading style sheets - CSS
Cascading style sheets - CSS
 
Css Founder.com | Cssfounder Company
Css Founder.com | Cssfounder CompanyCss Founder.com | Cssfounder Company
Css Founder.com | Cssfounder Company
 
Chapter 17: Responsive Web Design
Chapter 17: Responsive Web DesignChapter 17: Responsive Web Design
Chapter 17: Responsive Web Design
 
Making Your Site Printable: Booster Conference
Making Your Site Printable: Booster ConferenceMaking Your Site Printable: Booster Conference
Making Your Site Printable: Booster Conference
 
Ppt ch08
Ppt ch08Ppt ch08
Ppt ch08
 

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 ch07
Ppt ch07Ppt ch07
Ppt ch07
 
Ppt ch04
Ppt ch04Ppt ch04
Ppt ch04
 
Ppt ch03
Ppt ch03Ppt ch03
Ppt ch03
 
-
--
-
 
Ppt ch01
Ppt ch01Ppt ch01
Ppt ch01
 

Recently uploaded

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

Ppt ch05

  • 1. Web Design Principles 5th Edition Chapter Five Creating Web Typography
  • 2. Objectives When you complete this chapter, you will be able to: • Understand type design principles • Understand Cascading Style Sheets (CSS) measurement units • Use the CSS font properties • Use the CSS text-spacing properties • Build a font and text properties style sheet • Customize bulleted and numbered lists 2Web Design Principles 5th Ed.
  • 4. Understanding Type Design Principles • Choose fewer fonts and sizes • Choose available fonts • Design for legibility • Avoid using text as graphics Web Design Principles 5th Ed. 4
  • 5. Choose Fewer Fonts and Sizes • Your pages will look cleaner when you choose fewer fonts and sizes of type • Decide on a font for each different level of topic importance, such as page headings, section headings, and body text • Communicate the hierarchy of information with changes in the size, weight, or color of the typeface 5Web Design Principles 5th Ed.
  • 7. Use Common Web Fonts • The user’s browser and operating system determine how a font is displayed • To control more effectively how text appears on your pages, think in terms of font families, such as serif and sans-serif typefaces 7Web Design Principles 5th Ed.
  • 10. Specifying Proprietary Web Fonts • The CSS3 font-face property lets you link to a font, download it, and use it in style rules • The common browsers support the font-face property, though they each implement it differently • The font-face property opens a new range of fonts to make Web pages more attractive and legible • Web designers or the clients they work with must be prepared to pay licensing fees 10Web Design Principles 5th Ed.
  • 11. Design for Legibility • Browser version, operating system, and video capabilities can produce variations in the weight, spacing, and rendering of the font families to individual users 11Web Design Principles 5th Ed.
  • 13. Avoid Creating Text as Graphics • New font options means less text as graphics • Most Web sites use text graphics in one form or another whether for a main logo, banner, or advertisement • Because you add download overhead with every additional graphic, save text graphics for important purposes • Whenever possible, use HTML-styled text on your pages, including creating HTML and CSS-based navigation 13Web Design Principles 5th Ed.
  • 15. Understanding CSS Measurement Units • CSS offers a variety of measurement units • The measurement values you choose depends on the destination medium • For print media, use absolute units of measurement • For the Web, use relative units of measurement 15Web Design Principles 5th Ed.
  • 17. Absolute Units • Specify a fixed value P {margin: 1.25in;} • Cannot be scaled to client display • Should only be used when exact measurements of destination medium are known 17Web Design Principles 5th Ed.
  • 18. Relative Units • Enables scalable Web pages that adapt to different display types and sizes • Recommended method for Web page design • Relative measurement values such as em and px are designed to let you build scalable Web pages that adapt to different display types and sizes • The W3C recommends that you always use relative values 18Web Design Principles 5th Ed.
  • 19. The em Unit • The em is a printing measurement, traditionally equal to the horizontal length of the capital letter M in any given font size • In CSS, the em unit is equal to the font size of an element • It can be used for both horizontal and vertical measurement 19Web Design Principles 5th Ed.
  • 20. Percentages • Percentages for fonts work exactly the same as ems • For example, if the default paragraph font size is 12-point text, a 100% font size equals 12 point; a font size set to 125% based on a 12-point default would be 15 points. 20Web Design Principles 5th Ed.
  • 21. The ex Unit • The ex unit is equal to the height of the lowercase letter x in any given font • The height of the lowercase letter x varies widely from one typeface to another 21Web Design Principles 5th Ed.
  • 23. The px Unit • Pixels are the basic picture element of a computer display • The size of the pixel is determined by the display resolution • Pixel measurements work well for computer displays, but they are not so well suited to other media, such as printing • Pixels are not a good choice for font sizing 23Web Design Principles 5th Ed.
  • 24. Using the CSS Font Properties
  • 25. Using the CSS Font Properties • font-family • font-face • font-size • font-style • font-variant • font-weight • font-stretch • font-size-adjust • font (shorthand property) 25Web Design Principles 5th Ed.
  • 26. Specifying Font Family • Allows specification of generic font family names (e.g., sans-serif) or a specific name (e.g., Arial) p {font-family: sans-serif;} p {font-family: arial;} 26Web Design Principles 5th Ed.
  • 27. Generic Font Families • Serif • Sans serif • Monospace • Cursive • Fantasy 27Web Design Principles 5th Ed.
  • 29. Specific Font Families • The font-family property lets you declare a specific font family such as Arial or Verdana • The user must have the font installed on his or her computer; otherwise, the browser uses the default font 29Web Design Principles 5th Ed.
  • 30. Font Fallbacks • You can specify a list of alternate fonts • The browser will attempt to load each successive font in the list • If no fonts match, the browser falls back to the default font p {font-family: arial, helvetica, sans- serif;} 30Web Design Principles 5th Ed.
  • 31. Specifying Font Face • The @font-face property lets you specify a font to be downloaded • In the style sheet: @font-face {font-family: Generica; src: url(http://www.generic.com/fonts/generica.ttf)} • In the document: h1 {font-family: generica, serif;} 31Web Design Principles 5th Ed.
  • 32. Specifying Font Size • The font-size property gives you control over the specific sizing of your type • You can choose from various length units such as ems or percentages • The following rule sets the block quote element to 1.5 em Arial: blockquote {font-family: arial, sans-serif; font- size: 1.5em;} 32Web Design Principles 5th Ed.
  • 34. Specifying Font Style • This font-style property lets you specify italic text • Remember that italic text is hard to read on a computer display • Use italics for special emphasis only • The following rule sets italicized text for the note class attribute .note {font-style: italic;} 34Web Design Principles 5th Ed.
  • 35. Specifying Font Variant • The font-variant property lets you define small capitals 35Web Design Principles 5th Ed.
  • 36. Specifying Font Weight • The font-weight property lets you set the weight of the typeface • You can use numerical keyword values • The following style rule sets the warning class to bold .warning {font-weight: bold;} 36Web Design Principles 5th Ed.
  • 37. Specifying Font Stretch • The font-stretch property lets you expand or compress the font face • This is a CSS3 property that is not yet commonly supported h1 {font-family: sans-serif; font- stretch: expanded} 37Web Design Principles 5th Ed.
  • 38. Using the Font Shortcut Property • The font shortcut property lets you abbreviate the more verbose individual property listings • The following rules produce the same results p {font-weight: bold; font-size: 18pt; line-height: 24pt; font-family: arial;} p {font: bold 18pt/24pt arial;} 38Web Design Principles 5th Ed.
  • 39. Using the CSS Text Spacing Properties
  • 40. Using the CSS Text Spacing Properties • text-indent • text-align • line-height • vertical-align • letter-spacing • word-spacing • text-decoration • text-transform • text-shadow 40Web Design Principles 5th Ed.
  • 41. Specifying Text Indents • Use the text-indent property to set the amount of indentation for the first line of text and element such as a paragraph • You can specify a length or percentage value • The following rules set an indent of 2em for the <p> element and -2em for the <blockquote> element: p {text-indent: 2em;} blockquote {text-indent: −2em;} 41Web Design Principles 5th Ed.
  • 43. Specifying Text Alignment • Use the text-align property to set a horizontal alignment for the lines of text and element • You can specify for alignment values – Left – Center – Right – Justify • The following style rule sets the P element to justified alignment p {text-align: justify;} 43Web Design Principles 5th Ed.
  • 45. Specifying Line Height • You can specify either a length or percentage value for the line height • Line height is also known as leading the white space between lines of text • The following rule sets the line height to 150% p {line-height: 150%;} 45Web Design Principles 5th Ed.
  • 47. Specifying Vertical Alignment • The vertical-align property lets you adjust the vertical line of text within the line box • Vertical line works only on in-line elements • You can use this property to superscript or subscript characters • The baseline sub and super values are the most evenly supported • You can also use vertical alignment to align text with graphics 47Web Design Principles 5th Ed.
  • 50. Specifying Letter Spacing • The letter-spacing property lets you adjust the white space between letters, often called kerning • Length you specify is added to the default letter spacing • The following rule sets the letter spacing to four pixels: h1 {letter-spacing: 4px;} 50Web Design Principles 5th Ed.
  • 52. Specifying Word Spacing • The word-spacing property lets you adjust the white space between words in the text • The length you specify is added to the default spacing • The following rule sets the word spacing to 2 em h1 {word-spacing: 2em;} 52Web Design Principles 5th Ed.
  • 53. Specifying Text Decoration • The text-decoration property lets you apply line effects to your text • Underlining should not be used except for hypertext links • Some sites choose to remove the underlining from the hypertext links with this property 53Web Design Principles 5th Ed.
  • 54. Specifying Capitalization • The text-transform property lets you change the capitalization of text • Useful for headings • Lets you change text formatting without actually editing the text h1 {text-transform: uppercase;} 54Web Design Principles 5th Ed.
  • 55. Specifying Text Shadow • The text shadow property lets you define a shadow that is displayed behind text • You can specify the horizontal and vertical offset as well as the blur value • The first two length values indicate the horizontal and vertical offset • The third length value specifies the blur amount h1 {text-shadow: 2px 2px 2px #666;} 55Web Design Principles 5th Ed.
  • 58. Customizing Bulleted and Numbered Lists • The list-style properties let you control the visual characteristics of bulleted and numbered lists 58Web Design Principles 5th Ed.
  • 60. Specifying the list-style-type Property • The list-style-type property lets you specify one of three types of markers for a list • You can choose a symbol, a numbering system, or an alphabetical system 60Web Design Principles 5th Ed.
  • 62. Specifying the list-style-image Property • The list-style-image property lets you easily attach an image to a list and have it repeated as the list symbol • The following code shows the style rule that attaches an image to a bulleted list: ul {list-style-image: url(pawprint.gif);} 62Web Design Principles 5th Ed.
  • 64. Specifying the list-style-position Property • The list-style-position property lets you determine the placement of the list marker 64Web Design Principles 5th Ed.
  • 66. Summary • Use type to communicate information structure • HTML text downloads faster than graphics-based text • Use fonts that appear consistently across operating systems • Standardize your styles • Use external style sheets • Test your work • Design for legibility 66Web Design Principles 5th Ed.
  • 67. Summary • Choose the correct measurement unit based on the destination medium • Use font properties to control the look of your letter forms • Use text spacing properties to create more visually interesting and legible text 67Web Design Principles 5th Ed.