ACSC 231 Internet Technologies

Similar documents
8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

CSS: The Basics CISC 282 September 20, 2014

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color

Reading 2.2 Cascading Style Sheets

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

Multimedia for the Web: Creating Digital Excitement. Multimedia Element Text

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Appendix D CSS Properties and Values

Introduction to Web Design CSS Reference

Web Site Design and Development Lecture 6

Introduction to Web Design CSS Reference

Chapter 12: FORMATTING TEXT

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Introducing Cascading Style Sheets. Cascading Style Sheet Basics Creating Styles Using Styles Manipulating Styles Text Formatting with CSS

CSS Styles Quick Reference Guide

CSS. Text & Font Properties. Copyright DevelopIntelligence LLC

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

1 of 7 11/12/2009 9:29 AM

HTML/XML. HTML Continued Introduction to CSS

Tutorial 3: Working with Cascading Style Sheets

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson

Introduction to CSS. Fijihosting.com Introduction to CSS page 1. What are style sheets? Lovely! How do I use them?

Introduction to Web Tech and Programming

Adding CSS to your HTML

LBS Polytechnic. Hey! Make With The Style Sheet Already, Bub!

CMPT 165: More CSS Basics

Web Development & Design Foundations with HTML5

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Web Development & Design Foundations with HTML5

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 3 Test Bank

CSS Cascading Style Sheets

Lecture 10. CSS Properties. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

Introduction to CSS. Part 1: Simple Text Formatting. Source Files for this Exercise are available on the Course Website DW_CSS intro

EECS1012. Net-centric Introduction to Computing. Lecture 3: CSS for Styling

CSE 154 LECTURE 3: MORE CSS

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

OUR TYPOGRAPHY APPROVED UNIVERS FONTS. Univers 65 Bold Univers 65 Bold Oblique Univers 75 Black Univers 75 Black Oblique

BRAND. For Internal Use Only Not For Use With The Public. For help and guidance on our brand standards, contact

HTML TUTORIAL ONE. Understanding What XHTML is Not

Cascading Style Sheet Quick Reference

CSS.

CSc 337 LECTURE 3: CSS

Creating Layouts Using CSS. Lesson 9

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Chapter 7 Typography, Style Sheets, and Color. Mrs. Johnson

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

IDM 221. Web Design I. IDM 221: Web Authoring I 1

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

CSS for Styling CS380

Web Design and Development Tutorial 03

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

Chapter 4 CSS basics

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

8a. Cascading Style Sheet

ITNP43: HTML Lecture 4

Lab Introduction to Cascading Style Sheets

Controlling Appearance the Old Way

Three Ways to Use CSS:

CSS Cascading Style Sheets

Cascading Style Sheets (CSS)

understanding typography

To link to an external stylesheet, the link element is placed within the head of the html page:

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

CSS Selectors. element selectors. .class selectors. #id selectors

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

CSS3 Basics. From & CSS Visual Dictionary Learning Curve Books, LLC

CSS. Lecture 16 COMPSCI 111/111G SS 2018

CASCADING STYLESHEETS

Unit 3--Alignment, Formatting Font--Size, Color, Style [Bold, Italic, and Underline] Block

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

CSS مفاهیم ساختار و اصول استفاده و به کارگیری

Zen Garden. CSS Zen Garden

The Benefits of CSS. Less work: Change look of the whole site with one edit

CSS Lecture 16 COMPSCI 111/111G SS 2018

How to use CSS text styles

Page Layout Using Tables

CSC 443: Web Programming

2005 WebGUI Users Conference

Styles, Style Sheets, the Box Model and Liquid Layout

Media-Specific Styles

Interactive Design 1 ART263/Advanced Design for the Web ART220 Gregory Eckler. Interactive Design/Advanced Design for the Web CSS Terminology

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

Admin. Midterm 1 on. Oct. 13 th (2 weeks from today) Coursework:

CSS: Cascading Style Sheets

Fundamentals of Web Programming a

Creating a Website: Advanced Dreamweaver

Using CSS to Format Multiple Pages

Media Types & Media Features

Using CSS in Web Site Design

Transcription:

ACSC 231 Internet Technologies Lecture 7 Web Typography Efthyvoulos Kyriacou - Assoc. Prof. Frederick University Resources: C. Markides (Frederick University) Slide 1 ACSC 231: Internet Technologies 23/12/2008

Objectives Understand d type design principles i Understand Cascading Style Sheets (CSS) measurement units Use the CSS font properties Use the CSS text spacing properties p Create a font and text properties style sheet Slide 2 ACSC 231: Internet Technologies 23/12/2008

Understanding Type Design Principles i Choose fewer fonts and sizes Choose available fonts Design for legibility Avoid using text as graphics Slide 3 ACSC 231: Internet Technologies 23/12/2008

Slide 4 ACSC 231: Internet Technologies 23/12/2008

Slide 5 ACSC 231: Internet Technologies 23/12/2008

