Formatting with Styles. Choosing a Font Family font-family property has a special characteristics: you can specify more than one font h1, h2 {font-family:”Arial.

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
Chapter 8 Creating Style Sheets.
Session Objectives Setting the font family Setting the font size Working with Web fonts Setting font faces and sizes Setting font and text appearances.
Cascading Style Sheets (Formatting. Slide 2 Lecture Overview At this point, you have learned how and where to create styles You have not learned much.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Week 7 Web Typography. 2 Understanding Type Design Principles.
Web Development & Design Foundations with HTML5
INTRODUCTORY Tutorial 3 Using CSS to Format Multiple Pages.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
COS 125 DAY 17. Agenda  Assignment #5 Corrected 6 A’s, 2 B’s, 3 C’s 2 D’s, and 2 non-submits  Next Capstone Progress Report Due April 6  Exam #3 Graded.
Web-based Application Development Lecture 5 January 24, 2006 Anita Raja.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
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.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
HTML/CSS Hyper Text Markup Language. CSS Cascading Style Sheets.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 09: Cascade Style Sheets - Spring 2011.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
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.
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.
(CSS) More Details Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
ITP 104.  Basic HTML using and form  Using Filezilla  public_html ▪ 755 permission  Have a directory name itp104 ▪ 755 permission  classpage.html.
 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.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 14, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
CASCADING STYLE SHEETS. Chapter 3 Objectives Customize HTML elements Specify Font characteristics Classes Tag style Inline and block-level elements External.
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.
Class three: CSS review, backgrounds, font formatting, the box model.
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.
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.
Cascading Style Sheets (css) HTML and css 2012 Brian Davison.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 7.
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.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Files you will need ... Black Goose Bistro Summer Menu
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
INTRODUCTORY Tutorial 3 Using CSS to Format Multiple Pages.
Cascading Style Sheets
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.
OV Copyright © 2008 Element K Content LLC. All rights reserved.  Format Text  Format Lists  Format Images  Modify Page Background Applying Styles.
Cascading Style Sheets Web Design Fairport High School.
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’
Creating Layouts with CSS. Span tag Here is some underlined text. Here is some blinking text. Here's some bold text.
CSCE Chapter 3 (Cascading Style Sheets) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department of Computer.
COS 125 DAY 10. Agenda  Capstone Proposals Due Recieved 5 Capstone Project Description sp 09.htm  Assignment 4 not corrected  Assignment 5 Posted Due.
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
JavaScript and Ajax (JavaScript Dynamic HTML (DHTML)) Week 7 Web site:
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)
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.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
CSS Style Sheets: Intro
Cascading Style Sheets Color and Font Properties
Web Development & Design Foundations with H T M L 5
CSS Styles Fonts and Colors.
Chapter 7 Web Typography
Cascading Style Sheets
Presentation transcript:

Formatting with Styles

Choosing a Font Family font-family property has a special characteristics: you can specify more than one font h1, h2 {font-family:”Arial Black”,”Helvetica Bold”, sans-serif} p {font-family:”Verdana”,”Helvetica”,sans-serif}

Embedding Fonts on a Page You can choose whatever font you want, but the visitors don’t have it installed on their computers, they won’t be able to view it The SOLUTION is to embed a font in a src: url(SUNNYS10.eot)} sans-serif} h1,h2 {font-family:”Sunnyside”,”Helvetica”}

Creating Italic Italics are often used to set off quotations, emphasized text, foreign words, magazine names and much more p {font-family:”Verdana”,”Helvetica”,sans-serif}.emph { font-style: italic }

Applying Bold Formatting Bold formatting is probably the most common and effective way to make text stand out p {font-family:”Verdana”,”Helvetica”,sans-serif}.emph { font-style: italic; font-weight:bold }

Setting the Font Size There are two basic ways to set the font size for the text in your Web page h1,h2 {font-family:”Verdana”,”Helvetica”, sans-serif} h1 { font-size: 20px } h2 { font-size: 14px } p {font-family:”Arial”,”Helvetica Bold”, sans-serif; font-size:12px}

Setting the Line Height Line height refers to a paragraph’s leading, that is, the amount of space between each line in a paragraph h1,h2 {font-family:”Verdana”,”Helvetica”, sans-serif} h1 { font-size: 20px } h2 { font-size: 14px } p {font-family:”Arial”,”Helvetica Bold”, sans-serif; font-size:12px; line-height:150%}

Setting the Text Color You can change the color of any amount of text on your Web page h1, h2 {font-family:”Arial Black”,”Helvetica Bold”, sans-serif; color:navy} p {font-family:”Verdana”,”Helvetica”,sans-serif; color:#909}

Changing the Text’s Background The background refers not to the background of the entire page, but to the background of the specified element body { background:#9cf } h1, h2 {font-family:”Arial Black”,”Helvetica Bold”, sans-serif; color:navy}

Controlling Spacing You can add or reduce space between words (tracking) or between letters body { background:#9cf } h1, h2 {font-family:”Arial Black”,”Helvetica Bold”, sans-serif; color:navy; letter-spacing:0.4em}

Adding Indents You can determine how much space should precede the first line of a paragraph body { background:#9cf } p {font-family:”Arial Black”,”Helvetica Bold”, sans-serif; color:navy; text-indent:1.5em}

Aligning Text You can set up certain (X)HTML elements to always be aligned to the right, left, center or justified, as desired body { background:#9cf } h1, h2 {font-family:”Arial Black”,”Helvetica Bold”, sans-serif; color:navy; letter-spacing:0.4em; text-align: center}

Changing the Text Case You can define the text case for your style by using the text-transform property body { background:#9cf } h1, h2 {font-family:”Arial Black”,”Helvetica Bold”, sans-serif; color:navy; letter-spacing:0.4em; text-align: center} h1 {text-transform:uppercase}

Using Small Caps Many fonts have a corresponding small caps variant that includes uppercase versions of the letters proportionately reduced to small cap size h1, h2 {font-family:”Arial Black”,”Helvetica Bold”, sans-serif; color:navy; letter-spacing:0.4em; text-align: center} h1 {text-transform:uppercase} h2 {font-size: 14px; font-variant:small-caps}

Decorating Text Style sheets let you adorn your text with underlines, overlining, lines through the text and even blinking text

Visit

LISTS