100%(2)2 out of 2 people found this document helpful
This preview shows page 1 - 2 out of 5 pages.
ICT 1513 ASSIGNMENT 4CHAPTER 4 : Cascading Style SheetsCSS is like a pencil in the hands of a painter, it gives you control on how HTML elements are to be displayed on screen, paper, or in other media. Actually the whole idea of CSS is to separate the structure of a document from the presentation.Some of the benefits of using CCS include, easier maintenance and updates, greater consistency in design, faster download times and it is also easy to present different styles to different viewers.The standards for Style Sheets are set by W3C, CSS can be added to elements in 3 ways:Inline-by using style attribute in HTML elementsInternal-by using a <style> element in the < head> sectionExternal-by using an external CSS fileSome styles, like font family, text alignment automatically inherited by child elements from their parent elements.The power in CSS comes from the different methods of selecting elements, allowing HTML authors toapply style rules in a variety of ways. To be a successful web designer, one needs to know and understand the different selection techniques and their applications.There are five advanced selection techniques used in HTML, the class selector lets you write rules and name the elements.ID -refers to only one instance of the attribute<DIV> and <SPAN> are used to specify logical divisions within a documentPseudo-elements-are used to change other aspects of a document that are not classified by elementsHands-On Project Question 2 p176<!DOCTYPE html>