Tutorial 4 Formatting Text. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create a spread heading Indent text Change the line spacing.

Slides:



Advertisements
Similar presentations
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
Advertisements

Part 3 Introduction to CSS. CSS Text Text Styles h1 {color: green} // rgb(0,255,0), #00ff00 h2{letter-spacing: 0.5cm} // 2px h3 {text-align: right} //
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.
CS4370/6370 Web Development Cascading Style Sheets (CSS)
Week 7 Web Typography. 2 Understanding Type Design Principles.
INTRODUCTORY Tutorial 3 Using CSS to Format Multiple Pages.
Cascading Style Sheets 1. About Lists HTML list code ul, ol, dldl CSS list-item style properties
CSE CASCADING STYLE SHEETS CSS Faculty of Computer Science and Engineering.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Lecture CSS: Cascading Style Sheets. What are Styles? Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics.
+ 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 6.  Text is the content, and fonts are used to display that content. By using text properties you can affect the position.
Formatting Text (Plus More Selectors) Learning Web Design: Chapter 12.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Cascading Style Sheets Example
CSS Dvijesh Bhatt.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Principles of Web Design 6 th Edition Chapter 5 – Web Typography.
Cascading Style Sheet (CSS)
1Computer Sciences Department. And use
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Cascading Style Sheets, pt 2 ECA 225 Applied Online Programming.
WORKING WITH CASCADING
New Perspectives on XML, 2nd Edition Tutorial 5 1 TUTORIAL 5 WORKING WITH CASCADING STYLE SHEETS.
1 To Create an Internal Style Sheet 1. At the top of your HTML document, between the and tags type. 2. Type the name of the tag whose properties you wish.
XP New Perspectives on XML Tutorial 5 1 TUTORIAL 5 CSS Tutorial – Carey ISBN
WDV 101 Intro to Website Development
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.
Doman’s Sections Information in this presentation includes text and images from
(CSS) More Details Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit E Formatting with Cascading Style Sheets.
Website Development & Management Working with Style Rules Instructor: John Seydel, Ph.D. CIT Fall
What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorials 3 & 4: Working With CSS.
Tutorial #4 Formatting Text and Links. Tutorial #3 Review - CSS CSS format Selector { property1: value1; /* Comments */ } Embedded, In-Line, and External.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
CSS-Lists CSS provides special properties that are designed for lists. It is usually more convenient to use these properties whenever you can. To specify.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
CSS Class 2 -Add margins to elements on a page. -Set width and height of elements. - CSS shorthand properties for box model. -Style links. -Style tables.
INTRODUCTORY Tutorial 3 Using CSS to Format Multiple Pages.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Cascading Style Sheets.
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
IS1825 Multimedia Development for Internet Applications Lecture 12: IDs, Classes and Internal CSS Rob Gleasure
1 CSS محمد احمدی نیا 2 Of 21 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements 
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 15: Lists.
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
Tutorial 3 Designing a Web Page with CSS
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
CSS Details Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  To use CSS properties for fonts  Evaluate whether to use pts,
Welcome To Website Design, Hosting And Management Prepared By Webdev Solution ip ,223,96.
Microsoft Expression Web 3 – Illustrated Unit M: Advanced Typography Using CSS.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 4 Formatting Text and Links.
Cascading Style Sheets Robin Burke ECT 270. Outline CSS properties Fonts Alignment Color CSS selection selectors.
1 Cascading Style Sheets
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
WebD Introduction to CSS By Manik Rastogi.
Cascading Style Sheet List Properties Box Properties Pseudoclass
Cascading Style Sheet List Properties Box Properties Pseudoclass
CSS Style Sheets: Intro
Presentation transcript:

Tutorial 4 Formatting Text

XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create a spread heading Indent text Change the line spacing Change text capitalization

XP Objectives Identify the differences between dependent and independent classes Use classes to style several elements Apply classes to text Create pseudo-elements and pseudo-classes New Perspectives on Blended HTML, XHTML, and CSS3

XP Using CSS to Format Text CSS provides formatting for a document – Setting the line spacing – Indenting text to create a tab indent – Setting margins New Perspectives on Blended HTML, XHTML, and CSS, 2e4

