[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-699459-105":59,"doc-detail-699459-en":130,"doc-similar-699459":165},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","unit-3-cascading-style-sheets-css-lecture","Unit 3 - Cascading Style Sheets (CSS) - Lecture","","Unit 3 introduces Cascading Style Sheets (CSS) within an internet and World Wide Web context. The material explains the separation of structured content and visual presentation, contrasts content-only vs styled webpages, and clarifies why style is handled separately through external CSS. It covers key CSS concepts such as selectors and properties, defining style levels and rules, and applying basic styles. Examples show the maintenance burden when style is mixed into HTML and the efficiency gained by separating style for later modification.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/unit-3-cascading-style-sheets-css-lecture/699459/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/unit-3-cascading-style-sheets-css-lecture/699459.png","ImageObject",300,407,{"name":92,"@type":93},"PakDamar76","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-21","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the purpose of CSS in a webpage?","Question",{"text":112,"@type":113},"CSS defines the visual appearance of structured HTML content, so text, images, and other elements can be styled consistently.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Why should style be separated from content?",{"text":117,"@type":113},"Separating style makes later redesign and updates easier, reduces repeated edits across many HTML files, and supports parallel work between content authors and designers.",{"name":119,"@type":110,"acceptedAnswer":120},"How can style be defined in HTML?",{"text":121,"@type":113},"Style can be set using an inline style=\" attribute, a \u003Cstyle> tag inside the \u003Chead>, or an external CSS file (considered the best approach).","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},699459,1794468356,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":24,"preview_urls":145},962090893057,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","CMPT 165  \nINTRODUCTION TO THE  \nINTERNET AND THE  \nWORLDWIDE WEB  \nUnit 3  \nCascading Style Sheets (CSS)  \nCopyright © 2014 by Stephen Makonin Slides based on course material © SFU  \nIcons © their respective owners 1  \nLearning Objectives  \nIn this unit you will learn the following.  \n• Use CSS to style HTML content.  \n• Describe commonly used CSS properties.  \n• Use CSS to implement a simple visual design .  \nCopyright © 2014 by Stephen Makonin 2  \nTopics  \n1. Content vs Style  \n2. What is CSS?  \n3. Why CSS?  \nLecture 1  \n\n| 4.\u003Cbr>5. | Deﬁne Levels and Rules\u003Cbr>Selectors and Properties | Lecture 2 |\n| --- | --- | --- |\n\n6. Applying Basic Style  \n7. Adding Style to Report  \nLecture 3  \nCopyright © 2014 by Stephen Makonin 3  \nNice Webpage  \nContent  \n• Text  \n• Images  \n• Music  \n• Videos  \n• PDFs  \n• Other Resources  \n+ Structure  \n• Give Meaning  \n• HTML:  \n• tags, e.g. h1 , p  \n• attributes  \n• hyper links  \n• meta data  \n+ Style  \n• Enhance Message  \n• CSS:  \n• select tags  \n• style rules  \n• change visual properties, e.g. resize, colour  \nCopyright © 2014 by Stephen Makonin 4  \nStyle  \nHTML/XHTML is the structured content.  \nCascading Style Sheets (CSS) is the visual appearance of that content.  \n• Without deﬁning style we rely on the browser to choose the appearance, [e.g.](e.g. report)[ ](e.g. report)[report](e.g. report).  \n• Separating structured content from visual appearance is deliberate .  \n• Especially true when we use external CSS ﬁles.  \nCopyright © 2014 by Stephen Makonin 5  \nMixing style with content!  \n3 Places to Deﬁne Style  \n1. The style=\"\"  \nattribute in a tag.  \n2. The \u003Cstyle> tag is  \nthe \u003Chead> .  \n3. An external CSS ﬁle.  \nthe best way! Why?  \nCopyright © 2014 by Stephen Makonin 6  \nNew Product Example  \nSay we want to launch of a new product  \n• new website content needs to be generated This results in:  \n• existing webpage content needs to be  modiﬁed  \n• new webpages and resources need to be  added BUT  \n• the website style is need  not be changed  \nWHAT HAPPENS WHEN STYLE  \nAND CONTENT ARE MIXED?  \nCopyright © 2014 by Stephen Makonin 7  \nsee SparkFun  \nStyle in Content  \nIf style and content are  mixed then  \n• every time a new webpage is added or modiﬁed,• every time there is a structural change to content,• we need to add/modify the affected tag’s style. If we decide to change the appearance of (say) \u003Ch1> :  \n• for every \u003Ch1> in every HTML ﬁle we  \n• need to change the value of the style=\"\" attribute .  \n• Same if style is deﬁne in the \u003Chead>  but not as bad.  \nCopyright © 2014 by Stephen Makonin 8  \nSeparating Style  \n• Makes designing and later modifying a design easier.  \n• Content and its structure can also be change easily.  \n• Technical writing (content) and designing (style) are:  \n• two separate functions of creating a website,• involve two different type of jobs—specialization,• involve two people, one for each task,  \n• content and design and be created in parallel.  \nCopyright © 2014 by Stephen Makonin 9  \nAmount of Work to Make Style Changes  \nExample: we want to change the style of \u003Ch1>  \n• 40 webpages  \n• 100 \u003Ch1>’s How many changes are needed at each level?  \nCSS ﬁle  \n\u003Cstyle> in \u003Chead>  \nstyle=\"\" attribute in a tag  \namount of work  \nless  \nmore  \nCopyright © 2014 by Stephen Makonin 10","cbCaideDOpPQZPES","https://ap.wps.com/l/cbCaideDOpPQZPES","pdf",1167566,41,"English","# Learning Objectives\n# Topics\n## Content vs Style\n## What is CSS?\n## Why CSS?\n# Lecture 1\n## Define Levels and Rules\n## Selectors and Properties\n# Lecture 2\n## Applying Basic Style\n## Adding Style to Report\n# Lecture 3\n## Nice Webpage: Content and Structure vs Style","[{\"question\":\"What is the purpose of CSS in a webpage?\",\"answer\":\"CSS defines the visual appearance of structured HTML content, so text, images, and other elements can be styled consistently.\"},{\"question\":\"Why should style be separated from content?\",\"answer\":\"Separating style makes later redesign and updates easier, reduces repeated edits across many HTML files, and supports parallel work between content authors and designers.\"},{\"question\":\"How can style be defined in HTML?\",\"answer\":\"Style can be set using an inline style=\\\" attribute, a \\u003cstyle\\u003e tag inside the \\u003chead\\u003e, or an external CSS file (considered the best approach).\"}]","Unit 3 - Cascading Style Sheets (CSS) - Lecture | PDF",103,[146,150,153,157,161],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/de38e5f710bd23846784de8520f44233.webp",983,736,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/1d1b628accefefd8c97d9da39796cdf3.webp",982,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/e19a2c284037d67d8c379e5920cc06ab.webp",981,735,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3d5b6234265b444a29c23c4320cf0c3e.webp",980,734,{"page_no":24,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/d7b0ecc93644fc4ddd05b696d39096f4.webp",979,733,{"list":166,"token":66},[167,173,179,185,191,197,203,209,215,221],{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":81,"category_name":30,"create_tm":172},686721,"CSS - Applying Basic Styles","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001090655/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=JO2ZJv6YwrQGbLNwKcxZkAguRnI%3D","css-applying-basic-styles",1794061500,{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":29,"category_name":30,"create_tm":178},699464,"Basic CSS - Lecture 4 - CSS Styling Fundamentals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010042266/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=ecYZZvGpicuYHrBsGI%2Bimgcm%2Fy8%3D","basic-css-lecture-4-css-styling-fundamentals",1794468368,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":29,"category_name":30,"create_tm":184},699461,"CSS Cascading Style Sheets - Basic CSS Properties Syntax and Usage","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011003513/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=Jb4JmA6v1RN8z%2BXVNtEJyVWnPdQ%3D","css-cascading-style-sheets-basic-css-properties-syntax-and-usage",1794468363,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":29,"category_name":30,"create_tm":190},693037,"Cascading Style Sheets (CSS) - CS142 Lecture Notes - CSS 1 - Driving problem behind CSS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004257728/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=oIA8F8UZ9IoCP8Izsg1%2BLiZNoPA%3D","cascading-style-sheets-css-cs142-lecture-notes-css-1-driving-problem-behind-css",1794246439,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":39,"category_name":30,"create_tm":196},703167,"CSS From A To Z - Introduction to CSS - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013426264/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=q%2FT3%2FIFopvENBOr7tCSD8FtfxkQ%3D","css-from-a-to-z-introduction-to-css-read-online-free",1794561915,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":24,"category_name":30,"create_tm":202},685836,"Internet Fundamentals - Introduction to Web Technologies - Lecture 3 - Cascading Style Sheets","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999697016/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=Dyisx5ild749SFdrzoR1w%2BZh3Fw%3D","internet-fundamentals-introduction-to-web-technologies-lecture-3-cascading-style-sheets",1794019250,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":24,"category_name":30,"create_tm":208},693034,"CSS Handbook","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005053838/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=NhcRzXayJI%2FyA%2FhpfbhGXzAN0Ko%3D","css-handbook",1794246437,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":29,"category_name":30,"create_tm":214},685839,"DCA-04 Block 2 - WEB-DESIGN - Unit-3 - Getting Started With CSS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000223066/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=EGXfbchtaEhqHAuRJpBq1%2FUSmMU%3D","dca-04-block-2-web-design-unit-3-getting-started-with-css",1794019251,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":34,"category_name":30,"create_tm":220},693041,"How To Build a Website with CSS and HTML","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005053985/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=E%2FTfRcEONetjiXLoVm5yvX4uxtI%3D","how-to-build-a-website-with-css-and-html",1794246454,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":29,"category_name":30,"create_tm":226},703161,"Cascading Style Sheets (CSS) Course Syllabus","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013426121/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=u%2BRn%2BSEQ0OZj6nlAbkkbJsn04EI%3D","cascading-style-sheets-css-course-syllabus",1794561905]