Chapter 7 Web Typography Principles of Web Design, 4 th Edition.

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

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.
Chapter 6 Web Typography
Week 7 Web Typography. 2 Understanding Type Design Principles.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
Chapter Concepts Discuss Fonts Understand Fonts
Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS.
1 CSS Styling with Fonts and Colors. 2 CSS Cascading Style Sheets and fonts CSS provides Style or Presentation options for our html pages CSS properties.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Creating the Pages Part Four Typography. Type Design Principles Choose fewer fonts and sizes Choose fewer fonts and sizes Choose available fonts Choose.
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)
3.1 Cascading Style Sheets. Motto Fashions fade, style is eternal. —Yves Saint Laurent.
+ Text & Font Styles Unit 3 Lesson Different Font Categories Sans Serif – block style fonts Example - Rockwell Easy to read and good to use when.
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.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 09: Cascade Style Sheets - Spring 2011.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Principles of Web Design 6 th Edition Chapter 5 – Web Typography.
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.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Cascading Style Sheets Chapter Four. What are they? A set of style rules that tell the web browser how to present a web page or document. Cascading Style.
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.
Cascading Style Sheets Class 2, Lecture 2 Rachel A Ober
Fonts The following CSS properties will be described: 1.Font-family 2.Font-style 3.Font-variant 4.Font-weight 5.Font-size 6.Font.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
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.
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:
Cascading Style Sheets Web Design Fairport High School.
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’
CSS Cascading Style Sheets *referenced from
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.
Chapter 7.  Change body and link styles  Create a drop-down menu  Change color and font styles in the menu  Create a pop-up effect using CSS  Utilize.
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.
Internet & World Wide Web How to Program, 5/e 1. 2.
CS3220 Web and Internet Programming CSS Basics
Using Cascading Style Sheets Module B: CSS Structure
Cascading Style Sheets Color and Font Properties
CS3220 Web and Internet Programming CSS Basics
Chapter 7 Web Typography
CS3220 Web and Internet Programming CSS Basics
Presentation transcript:

Chapter 7 Web Typography Principles of Web Design, 4 th Edition

7-2 Objectives Understand type design principles Understand Cascading Style Sheets (CSS) measurement units Use the CSS font properties Use the CSS text spacing properties Create a font and text properties style sheet

Principles of Web Design, 4th Edition7-3 Understanding Type Design Principles

Principles of Web Design, 4th Edition7-4 Understanding Type Design Principles Choose fewer fonts and sizes Choose available fonts Design for legibility Avoid using text as graphics

Principles of Web Design, 4th Edition7-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

Principles of Web Design, 4th Edition7-6

Principles of Web Design, 4th Edition7-7 Use Available 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

Principles of Web Design, 4th Edition7-8

Principles of Web Design, 4th Edition7-9

Principles of Web Design, 4th Edition7-10 Design for Legibility Figure 7-3 shows the same paragraph in Times, Trebuchet, Arial, and Verdana at the default browser size in both Internet Explorer (on the left) and Mozilla Firefox Notice that subtle variations in the weight, spacing, and rendering of the font families affect the way each is displayed to the user

Principles of Web Design, 4th Edition7-11

Principles of Web Design, 4th Edition7-12 Avoid Using Text as Graphics Save text graphics for important purposes, such as the main logo for your page or as reusable navigation graphics Remember that including text as graphics means users cannot search for that text Whenever possible, use HTML-styled text on your pages

Principles of Web Design, 4th Edition7-13 Understanding CSS Measurement Units

Principles of Web Design, 4th Edition7-14 Understanding CSS Measurement Units CSS offers a variety of measurement units, almost to the point of offering too many choices For example, to specify font size, you can use any of the measurement units listed in the following table

Principles of Web Design, 4th Edition7-15

Principles of Web Design, 4th Edition7-16 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 Absolute Units

Principles of Web Design, 4th Edition7-17 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 Relative Units

Principles of Web Design, 4th Edition7-18 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 Unit

Principles of Web Design, 4th Edition7-19 The ex Unit The ex unit is equal to the height of the lowercase letter x in any given font As shown in Figure 7-4, the height of the lowercase letter x varies widely from one typeface to another

Principles of Web Design, 4th Edition7-20 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

Principles of Web Design, 4th Edition7-21 Percentages Percentage values are always relative to another value For example, the following rule sets the font size for the element to 1.5 times the size of the browser default: body {font-size: 150%;} Child elements inherit the percentage values of their parents For example, the text in the following example is 125% larger than the that contains it: p {font-size: 12pt;} p b {font-size: 125%;}

