Understanding and Applying Typography in CSS

Slides:



Advertisements
Similar presentations
The Key Element in Desktop Publishing Design
Advertisements

More Information on Graphic Design & Color: A few pointers for your websites & other e- publications Dr. Jennifer Bowie.
Typography (The study of font).
Week 7 Web Typography. 2 Understanding Type Design Principles.
Chapter Concepts Discuss Fonts Understand Fonts
The Use of Typography in Print and Electronically. [typography] “exists to honour content” Robert Bringhurst, The Elements of Typographical Style.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
+ Text & Font Styles Unit 3 Lesson Different Font Categories Sans Serif – block style fonts Example - Rockwell Easy to read and good to use when.
® Copyright 2008 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO TYPOGRAPHY DESIGN Vocabulary and Guidelines.
Typography and Space for Web Design Important Issues From Web Style Guide.
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.
Unit 4 – Multimedia Element: Text
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Digital Interactive Media
Unit 3, Lesson 3 Typography. art and technique of arranging type on a page. font family, style, size, and weight (or thickness)
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
Fonts and Typography Section 7.3. Typography Typography: the style, arrangement, and appearance of text Well designed text makes your page more readable.
Typography Graphic Design Fundamentals
What are we interested in? 1. Understand Design 0 2. Digital Image design 3 3. Time-based media Webpage design 2 1.
Typography A Key Element in Design A. Definition of Typography Typography is the appearance and arrangement of the characters that make up text on a page.
Principles of Typography
Digital Interactive Media
Digital Interactive Media
Digital Interactive Media
CSS for Styling Text.
Digital Interactive Media
The Box Model in CSS Web Design – Sec 4-8
CS3220 Web and Internet Programming CSS Basics
Understanding and Applying Typography in CSS
Formatting Text with CSS
The art of using text to produce professional looking publications.
The Box Model in CSS Web Design – Sec 4-8
Introducing :CSS Cascading Style Sheets in 5 Lessons.
INTRODUCTION TO TYPOGRAPHY DESIGN
Applying Typography in CSS
Using Cascading Style Sheets Module B: CSS Structure
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Typography Basics 2.01 Investigate typefaces and fonts.
Unit 2.1: Identifying design elements when preparing graphics
The Box Model in CSS Web Design – Sec 4-8
Understanding Typography
The Art of Type 9/17/2018.
CSS – Properties & Values
CS 174: Server-Side Web Programming February 7 Class Meeting
INTRODUCTION TO TYPOGRAPHY DESIGN
The Internet 10/13/11 The Box Model
Principles of Typography
CMPE 280 Web UI Design and Development September 4 Class Meeting
Typography is the strategic use of type to create texture, hierarchy, organization, and clear communication.
Cascading Style Sheets Color and Font Properties
INTRODUCTION TO TYPOGRAPHY DESIGN
Digital Interactive Media
Design Principles 8-Dec-18.
INTRODUCTION TO TYPOGRAPHY DESIGN
Web Development & Design Foundations with H T M L 5
CS3220 Web and Internet Programming CSS Basics
CSS Styles Fonts and Colors.
Chapter 7 Web Typography
CMPE 280 Web UI Design and Development February 7 Class Meeting
Design Principles 5-Apr-19.
CS3220 Web and Internet Programming CSS Basics
Typography.
INTRODUCTION TO TYPOGRAPHY DESIGN
Lesson 5 Topic B – Basic Text & Fonts
INTRODUCTION TO TYPOGRAPHY DESIGN
Session IV Chapter 15 - How Work with Fonts and Printing
Cascading Style Sheets
CMPE 280 Web UI Design and Development September 5 Class Meeting
ATLAS WEB Web Typography.
INTRODUCTION TO TYPOGRAPHY DESIGN
Presentation transcript:

Understanding and Applying Typography in CSS 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

Objectives The student will identify four guidelines for using typography effectively on web pages be able to identify whether a font is serif, sans-serif, or another font family. be able to make informed decisions about which font families to use on a website, based in part on the likelihood that these fonts will be installed on users' computers. be able to define the typography of your site by setting the font-family, font-size, font-weight, line- height, text-align, and letter-spacing properties in CSS.

