Principles of Web Design 6 th Edition Chapter 5 – Web Typography.

Slides:



Advertisements
Similar presentations
Computer Applications II.  A Style Sheet is a web page development tool that allows the developer to make global changes to a web page (or web site)
Advertisements

Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
Measurement Many CSS properties (values within the declaration) require that you specify a unit of measurement, such as spacing between elements, border.
Session Objectives Setting the font family Setting the font size Working with Web fonts Setting font faces and sizes Setting font and text appearances.
Tutorial 4 Formatting Text. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create a spread heading Indent text Change the line spacing.
Chapter 6 Web Typography
CS4370/6370 Web Development Cascading Style Sheets (CSS)
Week 7 Web Typography. 2 Understanding Type Design Principles.
Chapter Concepts Discuss Fonts Understand Fonts
Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS.
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Typography Web Design Professor Frank. Characteristics of Type on the Web Magazine/book typography – 1200 dpi Computer screens – 85 ppi (maximum)
+ Text & Font Styles Unit 3 Lesson Different Font Categories Sans Serif – block style fonts Example - Rockwell Easy to read and good to use when.
CSS The Definitive Guide Chapter 6.  Text is the content, and fonts are used to display that content. By using text properties you can affect the position.
Formatting Text (Plus More Selectors) Learning Web Design: Chapter 12.
Web Design – Sec 4-6 and 4-7 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Principles of Web Design 6 th Edition Chapter 4 – Cascading Style Sheets.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Cascading Style Sheets CSS. CSS - Structure Declaration block Property: identifies what to change Value: how to change it Selector – example h1{ font-size:
WORKING WITH CASCADING
New Perspectives on XML, 2nd Edition Tutorial 5 1 TUTORIAL 5 WORKING WITH CASCADING STYLE SHEETS.
XP New Perspectives on XML Tutorial 5 1 TUTORIAL 5 CSS Tutorial – Carey ISBN
Typography.  Introduction to Typography  Font Collections ▪ Serif ▪ They have small strokes at the end of the character strokes ▪ Ex: Times New Roman,
Chapter 6 Web Typography. 2 Principles of Web Design Chapter 5 Objectives Understand principles for type design on a Web site Use the element Understand.
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Tutorial 5 Formatting with CSS. Objectives Session 5.1 – Evaluate why CSS styles are used – Determine where to write styles – Create an element selector.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, 4 th Edition.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
Introducing Cascading Style Sheets. Cascading Style Sheet Basics  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles.
INTRODUCTORY Tutorial 3 Using CSS to Format Multiple Pages.
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
1 Web Development CSS (Cascading Style Sheet). 2 1.Setting rules for multiple elements To decrease the amount of typing for setting rules for multiple.
1 Working with Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size,
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 7: CSS Building Blocks.
CIS234A Lecture 5 Instructor Greg D’Andrea. Font Styles Review Font-Family: generic family, font family Font-Size: em, pt, px, %, mm, cm, in Font-Style:
Styling Fonts & Text CHAPTER 4 1 CHARLES WYKE-SMITH: STYLIN’ WITH CSS: A DESIGNER’S GUIDE (3 ND EDITION)
Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’
Tutorial 3 Designing a Web Page with CSS
CSCE Chapter 3 (Cascading Style Sheets) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department of Computer.
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
CSS Details Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  To use CSS properties for fonts  Evaluate whether to use pts,
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 10: Formatting Text with Styles.
Cascading Style Sheets Robin Burke ECT 270. Outline CSS properties Fonts Alignment Color CSS selection selectors.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
Formatting Text with CSS
Using Cascading Style Sheets Module B: CSS Structure
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Text Size and typeface of text Bold, italics, capitals, underlines
Objectives Explore the history of CSS
CSS Style Sheets: Intro
Cascading Style Sheets Color and Font Properties
Web Development & Design Foundations with H T M L 5
Chapter 7 Web Typography
Session IV Chapter 15 - How Work with Fonts and Printing
Presentation transcript:

Principles of Web Design 6 th Edition Chapter 5 – Web Typography

Objectives Understand type design principles Understand Cascading Style Sheets (CSS) measurement units Use the CSS font properties Use the CSS text properties Build a font and text properties style sheet Customize bulleted and numbered lists 2

Understanding Type Design Principles 3

Choose fewer fonts and sizes Choose available fonts Design for legibility Avoid using text as graphics Text choices become more important for smartphones 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 6

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 8

9

10

Using Proprietary 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 11

12

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 13

14

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 15

Understanding CSS Measurement Units 16

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 17

18

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 19

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 20

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 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 21

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. 22

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 23

24

The rem Unit Works exactly like the em unit, but relative to the root element of the document 25

Viewport Percentage Units These units are relative to the size of the device viewport window Similar to percentage units, except they are based on the root container rather than immediate parent container 26

Using the CSS Font Properties 27

Using the CSS Font Properties font-family font-face font-size font-style font-variant font-weight font (shorthand property) 28

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;} 29

Generic Font Families Serif Sans serif Monospace Cursive Fantasy 30

31

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 32

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;} 33

Specifying Font Face rule lets you specify a font to be downloaded In the style {font-family: Generica; src: url( In the document: h1 {font-family: generica, serif;} 34

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;} 35

36

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;} 37

Specifying Font Variant The font-variant property lets you define small capitals 38

39

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;} 40

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;} 41

Using the CSS Text Properties 42

Using the CSS Text Properties text-indent text-align line-height vertical-align letter-spacing word-spacing white-space text-decoration text-transform text-shadow 43

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 element and -2em for the element: p {text-indent: 2em;} blockquote {text-indent: −2em;} 44

45

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;} 46

47

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%;} 48

49

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 50

51

52

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;} 53

54

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;} 55

56

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 57

58

Specifying White Space The white-space property lets you control how paragraph text wraps and preserve white space 59

60

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;} 61

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;} 62

63

Customizing Bulleted and Numbered Lists 64

Customizing Bulleted and Numbered Lists The list-style properties let you control the visual characteristics of bulleted and numbered lists 65

66

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 67

68

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);} 69

70

Specifying the list-style-position Property The list-style-position property lets you determine the placement of the list marker 71

72

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 73

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 74