{"id":241,"date":"2019-09-09T14:27:00","date_gmt":"2019-09-09T14:27:00","guid":{"rendered":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/?p=241"},"modified":"2019-11-27T03:48:47","modified_gmt":"2019-11-27T03:48:47","slug":"class-4-css-fundamentals","status":"publish","type":"post","link":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/2019\/09\/09\/class-4-css-fundamentals\/","title":{"rendered":"Class 4: CSS Fundamentals and HTML Sectioning"},"content":{"rendered":"\n<p class=\"files\"><strong>Files From Class: <\/strong><\/p>\n\n\n\n<p class=\"files\"><strong>DOWNLOAD: <\/strong>Here are the files we created in class based on our sketch: <a href=\"https:\/\/www.dropbox.com\/s\/q5n75j2ffp1bxxp\/Bonobos-inClass-9.9.19.zip?dl=0\">https:\/\/www.dropbox.com\/s\/q5n75j2ffp1bxxp\/Bonobos-inClass-9.9.19.zip?dl=0<\/a><br><strong>Wireframe Sketch: <\/strong>here is a pic of the wireframe from the board. I converted it to a PDF. <a href=\"https:\/\/www.dropbox.com\/s\/vpsbsbs5mvhzvnw\/Bonobos-Wireframe-Sketch-.pdf?dl=0\">https:\/\/www.dropbox.com\/s\/vpsbsbs5mvhzvnw\/Bonobos-Wireframe-Sketch-.pdf?dl=0<\/a> <\/p>\n\n\n\n<p>For the homework you would upload two files like these, the HTML and a Sketch to the Assignment in Blackboard.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Today we will recap what we worked on Thursday and then move into the basics of CSS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Wireframe and HTML Section Elements<\/h3>\n\n\n\n<p>We are going to start by sketching out the main sections of this web page: <a href=\"https:\/\/bonobos.com\/\">https:\/\/bonobos.com\/<\/a><\/p>\n\n\n\n<p>I chose it because it is relatively straightforward and will be relatively easy to write HTML and CSS for. However, you should note that the actual markup of the page is an example of what I do NOT want you to do. They use divs for all of the major page sectioning elements.<\/p>\n\n\n\n<p>Instead we are going to use the HTML5 elements. For a good article on this issue and picking out the elements you should use read this: <a href=\"https:\/\/dev.to\/kenbellows\/stop-using-so-many-divs-an-intro-to-semantic-html-3i9i\">Stop Using So Many Divs: An intro to Semantic HTML<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Wireframe Sketch<\/h3>\n\n\n\n<p>As a class we will sketch out the page<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">HTML Sectioning Elements<\/h3>\n\n\n\n<p>We will go through the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Basic Web Page:<\/strong> All of the basic elements you need before starting the content. We will see how to get this started with a simple Emmet extension ( type ! then tab on a blank page). Note: there are some other elements we will need to add to this.<\/li><li><strong>Basic Page Elements:<\/strong> <ol><li>Header &lt;header&gt;&lt;\/header&gt;<\/li><li>Main &lt;main&gt;&lt;\/header&gt;<\/li><li>Footer &lt;footer&gt;&lt;\/footer&gt; <\/li><\/ol><\/li><li><strong>Other Sectioning and Grouping Elements:<\/strong> div, section, article, aside, nav<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">CSS Fundamentals<\/h3>\n\n\n\n<p>We will go through the basics of CSS and use:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>This presentation: <a href=\"https:\/\/www.dropbox.com\/s\/g6kvqnm6odo7bg1\/CSSFundamentals-v2.key?dl=0\">Keynote version<\/a>, PowerPoint version<\/li><li>These files: <a href=\"https:\/\/www.dropbox.com\/s\/jf5xnm89yu9ufjc\/CSS%20Fundamentals%20Example.zip?dl=0\">compressed zip file<\/a><\/li><\/ul>\n\n\n\n<p>As we follow along in the presentation we will write some basic CSS. Download the compressed zip file above and open it in Brackets or Sublime. We will also use Emmet as we work.<\/p>\n\n\n\n<p>This post has a couple of good diagrams of CSS ruleset terminology: <a href=\"https:\/\/css-tricks.com\/css-ruleset-terminology\/\">https:\/\/css-tricks.com\/css-ruleset-terminology\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Files From Class: DOWNLOAD: Here are the files we created in class based on our sketch: https:\/\/www.dropbox.com\/s\/q5n75j2ffp1bxxp\/Bonobos-inClass-9.9.19.zip?dl=0Wireframe Sketch: here is a pic of the wireframe from the board. I converted it to a PDF. https:\/\/www.dropbox.com\/s\/vpsbsbs5mvhzvnw\/Bonobos-Wireframe-Sketch-.pdf?dl=0 For the homework you would upload two files like these, the HTML and a Sketch to the Assignment in Blackboard. [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":252,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"portfolio_post_id":0,"portfolio_citation":"","portfolio_annotation":"","openlab_post_visibility":"","footnotes":""},"categories":[10,9,25,15,16],"tags":[28,41,39,40],"class_list":{"0":"post-241","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-css","8":"category-html","9":"category-in-class-information","10":"category-layout","11":"category-planning-and-documentation","12":"tag-css","13":"tag-html","14":"tag-layout","15":"tag-wireframe","16":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/posts\/241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":17,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"predecessor-version":[{"id":889,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/posts\/241\/revisions\/889"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/media\/252"}],"wp:attachment":[{"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openlab.bmcc.cuny.edu\/mmp-240-fall-19-stein\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}