XP Using CSS to Format Text New Perspectives on Blended HTML, XHTML, and CSS, 2e5

XP Using the Text Properties The letter-spacing property controls the amount of white space between letters – Also known as kerning The word-spacing property controls the amount of white space between words Letter spacing and word spacing are commonly used together to create a spread heading, in which the letters of one word or several words are spaced apart. New Perspectives on Blended HTML, XHTML, and CSS, 2e6

XP Using the Text Properties New Perspectives on Blended HTML, XHTML, and CSS, 2e7

XP Using the Text Properties The text-align property aligns text horizontally – Left (the default) – Center – Right – Justify New Perspectives on Blended HTML, XHTML, and CSS, 2e8

XP Using the Text Properties New Perspectives on Blended HTML, XHTML, and CSS, 2e9

XP Using the Text Properties The text-indent property indents the first line of paragraph text The line-height property is used to change the line spacing – For example, single spacing to double spacing New Perspectives on Blended HTML, XHTML, and CSS, 2e10

XP Using the Text Properties New Perspectives on Blended HTML, XHTML, and CSS, 2e11

XP Using the Text Properties The text-transform property can change the case of text – Uppercase – Capitalize – Lowercase – None New Perspectives on Blended HTML, XHTML, and CSS, 2e12

XP Using the Text Properties New Perspectives on Blended HTML, XHTML, and CSS, 2e13

XP Using the Text Properties The text-decoration property is used to insert a line above, through, or under text – underline – overline – line-through – blink – none New Perspectives on Blended HTML, XHTML, and CSS, 2e14

XP Creating and Using Classes Class selectors format several instances of one or more elements – Dependent classes style a particular element – Independent classes style any element Code for the crucial dependent class for the em element: New Perspectives on Blended HTML, XHTML, and CSS, 2e15

XP Creating and Using Classes Independent classes format several XHTML element selectors in the same way New Perspectives on Blended HTML, XHTML, and CSS, 2e16

XP Creating Pseudo-Elements A pseudo-element formats a part of text that does not directly relate to an XHTML element selector – :first-letter pseudo-element – :first-line pseudo-element New Perspectives on Blended HTML, XHTML, and CSS, 2e17

XP Creating Pseudo-Elements New Perspectives on Blended HTML, XHTML, and CSS, 2e18

XP Creating Pseudo-Elements Styling Pseudo-Elements – To apply a style to the first letter of an element, use the following syntax: selector.class:first-letter where selector is an element in the document and class is a dependent class. – To apply a style to the first line of an element, use the following syntax: selector.class:first-line where selector is an element in the document and class is a dependent class. New Perspectives on Blended HTML, XHTML, and CSS, 2e19

XP Using Pseudo-Class Selectors The link pseudo-class selectors expand on the concept that visitors to your Web site benefit from visual cues about the link state – a:link – a:visited – a:hover – a:active New Perspectives on Blended HTML, XHTML, and CSS, 2e20

XP Changing the Appearance of Lists To specify the format of a list, enter the following code where you want the list to appear: ul { list-style-property: value; Use the following properties to set the appearance of the list: – list-style-type – list-style-image – list-style-position – list-style New Perspectives on Blended HTML, XHTML, and CSS, 2e21

XP Changing the Appearance of Lists The list-style-type property changes the appearance of the default solid bullet for unordered lists (disc, circle, or square), and the listing method for ordered lists (decimal, lower-roman, upper- roman, lower-alpha, and upper-alpha) New Perspectives on Blended HTML, XHTML, and CSS, 2e22

XP Changing the Appearance of Lists The list-style-position property changes the position of the bullet included with a list The list-style-image property changes the bullet to a graphic image New Perspectives on Blended HTML, XHTML, and CSS, 2e23

XP Changing the Appearance of Lists The list-style property is the shorthand property to set the list-style-type, the list-style-image, and list-style-position New Perspectives on Blended HTML, XHTML, and CSS, 2e24

XP Changing the Appearance of Lists A marker appears to the left of the list item text New Perspectives on Blended HTML, XHTML, and CSS, 2e25

XP Changing the Appearance of Lists The vertical-align property positions images and other elements vertically with text New Perspectives on Blended HTML, XHTML, and CSS, 2e26