Applying Typography in CSS

Slides:



Advertisements
Similar presentations
The Key Element in Desktop Publishing Design
Advertisements

CSS Cascading Style Sheets. What is CSS? CSS stands for Cascading Style Sheets (the page—or sheet—helps you create a style that will cascade across all.
More Information on Graphic Design & Color: A few pointers for your websites & other e- publications Dr. Jennifer Bowie.
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.
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.
® Copyright 2008 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO TYPOGRAPHY DESIGN Vocabulary and Guidelines.
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
Font Families by Anthony Asay. Font Family ●Font family or font face is the typeface that is applied to the text by a web browser. ●There are a lot of.
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.
Text and Fonts in CSS. Customizing fonts In CSS, fonts are divided into “font families” Only certain fonts are commonly installed on most computers Therefore.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Fonts and Typography Section 7.3. Typography Typography: the style, arrangement, and appearance of text Well designed text makes your page more readable.
Typography The Science of Text. Fonts Style of type How many fonts in a document? Conservative--one font Typical--two fonts Use a third for emphasis.
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.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Principles of Typography
Digital Interactive Media
Digital Interactive Media
Digital Interactive Media
Cascading Style Sheets
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
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.
Typography Typography is the art and technique of creating and composing type in order to convey a message. Words are communication. What do they say?
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
Typography Basics 2.01 Investigate typefaces and fonts.
Understanding and Applying Typography in CSS
Unit 2.1: Identifying design elements when preparing graphics
The Box Model in CSS Web Design – Sec 4-8
The Art of Type 9/17/2018.
3 Configuring Color & Text With CSS.
CSS – Properties & Values
CS 174: Server-Side Web Programming February 7 Class Meeting
The Internet 10/13/11 The Box Model
Principles of Typography
CMPE 280 Web UI Design and Development September 4 Class Meeting
CSS Style Sheets: Intro
Typography is the strategic use of type to create texture, hierarchy, organization, and clear communication.
Cascading Style Sheets Color and Font Properties
Web Development & Design Foundations with H T M L 5
Digital Interactive Media
Web Programming– UFCFB Lecture 11
Web Development & Design Foundations with H T M L 5
Introduction to Visual Communications PART 1: Typography
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
CS3220 Web and Internet Programming CSS Basics
Typography.
Lesson 5 Topic B – Basic Text & Fonts
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.
Presentation transcript:

Applying Typography in CSS Web Design – Sec 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 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.

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