LBSC 690: Week 6 CSS, XMLXSLT - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

LBSC 690: Week 6 CSS, XMLXSLT

Description:

Inline style: Causes only the tag to have the desired properties. Internal stylesheet: ... External Style Sheets. Store formatting metadata in a separate file head ... – PowerPoint PPT presentation

Number of Views:31
Avg rating:3.0/5.0
Slides: 10
Provided by: Jimm123
Category:
Tags: css | lbsc | xmlxslt | style | week

less

Transcript and Presenter's Notes

Title: LBSC 690: Week 6 CSS, XMLXSLT


1
LBSC 690 Week 6CSS, XML/XSLT
  • Jimmy Lin
  • College of Information Studies
  • University of Maryland
  • Monday, March 5, 2007

2
Whats a Document?
  • Content
  • Structure
  • Appearance
  • Behavior

3
CSS
  • Separating content and structure from appearance
  • Rules for defining styles cascade from broad to
    narrow
  • Browser default
  • External style sheet
  • Internal style sheet
  • Inline style

4
Basics of CSS
  • Basic syntax
  • Example
  • Causes
  • Font to be center-aligned
  • Font to be Arial and black

selector property value
HTML tag you want to modify
The property you want to change
The value you want the property to take
p text-align center color black
font-family arial
5
Different Ways for Using CSS
  • Inline style
  • Causes only the tag to have the desired
    properties
  • Internal stylesheet
  • Causes all tags to have the desired properties

ltp style"font-familyarial colorblue"gtlt/pgt
ltheadgt ltstyle type"text/css"gt p
font-familyarial colorblue lt/stylegt lt/headgt
ltbodygt ltpgtlt/pgt
6
Customizing Classes
  • Ability to define customized styles for standard
    HTML tags

ltheadgt ltstyle type"text/css"gt p.style1
font-familyarial colorblue p.style2
font-familyserif colorred lt/stylegt lt/headgt
ltbodygt ltp classstyle1"gtlt/pgt ltp
classstyle2"gtlt/pgt
7
External Style Sheets
  • Store formatting metadata in a separate file

mystyle.css
p.style1 font-familyarial colorblue
p.style2 font-familyserif colorred
ltheadgt ltlink rel"stylesheet"
href"mystyle.css" type"text/css" /gt lt/headgt
ltbodygt ltp classstyle1"gtlt/pgt ltp
classstyle2"gtlt/pgt
8
Why Use CSS?
  • What are the advantages of CSS?
  • Why have three separate ways of using styles?

9
XML and XSLT
  • XML document contains the content
  • DTD (Document Type Definition) defines a
    well-formed XML document
  • XSLT (eXtensible Stylesheet Language
    Transformations) language for converting one XML
    document into another
Write a Comment
User Comments (0)
About PowerShow.com