Slide 6 ACSC 231: Internet Technologies 23/12/2008

Slide 7 ACSC 231: Internet Technologies 23/12/2008

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 Slide 8 ACSC 231: Internet Technologies 23/12/2008

Slide 9 ACSC 231: Internet Technologies 23/12/2008

Absolute Units Understanding CSS Measurement 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 Slide 10 ACSC 231: Internet Technologies 23/12/2008

Rl Relative Ui Units Understanding CSS Measurement Units Enables scalable Web pages that adapt to different display types and sizes Recommended method for Web page pg design Slide 11 ACSC 231: Internet Technologies 23/12/2008

Understanding CSS Measurement Units Rl 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 lti values. Slide 12 ACSC 231: Internet Technologies 23/12/2008

Using the CSS Font Properties font-familyf font-size font-style font-variant font-weight font (shorthand property) Slide 13 ACSC 231: Internet Technologies 23/12/2008

Specifying Font Family Allows specification i 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;} Slide 14 ACSC 231: Internet Technologies 23/12/2008

Specifying Font Size The following rule sets the <p> element to 1.5em Arial: p {font-family: arial; fontsize: 1.5em;} Slide 15 ACSC 231: Internet Technologies 23/12/2008

Slide 16 ACSC 231: Internet Technologies 23/12/2008

Specifying Font Style The font-style property lets you specify italic or oblique text. p {font-style: italic;} i Slide 17 ACSC 231: Internet Technologies 23/12/2008

Specifying Font Variant The font-variant property lets you define small capitals, which are often used for chapter openings, acronyms, and other special purposes. p h1 {font-variant: small-caps;} Slide 18 ACSC 231: Internet Technologies 23/12/2008

Slide 19 ACSC 231: Internet Technologies 23/12/2008

Specifying Font Weight The font-weight ih property lets you set the weight of the typeface. p {font-weight: bold;} Slide 20 ACSC 231: Internet Technologies 23/12/2008

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; fontfamily: arial;} p {font: bold 18pt/24pt arial;} Slide 21 ACSC 231: Internet Technologies 23/12/2008

CSS Text Spacing Properties text-indent text-align text-decoration line-height vertical-align align letter-spacing word-spacing Slide 22 ACSC 231: Internet Technologies 23/12/2008

Specifying Text Indents Use the text indent id 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: f text-indent: t t 24pt;} Slide 23 ACSC 231: Internet Technologies 23/12/2008

Slide 24 ACSC 231: Internet Technologies 23/12/2008

Specifying Text Alignment Use the text-align property to set horizontal alignment for the lines of text in an element. p {text-align: justify} Slide 25 ACSC 231: Internet Technologies 23/12/2008

Slide 26 ACSC 231: Internet Technologies 23/12/2008

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} Slide 27 ACSC 231: Internet Technologies 23/12/2008

Specifying Text Decoration Slide 28 ACSC 231: Internet Technologies 23/12/2008

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;} Slide 29 ACSC 231: Internet Technologies 23/12/2008

Slide 30 ACSC 231: Internet Technologies 23/12/2008

Slide 31 ACSC 231: Internet Technologies 23/12/2008

Specifying Vertical Alignment The vertical-align li property lets you adjust the vertical alignment of text within the line box. Vertical-align works on inline elements only. Slide 32 ACSC 231: Internet Technologies 23/12/2008

Slide 33 ACSC 231: Internet Technologies 23/12/2008

Slide 34 ACSC 231: Internet Technologies 23/12/2008

Specifying Vertical Alignment You can also use vertical alignment to align text with graphics. The following rule, added to the <img> element with the style attribute, sets the vertical alignment to top: <img src="image.gif" style="vertical-align: text-top;"> Slide 35 ACSC 231: Internet Technologies 23/12/2008

Slide 36 ACSC 231: Internet Technologies 23/12/2008

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;} Slide 37 ACSC 231: Internet Technologies 23/12/2008

Slide 38 ACSC 231: Internet Technologies 23/12/2008

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;} Slide 39 ACSC 231: Internet Technologies 23/12/2008

Slide 40 ACSC 231: Internet Technologies 23/12/2008

Summary Use type to communicate information structure. Be sparing with your type choices, and use fonts consistently. tl Remember that XHTML text downloads faster than graphics-based text. Use XHTML text whenever possible. Use browser-safe fonts that will display as consistently as possible across operating systems Slide 41 C ACSC 231: Internet Technologies 23/12/2008

Summary Standardize di 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. Slide 42 ACSC 231: Internet Technologies 23/12/2008

Summary 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. Slide 43 ACSC 231: Internet Technologies 23/12/2008

Summary Use the font properties to control the look of your letter forms. Specify font substitution values to ensure that your text is displayed properly p across different platforms. Use the text spacing properties to create more visually interesting and legible text. Slide 44 ACSC 231: Internet Technologies 23/12/2008