Typography ty·pog·ra·phy/tīˈpägrəfē/ Noun: The art or process of setting and arranging types and printing from them. The style and appearance of printed matter.

4 Aspects of Typography (source: http://ilovetypography Contrast Text exists to be read; make sure that it contrasts enough with the background to achieve that. Size Don’t set body text below 10 or 12px and, if possible, make it bigger.  Hierarchy Varying type size is one of  the best ways to differentiate content. Space Let your type breathe. Don’t be afraid to leave blank spaces in your pages. 

Font Families: Serif, Sans-serif, and others In CSS (and in typography in general) there are five basic types, or families, of fonts: serif, sans serif, cursive, fantasy, and monospace. Examples can be found on the W3C CSS Fonts page

Serif and Sans Serif Serif fonts have small lines or strokes that extend from the ends of characters. They can look like small feet, caps, tails, flags or dots. Serif fonts have been used for centuries in printed books, magazines and newspapers. Sans-serif fonts do not have serifs ("sans" is French for "without"). These fonts are simple and straightforward.

Serif and Sans Serif There has been extensive research on which of these font families, serif or sans-serif, is easier to read. Unfortunately, results are inclusive. There are dozens of studies favoring both font families. The bottom line: There are many variables affecting readability of text, not just font family alone. For the body of a web page, it's important to choose a font that is not too cluttered and that flows gracefully from letter to letter without too much space between letters. Generally the best choice for attaining this uncluttered, flowing, easy-to-read look is sans-serif. However, it's possible to attain this look with certain serif fonts as well. For page titles, headings and sub-headings, a serif font is sometimes a better choice, because they can be perceived as more stately and grand, which helps to contribute to how readers perceive the hierarchy of the page.

Other Fonts What about cursive, fantasy, and monospace? These fonts are more difficult to read and should be used sparingly. Depending on the message or feeling you're trying to communicate, they might be suitable for short sections of text, such as headings or subheadings.

Common Typographical Properties font-family font-size font-style font-weight line-height text-align letter-spacing text-shadow

font-family The value of font-family is a list of preferred fonts, separated by a comma, as in these example: body { font-family: Verdana, Arial, sans-serif; } h1 { font-family: "Times New Roman", Times, serif; } If the user has the first font in the list installed on their computer, their browser will display that font. If they don't, the browser will try to display the next font in the list. The last font in the list should always be one of the five generic font families.

font-size This property specifies the size of the font. This can be expressed in relative units like % or em, or in absolute units like px. Font size can also be expressed using terms like small, medium, large, larger, x-large, and xx-large.

font-style This property specifies the style of a font, either normal, italic, or oblique.

font-weight This property specifies the weight, or thickness, of characters. It can be normal, lighter, bold, or bolder. It can also be expressed as a numeric value between 100 and 900 (numbers must be divisible by 100).

line-height This property specifies the height of a line of text. This is typically expressed either as a % or em and must be greater than the height of the font or else the lines of text will be squished together. For maximum readability, the W3C's Web Content Accessibility Guidelines 2.0 calls for the line- height of blocks of text to be at least 1.5em or 150%

text-align This property specifies how text is aligned horizontally. This can be either left, right, or center. It could also be justify, which aligns text on both the left and right sides of the page like a printed publication. However, this tends to result in awkward spaces between words and should be avoided on the web.

letter-spacing This property enables you to specify an amount of space between letters. It can be expressed using the same units as other properties, such as font- size. It is sometimes used to give a distinctive look to certain elements such as headings.

text-shadow This property is new in CSS3. Consequently it isn't supported by all browsers, but if you have a relatively current browser, this property can attach a shadow to text. If done well and used sparingly, this can be have a nice effect for content such as headings. For more information, consult the CSS3 Text-shadow Property page at W3Schools.com.

Rest of Today Download the homework from Hancock web site. Complete the homework and add fonts to your CSS code.