Principles of Web Design, 4th Edition7-22 Using the CSS Font Properties

Principles of Web Design, 4th Edition7-23 Using the CSS Font Properties font-family font-size font-style font-variant font-weight font (shorthand property)

Principles of Web Design, 4th Edition7-24 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;}

Principles of Web Design, 4th Edition7-25

Principles of Web Design, 4th Edition7-26 Specifying Font Size The following rule sets the element to 1.5em Arial: p {font-family: arial; font-size: 1.5em;}

Principles of Web Design, 4th Edition7-27

Principles of Web Design, 4th Edition7-28 Specifying Font Style The font-style property lets you specify italic or oblique text p {font-style: italic;}

Principles of Web Design, 4th Edition7-29 Specifying Font Variant The font-variant property lets you define small capitals, which are often used for chapter openings, acronyms, and other special purposes h1 {font-variant: small-caps;}

Principles of Web Design, 4th Edition7-30

Principles of Web Design, 4th Edition7-31 Specifying Font Weight The font-weight property lets you set the weight of the typeface p {font-weight: bold;}

Principles of Web Design, 4th Edition7-32 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;}

Principles of Web Design, 4th Edition7-33 Using the CSS Text Spacing Properties

Principles of Web Design, 4th Edition7-34 CSS Text Spacing Properties text-indent text-align text-decoration line-height vertical-align letter-spacing word-spacing

Principles of Web Design, 4th Edition7-35 Specifying Text Indents Use the text indent property to set the amount of indentation for the first line of text in an element, such as a paragraph The following rule sets an indent of 24 points: p {font-family: text-indent: 24pt;}

Principles of Web Design, 4th Edition7-36

Principles of Web Design, 4th Edition7-37 Specifying Text Alignment Use the text-align property to set horizontal alignment for the lines of text in an element p {text-align: justify}

Principles of Web Design, 4th Edition7-38

Principles of Web Design, 4th Edition7-39 Specifying Text Decoration Use the text-decoration property to add or remove underlining from text The following code removes the underlining from hypertext links a {text-decoration: none}

Principles of Web Design, 4th Edition7-40

Principles of Web Design, 4th Edition7-41 Specifying Line Height CSS allows you to specify either a percentage or absolute value for the line height, which is more commonly called leading The following rule sets the line height to 2 em: p {line-height: 2 em;}

Principles of Web Design, 4th Edition7-42

Principles of Web Design, 4th Edition7-43

Principles of Web Design, 4th Edition7-44 Specifying Vertical Alignment The vertical-align property lets you adjust the vertical alignment of text within the line box Vertical-align works on inline elements only

Principles of Web Design, 4th Edition7-45

Principles of Web Design, 4th Edition7-46

Principles of Web Design, 4th Edition7-47 Specifying Vertical Alignment (continued) You can also use vertical alignment to align text with graphics The following rule, added to the element with the style attribute, sets the vertical alignment to top:

Principles of Web Design, 4th Edition7-48

Principles of Web Design, 4th Edition7-49 Specifying Letter Spacing To adjust kerning, the printer’s term for adjusting the white space between letters, use the letter spacing property The following rule sets the letter spacing to 4 points h1 {letter-spacing: 4pt;}

Principles of Web Design, 4th Edition7-50

Principles of Web Design, 4th Edition7-51 Specifying Word Spacing The word-spacing property lets you adjust the white space between words in the text The following code sets the word spacing to 2 em h1 {word-spacing: 2em;}

Principles of Web Design, 4th Edition7-52

Principles of Web Design, 4th Edition7-53 Summary Use type to communicate information structure; be sparing with your type choices, and use fonts consistently Remember that HTML text downloads faster than graphics-based text; use HTML text whenever possible Use browser-safe fonts that will display as consistently as possible across operating systems

Principles of Web Design, 4th Edition7-54 Summary (continued) Standardize your styles by building external style sheets and linking them to multiple documents Test your work; different browsers and computing platforms render text in different sizes Use type effectively by choosing available fonts and sizes; design for legibility and use text to communicate information about the structure of your material

Principles of Web Design, 4th Edition7-55 Summary (continued) Choose the correct measurement unit based on the destination medium –For the computer screen, ems, pixels, or percentage measurements can scale to the user’s preferences

Principles of Web Design, 4th Edition7-56 Summary (continued) Use the font properties to control the look of your letter forms –Specify font substitution values to ensure that your text is displayed properly across different platforms Use the text spacing properties to create more visually interesting and legible text