tailieunhanh - ICT 5 Web Development - Chapter 11: CSS
ICT 5 Web Development - Chapter 11: CSS presents Before and after using CSS, Introduction to CSS, Specifying and applying style rules Style class, Some useful properties, Div and span, CSS box model. | Vietnam and Japan Joint ICT HRD Program Before and after using CSS ICT 5 Web Development Chapter 11. CSS Nguyen Thi Thu Trang trangntt@ 2 class="formstyle"> Content 1. Introduction to CSS 2. Specifying and applying style rules 3. Style class 4. Some useful properties 5. Div and span 6. CSS box model . body { } .formstyle y { } .forumline { } font-family: Verdana,Tahoma,Geneva,Arial,Helvetica,sans-serif; font-size: 12px; background-color: #D7E5F5; font-family: Verdana,Tahoma,Geneva,Arial,Helvetica,sans-serif; font-size: 12px; background-color: 3 4 1 1. Introduction to CSS . Benefits of CSS Cascading Style Sheet Created b Hakon Wium Lie of MIT in C d by k f 1994 Has become the W3C standard for controlling visual presentation of web pages Simple syntax: easy to learn Powerful and flexible way to specify the P f l d fl ibl t if th formatting of HTML elements – Can define font, size, background color, background image, margins, etc Separates presentation (design elements) from content (structural logic) – HTML contains content and structure of a web page. – CSS defines a style of a web page – how the content is displayed 5 CSS Allows Separation of effort / specialization Developer University of Michigan Designer D i Transforming the look and feel of a page using a CSS style sheet + @import "/CSS/"/**/; strong, .verbose, .verbose p, .verbose h2{textindent:-876em;position:absolute} strong a{text-decoration:none} em{font-weight:bold;font-style:normal} {background:#eee;border:1px solid . Everyone needs to know some HTML and some CSS and some programming - but to be truly skilled at a professional level requires deep understanding and specialization. body { font-family: arial, san-serif; } a, a:link { color: #0000cc; } . 2 . Benefits of CSS (2) Share style sheets across multiple documents or entire Web site – Easy to maintain consistent
đang nạp các trang xem trước