ICT 1513 ASSIGNMENT 4.docx - ICT 1513 ASSIGNMENT 4 CHAPTER 4 Cascading Style Sheets CSS is like a pencil in the hands of a painter it gives you control

ICT 1513 ASSIGNMENT 4.docx - ICT 1513 ASSIGNMENT 4 CHAPTER...

This preview shows page 1 - 2 out of 5 pages.

ICT 1513 ASSIGNMENT 4 CHAPTER 4 : Cascading Style Sheets CSS 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 elements Internal-by using a <style> element in the < head> section External-by using an external CSS file Some 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 to apply 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 document Pseudo-elements-are used to change other aspects of a document that are not classified by elements Hands-On Project Question 2 p176 <!DOCTYPE html>
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 5 pages?

  • Spring '19
  • Web Design, Cascading Style Sheets, Web designer

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture