[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-686715-105":59,"doc-detail-686715-en":130,"doc-similar-686715":153},{"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","html-and-css-basics-iii-css-review-backgrounds-fonts-and-the-box-model","HTML and CSS Basics - III - CSS review, backgrounds, fonts, and the box model","","Class Three revisits core CSS fundamentals with hands-on examples. It reviews attaching CSS through a stylesheet link in the HTML head, then focuses on background-color, background-image, repeat, position, and attachment behaviors. The guide also covers text styling such as color, text-align, text-decoration, and text-transform, followed by typography controls including font-size, font-weight, font-family, and font-style. It concludes with custom fonts using @import and @font-face for web-hosted type.",{"@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/html-and-css-basics-iii-css-review-backgrounds-fonts-and-the-box-model/686715/",{"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/html-and-css-basics-iii-css-review-backgrounds-fonts-and-the-box-model/686715.png","ImageObject",300,407,{"name":92,"@type":93},"awa","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-07",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},"How do you attach an external CSS file to an HTML page?","Question",{"text":112,"@type":113},"Add a link tag inside the HTML \u003Chead>, such as a stylesheet href pointing to the .css file.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What CSS properties control background image behavior?",{"text":117,"@type":113},"Use background-image for the image, background-repeat for tiling, background-position for placement, and background-attachment for scroll versus fixed behavior.",{"name":119,"@type":110,"acceptedAnswer":120},"How can you customize fonts beyond system fonts?",{"text":121,"@type":113},"Import web fonts with @import or use @font-face to load hosted fonts, then apply the font-family in CSS to your elements.","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},686715,1794061491,{"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":14,"preview_urls":145},3985747858093,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","html & css basics  \nclass three  \nCSS review, backgrounds, fonts, & the box model  \n...so let’s attach our CSS  \n\u003Chead>  \n\u003Clink rel=\"stylesheet\" href=\"cafe.css\" />  \n\u003C/head>  \nbackground  \nbackground-color  \n● Name (red)  \n● RGB (rgb(255,0,0))  \n● Hex (\\#ff0000)  \nTRY IT:  \nbody {  \nbackground-color: \\#F1F2E4;}  \nbackground  \nbackground-image  \n● url(‘image.jpg’)  \nbackground-repeat  \n● repeat (default), repeat-x, repeat-y, no-repeat background-position  \n● left, center, right, top, center, bottom  \n● x% y% (0% 0% default)  \n● xpos ypos  \nbackground-attachment  \n● scroll (default), fixed TRY IT:  \n\\#menu {  \nbackground-image:url('images/fabric_texture.jpg');}  \ntext  \ncolor  \n● hex, RGB, or name text-align  \n● left (default), center, right, or justify  \nTRY IT:  \nh1 {  \ncolor: \\#B55109;  \ntext-align:center;}  \ntext  \ntext-decoration  \n● none (default), overline, line-through, underline, blink text-transform  \n● none (default), uppercase, lowercase, capitalize  \nTRY IT:  \na {  \ntext-decoration:none;  \ntext-transform:uppercase;  \ncolor: \\#66839E;  \n}  \nfont  \nfont-size  \n● default size is 16px  \n● px, cm, em, %, xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger  \nfont-weight  \n● normal(default), bold, bolder, lighter, 100-900  \nTRY IT:  \nh1 {  \ncolor: \\#B55109;  \ntext-align:center;  \nfont-size: 4em;  \nfont-weight: 400;}  \nh2, h3 {  \ncolor: \\#B55109;  \nfont-size:2em;  \nfont-weight:400;}  \nfont  \nfont-family  \n● syntax= font-family:individual, family;  \n● families include: serif, sans-serif, monospace, cursive, fantasy  \nfont-style  \n● normal(default), italic, oblique  \nTRY IT:  \nbody {  \nbackground-color: \\#F1F2E4;  \nfont-family: \"Trebuchet MS\", Helvetica, Tahoma, sans-serif;}  \nfont  \nCustom fonts: @import & @font-face  \n● Allow you to use any font, provided it’s hosted somewhere on the web.  \n● Many options: Font Squirrel, Google web fonts, TypeKit, etc.  \nLET’S VISIT GOOGLE FONTS!  \n[https://www.google.com/fonts\\#](https://www.google.com/fonts#)  \nfont  \n@import  \n● Can be linked at the top of your CSS like this:  \n@import url( [http://fonts.googleapis.com/css?family=Open](http://fonts.googleapis.com/css?family=Open)+Sans);  \nOr in the html \u003Chead> like this:  \n\u003Clink href='[http://fonts.googleapis.com/css?](http://fonts.googleapis.com/css?)[ ](http://fonts.googleapis.com/css?)[family=Sanchez|Oswald:](family=Sanchez|Oswald:)  \n300|Oleo+Script| Stint+Ultra+Condensed'  \nrel='stylesheet' type='text/css'>","cbCaia6aAqvh45cL","https://ap.wps.com/l/cbCaia6aAqvh45cL","pdf",116780,15,"English","# CSS Review\n## Attaching CSS with a stylesheet link\n# Backgrounds\n## background-color\n## background-image and repeat/position/attachment\n# Text Styling\n## color, text-align, text-decoration, text-transform\n# Fonts\n## font-size, font-weight, font-family, font-style\n## Custom fonts with @import and @font-face","[{\"question\":\"How do you attach an external CSS file to an HTML page?\",\"answer\":\"Add a link tag inside the HTML \\u003chead\\u003e, such as a stylesheet href pointing to the .css file.\"},{\"question\":\"What CSS properties control background image behavior?\",\"answer\":\"Use background-image for the image, background-repeat for tiling, background-position for placement, and background-attachment for scroll versus fixed behavior.\"},{\"question\":\"How can you customize fonts beyond system fonts?\",\"answer\":\"Import web fonts with @import or use @font-face to load hosted fonts, then apply the font-family in CSS to your elements.\"}]","HTML and CSS Basics - III - CSS review, backgrounds, fonts, and the box model | PDF",38,[146,150],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/4fbd94b8fd2d33177d3caf2fa9db5e21.webp",983,552,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/ecb0568ef463410f8fae667aa93810f3.webp",982,{"list":154,"token":66},[155,161,167,173,179,185,192,198,204,210],{"doc_id":156,"doc_title":157,"file_type":137,"home_preview_img_url":158,"slug":159,"view_count":29,"category_name":30,"create_tm":160},686718,"Font Styles - Text Styling & Layout Styles Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001090648/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=xk68wC10VVoIsplKuohDic6L3cQ%3D","font-styles-text-styling-layout-styles-guide",1794061497,{"doc_id":162,"doc_title":163,"file_type":137,"home_preview_img_url":164,"slug":165,"view_count":19,"category_name":30,"create_tm":166},693040,"CSS Tutorial Part 1 - Introduction - Adding Style to a Web Page","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005053964/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=cxFiyunVQPnMEZ4OHr14l88b0i0%3D","css-tutorial-part-1-introduction-adding-style-to-a-web-page",1794246453,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":19,"category_name":30,"create_tm":172},701118,"CS193X: Web Programming Fundamentals - Lecture 5 - Spring 2017","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011579050/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=ic6qPEnEYL1LuIpvSIkR88huAy0%3D","cs193x-web-programming-fundamentals-lecture-5-spring-2017",1794523552,{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":14,"category_name":30,"create_tm":178},734513,"HTML color codes - Quick reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230032227404/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=xBNxex71so%2BW%2FJc2ABsHhC1NJi8%3D","html-color-codes-quick-reference",1795399629,{"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=1796111099&Signature=iyO5fFhsxsXy0GghIrKS8RTmSTg%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":190,"category_name":30,"create_tm":191},491464,"HTML Cheat Sheet - A quick guide to HTML, CSS, and JavaScript basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928196033/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=n5UulRPTajAHnvL20oKyL6zn1RM%3D","html-cheat-sheet-a-quick-guide-to-html-css-and-javascript-basics",21,1790849720,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":39,"category_name":30,"create_tm":197},697991,"Learn to Code - HTML & CSS - Develop & Style Websites","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010150974/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=y4y7KIP8BlDw1xgYbtyj3sohygo%3D","learn-to-code-html-css-develop-style-websites",1794446750,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":29,"category_name":30,"create_tm":203},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=1796111099&Signature=CC3eZFSC2T8gib6WWYHqjvT6NrQ%3D","cascading-style-sheets-css-cs142-lecture-notes-css-1-driving-problem-behind-css",1794246439,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":209,"category_name":30,"create_tm":184},699463,"HTML5 and CSS3 - Seventh Edition - Visual QuickStart Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010042191/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=jSRJbs02s%2BCVmjB1tT%2Fad3bQppk%3D","html5-and-css3-seventh-edition-visual-quickstart-guide",12,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":14,"category_name":30,"create_tm":215},757768,"where everyone knows your name - HTML/CSS Effects - AO3 Work Skin Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230042089296/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111099&Signature=Drc2bk7%2BJFGHmqHLB1ML5o9%2FfZY%3D","where-everyone-knows-your-name-htmlcss-effects-ao3-work-skin-tutorial",1795760052]