lecture12

lecture12 - PIC 40A Lecture 12 Cascading Style Sheets(CSS...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
PIC 40A Lecture 12: Cascading Style Sheets (CSS)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
What is CSS? CSS • is a way to add style to XHTML and XML documents • consists of rules for specifying how an element should be presented The latest W3C standard is CSS2 (CSS3 coming soon)
Background image of page 2
Why CSS? CSS – keeps presentation layer separate from structure layer of Web design – makes Web docs smaller, reduces clutter – can be interchanged without major change to the XML or XHTML document – can impose a uniform style to a variety of XML documents with one style sheet – can format different elements with a single style rule – can format elements of the same type differently
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Why the name “Cascading”? Style sheets can be defined at 3 levels: 1. inline (low-level: most specific) 2. document 3. external (high level: most general) more specific rule overrides more general rule inline- applies to single element (deprecated in XHTML 1.1) document- applies to whole XHTML document body external- applies to a collection of XML documents (CSS stored in a separate .css file)
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 17

lecture12 - PIC 40A Lecture 12 Cascading Style Sheets(CSS...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online