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.

Slides:



Advertisements
Similar presentations
WEB PAGES: CREATING AND MAINTAINING ** Frank Romanelli Instructor: Wednesday: 10:15 -11:15 Week 3.
Advertisements

Session Objectives Setting the font family Setting the font size Working with Web fonts Setting font faces and sizes Setting font and text appearances.
Font Families What are they and why do I need them?
Web Development & Design Foundations with HTML5
CSS – CASCADING STYLE SHEETS Making your XHTML webpage look good.
Typography Basic terminology/concepts
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.
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.
CSS Properties on Parade PropertyValid valuesExample font-familylist of fonts (separate with commas, end with generic font: serif, sans-serif, fantasy,
Chapter 10: TypographyCopyright © 2004 by Prentice Hall 10. Typography In this chapter you will learn about: The basic terminology and concepts of working.
© 2007 D. J. Foreman CSS-1 Cascading Style Sheets Styles.
+ 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 5.  You will understand why setting font properties will be among the most common uses of style sheets.  Font family.
Formatting Text (Plus More Selectors) Learning Web Design: Chapter 12.
Web Fonts. Choosing Fonts for a Website: Only those fonts that are installed on our viewers' computers will display properly on our web pages. For this.
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.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
10. Typography The basic terminology & concepts of working with type
Typography 2.01 Investigate typefaces and fonts..
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
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.
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:
Typography.  Introduction to Typography  Font Collections ▪ Serif ▪ They have small strokes at the end of the character strokes ▪ Ex: Times New Roman,
Web Typography Serif and sans serif fonts  Serifs are the tails on the letters  Serif leads the eye from letter to letter  At large font sizes, the.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
Class three: CSS review, backgrounds, font formatting, the box model.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
CSS Font CSS font properties define the font family, boldness, size, and the style of a text. CSS Font Families Generic family Font familyDescription Serif.
TEXT Size and typeface of text Bold, italics, capitals, underlines Spacing between lines, words, and letters.
Introduction to CSS CSS Fonts - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Font Control Instructor: Joseph DiVerdi, Ph.D.,
Files you will need ... Black Goose Bistro Summer Menu
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.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
Typography Chapter 10: TypographyCopyright © 2004 by Prentice Hall.
Fonts. Choosing Fonts How text looks on our web pages is a major component of the overall appearance of our site. We need to choose our text fonts carefully,
Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’
CSS Fonts. The Font properties allow you to change the font family, boldness, size, and the style of a text.
Font-Family, Color and Background. Basics  CSS rule: Selector (multiple separated by, ) Declaration (multiple separated by ; ) Example: p { color: red;
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
SCHOOLOFDESIGNANDVISUA LART Typography with CSS Text Properties, Readability & Web Fonts.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Formatting Text with HTML and CSS. Summary block-level elements. Character-level elements Logical and physical style Special elements: hr,address, quotation.
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.
Fonts.
CS3220 Web and Internet Programming CSS Basics
Cascading Style Sheets Color and Font Properties
The Internet 10/11/11 Fonts and Colors
Introducing :CSS Cascading Style Sheets in 5 Lessons.
Applying Typography in CSS
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
2.01 Investigate typefaces and fonts.
CSS – Properties & Values
2.01 Investigate typefaces and fonts.
TYPEFACE TERMINOLOGY SERIF SANS-SERIF MONOSPACE Explain: names for different types of typeface (point out differences) Click: serif Click: sans-serif.
The Internet 10/13/11 The Box Model
Fonts.
Cascading Style Sheets Color and Font Properties
Web Development & Design Foundations with H T M L 5
CS3220 Web and Internet Programming CSS Basics
CSS Styles Fonts and Colors.
Lesson 5 – Controlling fonts with CSS
CS3220 Web and Internet Programming CSS Basics
Lesson 5 Topic B – Basic Text & Fonts
Session IV Chapter 15 - How Work with Fonts and Printing
Cascading Style Sheets
Presentation transcript:

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 you must be careful in your font choices

Font Size Font size has a big impact on design and readability of Web pages There are several ways to specify font sizes with CSS The size of fonts can be controlled with the font-size property

Font Color, Weight and Style You can change your text color with the color property You can give fonts extra weight when needed using the font-weight property You can add decoration such as overlines, underlines and line-throughs

Font Families Each font family contains a set of fonts that share common characteristics There are five font families:  Sans-serif  Serif  Monospace  Cursive  Fantasy

Sans-Serif Family Verdana Arial Black Trebuchet MS Arial Tahoma

Serif Family Times New Roman Georgia Baskerville Bookman Old Style

Monospace Family Courier New Letter Gothic

Cursive Family Comic Sans Freestyle Script Bradley Hand

Fantasy Family Impact Copperplate gothic

Summary Serif fonts have an elegant, traditional look Sans serif fonts have a very clean, readable look Monospace fonts feel like they were typed on a typewriter Cursive and fantasy fonts have a playful or stylized feel

Specifying Font Families in CSS You can specify more than one font using the font-family property Type the font name, separated by commas  Body { font-family: Verdana, Geneva, Arial, sans-serif; }

How Font-Family Specifications Work Body { font-family: Verdana, Geneva, Arial, sans-serif; } The browser will first check to see if Verdana is available on the computer If Verdana is not available, the browser will look for Geneva. If Geneva is not available, the browser will look for Arial. Finally, if none of the specific fonts can be found, the browser will use whatever is considered the default sans-serif font.

Adjusting Font Sizes You can specify your font size in pixels  font=size: 14px; You can specify your font size in percentages  font-size: 150% You can specify your font size using “em” which is another relative unit of measure  font-size: 1.2em;