L04-CSS - Session 4 CSS Session 4 Style Sheets (CSS) 1...

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

View Full Document Right Arrow Icon
Session 4 – CSS 9/14/2010 1 © Robert Kelly, 2001-2010 Session 4 Style Sheets (CSS) 1 Reading Reading - Style Sheet Tutorials www.htmldog.com/guides/cssbeginner/ - beginner’s guide www.westciv.com/style_master/academy/css_tutorial/index.html www.webreference.com/html/tutorials/ - Tutorials 5, 6, and 8 www.hotdesign.com/seybold/index.html For conversion of common HTML attributes to CSS www.dev-archive.net/articles/translate.html www.digital-web.com/tutorials/tutorial_2001-5.shtml www.digital-web.com/tutorials/tutorial_2002-06.shtml aamcf.co.uk/html/attr A great reference containing tables of CSS properties – and lots © Robert Kelly, 2001-2010 2 more http://www.blooberry.com/indexdot/css/index.html Another good reference http://home.tampabay.rr.com/bmerkey/cheatsheet.htm
Background image of page 1

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

View Full DocumentRight Arrow Icon
Session 4 – CSS 9/14/2010 2 © Robert Kelly, 2001-2010 Lecture Objectives Understand the advantages of CSS style sheets in HTML documents Become familiar with the syntax of CSS Learn how to recognize styling in HTML that can be moved into a CSS style sheet © Robert Kelly, 2001-2010 3 Limitations of HTML Maintenance Site compatibility Quick change to a site look and feel User overrides Handled by other User Agents © Robert Kelly, 2001-2010 4
Background image of page 2
Session 4 – CSS 9/14/2010 3 © Robert Kelly, 2001-2010 Styling in HTML html In pure HTML, viewing information is included in the HTML ta head body table table HTML tag <td width=“20” bgColor=“#333399”> Styling is usually © Robert Kelly, 2001-2010 5 tr td tr td contained within the tag – and applies to that element Styling in HTML/CSS html With style sheets (CSS), styling information is contained within a style shee head body table table contained within a style sheet td {color:#333399;} Styling is usually © Robert Kelly, 2001-2010 6 tr td tr td contained within a style sheet – and applies to any matching element
Background image of page 3

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

View Full DocumentRight Arrow Icon
Session 4 – CSS 9/14/2010 4 © Robert Kelly, 2001-2010 What are Style Sheets? A way to separate the appearance of Web pages from the content of Web pages HTML should not contain information A recommendation of the W3C A way to standardize appearance for many pages in a Web site Contained within HTML should not contain information about how data is displayed © Robert Kelly, 2001-2010 7 A text file (with a css suffix) written according to a grammar (CSS 1 or CSS 2) An HTML Style tag Your browser Do Many Web Sites Use Style Sheets? Use is increasing today, but most of it is auto generated
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.

This note was uploaded on 02/22/2011 for the course CSE 336 taught by Professor Kelly,r during the Fall '08 term at SUNY Stony Brook.

Page1 / 14

L04-CSS - Session 4 CSS Session 4 Style Sheets (CSS) 1...

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