[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-685836-105":59,"doc-detail-685836-en":130,"doc-similar-685836":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","internet-fundamentals-introduction-to-web-technologies-lecture-3-cascading-style-sheets","Internet Fundamentals - Introduction to Web Technologies - Lecture 3 - Cascading Style Sheets","","Lecture 3 explains Cascading Style Sheets (CSS) as a technology for controlling and changing presentation of HTML documents. It introduces CSS specifications (CSS1, CSS2, CSS3) and clarifies how styles are applied through selectors and property values. The lecture compares inline, document-level, and external style sheets, including precedence rules. It also covers linking an external stylesheet via the \u003Clink> tag and presents common CSS formatting structures for inline and document-level usage, including selector syntax.",{"@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/internet-fundamentals-introduction-to-web-technologies-lecture-3-cascading-style-sheets/685836/",{"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/internet-fundamentals-introduction-to-web-technologies-lecture-3-cascading-style-sheets/685836.png","ImageObject",300,407,{"name":92,"@type":93},"404brain","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is CSS and how does it relate to HTML documents?","Question",{"text":112,"@type":113},"CSS is used to control and change the presentation of HTML documents. It is not technically HTML, but it can be embedded in HTML documents.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are the three levels of style sheets and how does precedence work?",{"text":117,"@type":113},"The three levels are inline, document-level, and external style sheets. When multiple styles apply to the same tag, the lowest-level (inline) has precedence, so browsers search from inline upward.",{"name":119,"@type":110,"acceptedAnswer":120},"How do you link an external stylesheet in a web page?",{"text":121,"@type":113},"Use a \u003Clink> tag to tell the browser to fetch and use an external stylesheet file, with attributes such as rel=\"stylesheet\" and type=\"text/css\".","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},685836,1794019250,{"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":24,"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},1099529839291,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","# Internet Fundamentals &\n\nIntroduction to Web Technologies  \nCourse: IT (044615)  \nLecture: 3  \nCascading  \nStyle Sheets Dr. Ramez Hajislam  \n## 3.1 Introduction\n\n􀁺 The CSS1 specification was developed in 1996  \n􀁺 CSS2 was released in 1998  \n􀁺 CSS3 is on its way  \n􀁺 CSSs provide the means to control and changepresentation of HTML documents  \n􀁺 CSS is not technically HTML, but can be embedded inHTML documents  \n􀁺 Style sheets allow you to impose a standard style on awhole document, or even a whole collection of documents  \n􀁺 Style is specified for a tag by the values of its properties  \n2  \n## 3.2 Levels of Style Sheets\n\n􀁺 There are three levels of style sheets  \n•  Inline - specified for a specific occurrence of a tag and applyonly to that tag  \n– This is fine-grain style, which defeats the purpose of stylesheets - uniform style  \n•  Document-level style sheets - apply to the whole document inwhich they appear  \n•  External style sheets - can be applied to any number ofdocuments  \n􀁺 When more than one style sheet applies to a specific tag in adocument, the lowest level style sheet has precedence  \n– In a sense, the browser searches for a style property spec,starting with inline, until it finds one (or there isn’t one)  \n3  \n3.2 Levels of Style Sheets (continued)  \n􀁺 Inline style sheets appear in the tag itself  \n􀁺 Document-level style sheets appear in thehead of the document  \n􀁺 External style sheets are in separate files,potentially on any server on the Internet  \n– Written as text files with the MIME typetext/css  \n4  \n3.2 Linking an External Stylesheet  \n􀁺 A \u003Clink> tag is used to specify that the browser is to fetchand use an external style sheet file  \n\u003Clink rel = \"stylesheet\" type = \"text/css\"href = \"http://www.wherever.org/termpaper.css\">\u003C/link>  \n- External style sheets can be validated  \nhttp://jigsaw.w3.org/css-validator/validator-upload.html  \n5  \n## 3.3 Style Specification Formats\n\n􀁺 Format depends on the level of the style sheet  \n􀁺 Inline:  \n– Style sheet appears as the value of the style attribute  \n– General form:  \nstyle = \"property_ 1 : value_ 1 ;  \nproperty_ 2 : value_ 2 ;  \n…  \nproperty_n: value_n \"  \n6  \n3.3 Format for Document-level  \n􀁺 Style sheet appears as a list of rules thatare the content of a \u003Cstyle> tag  \n􀁺 The \u003Cstyle> tag must include the typeattribute, set to \"text/css\"  \n􀁺 The list of rules must be placed in anHTML comment, because it is not HTML  \n􀁺 Comments in the rule list must have adifferent form - use C comments (/*…*/)  \n7  \n3.3 General Form, Document Level  \n8  \n􀁺 General form:  \n\u003Cstyle type = \"text/css\">\u003C!--  \nrule list  \n-->\u003C/style>  \n􀁺 Form of the rules:  \nselector {list of property/values}  \n– Each property/value pair has the form:  \nproperty: value  \n– Pairs are separated by semicolons, just as in the valueof a \u003Cstyle> tag  \n3.3 General Form, External style sheets  \n􀁺 Form is a list of style rules, as in thecontent of a \u003Cstyle> tag for document -level style sheets  \n9  \n## 3.4 Selector Forms: Simple\n\n• The selector is a tag name or a list of tagnames, separated by commas  \n• h1, h3 {font-size: 24}  \n• P {font-size: 20}  \n• Contextual selectors  \n– ol ol ol {list-style-type: decimal}  \n10","cbCais4QqPiT1tiL","https://ap.wps.com/l/cbCais4QqPiT1tiL","pdf",1027164,49,"English","# 3.1 Introduction\n# 3.2 Levels of Style Sheets\n## 3.2 Linking an External Stylesheet\n# 3.3 Style Specification Formats\n## 3.3 General Form, Document Level\n## 3.3 General Form, External style sheets\n# 3.4 Selector Forms: Simple","[{\"question\":\"What is CSS and how does it relate to HTML documents?\",\"answer\":\"CSS is used to control and change the presentation of HTML documents. It is not technically HTML, but it can be embedded in HTML documents.\"},{\"question\":\"What are the three levels of style sheets and how does precedence work?\",\"answer\":\"The three levels are inline, document-level, and external style sheets. When multiple styles apply to the same tag, the lowest-level (inline) has precedence, so browsers search from inline upward.\"},{\"question\":\"How do you link an external stylesheet in a web page?\",\"answer\":\"Use a \\u003clink\\u003e tag to tell the browser to fetch and use an external stylesheet file, with attributes such as rel=\\\"stylesheet\\\" and type=\\\"text/css\\\".\"}]","Internet Fundamentals - Introduction to Web Technologies - Lecture 3 - Cascading Style Sheets | PDF",123,[146,150,154,158,162],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6059ea49ccae15d482e508a6a984ea7f.webp",983,737,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/04310bc96f5d4318d9c3e4df4776f514.webp",982,736,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6063f80ae9bccb78f42fea705e85373a.webp",981,735,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6fe96a982b8a88eea26841757bcaf567.webp",980,734,{"page_no":24,"url":163,"width":164,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5e31b75a7570b52ef8055e55fbd1fca3.webp",979,{"list":166,"token":66},[167,173,179,185,191,197,203,208,214,220],{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":24,"category_name":30,"create_tm":172},693042,"CSS - Quick Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005053987/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175899&Signature=%2BN9FBNbkrRafGOecRsE0YwSpJZ8%3D","css-quick-guide",1794246459,{"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},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=1796175899&Signature=Tn4%2FIYlQ37lqyfb%2F5atNRY6%2BERY%3D","css-cascading-style-sheets-basic-css-properties-syntax-and-usage",1794468363,{"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},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=1796175899&Signature=aKn9HWSZKgR4%2BgI9tVcJDyxSKhA%3D","basic-css-lecture-4-css-styling-fundamentals",1794468368,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":39,"category_name":30,"create_tm":190},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=1796175899&Signature=y91aYtpHRNSr81kSePC8NXa8DCs%3D","css-from-a-to-z-introduction-to-css-read-online-free",1794561915,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":29,"category_name":30,"create_tm":196},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=1796175899&Signature=3rXs4TbLPLsnPYFu9C0CrfGkXiY%3D","cascading-style-sheets-css-cs142-lecture-notes-css-1-driving-problem-behind-css",1794246439,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":19,"category_name":30,"create_tm":202},693038,"HTML Styles-CSS - learn cascading style sheets","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005053917/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175899&Signature=BcYlhxXysjq0Ay6yf89ZlxmNYHc%3D","html-styles-css-learn-cascading-style-sheets",1794246445,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":81,"category_name":30,"create_tm":178},699462,"L3 - CSS Basics - CSS Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011003429/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175899&Signature=9O3yshKmAOi3%2F5ZYtPdTmRA8InQ%3D","l3-css-basics-css-basics",{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":19,"category_name":30,"create_tm":213},699459,"Unit 3 - Cascading Style Sheets (CSS) - Lecture","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011003387/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175899&Signature=8MU2FYJlGBZ8U0HEgjcY%2FQBoWPA%3D","unit-3-cascading-style-sheets-css-lecture",1794468356,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":81,"category_name":30,"create_tm":219},699457,"Style Sheets - Session Objectives - Create and Use Different Types of Style Sheets","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011003368/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175899&Signature=Ua7jyITtvX7PvQR2m05QOOUI6dY%3D","style-sheets-session-objectives-create-and-use-different-types-of-style-sheets",1794468352,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":81,"category_name":30,"create_tm":225},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=1796175899&Signature=vf5Y9GWJa2tY%2BuDHQn9SrikYid8%3D","css-applying-basic-styles",1794061500]