{"id":3019,"date":"2024-03-05T02:07:19","date_gmt":"2024-03-05T02:07:19","guid":{"rendered":"https:\/\/acmgd.info\/id1\/?p=3019"},"modified":"2025-10-23T14:59:40","modified_gmt":"2025-10-23T14:59:40","slug":"in-class-coding-exercise","status":"publish","type":"post","link":"https:\/\/acmgd.info\/id1\/in-class-coding-exercise\/","title":{"rendered":"In-Class Coding Exercise: Getting Started in VSC"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To start coding your Type Specimen project open Studio Visual Code and follow the directions below. By the end of this exercise you will have a basic HTML file and the start to your coded specimen project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">+  Create a new HTML file by opening a blank document and saving it with a &#8220;.html&#8221; extension<br>+  Start the HTML document by typing&nbsp;<code>&lt;!DOCTYPE html&gt;<\/code>&nbsp;to indicate the document type.<br>+  Next, create the HTML opening and closing tags&nbsp;<code>&lt;html&gt;<\/code>&nbsp;and&nbsp;<code>&lt;\/html&gt;<\/code>.<br>+  Inside the&nbsp;<code>&lt;html&gt;<\/code>&nbsp;tags, create the&nbsp;<code>&lt;head&gt;<\/code>&nbsp;section with opening and closing tags.<br>+ Inside the&nbsp;<code>&lt;head&gt;<\/code>&nbsp;section, create the&nbsp;<code>&lt;title&gt;<\/code>&nbsp;tags and give your document a title.<br>+ Inside the&nbsp;<code>&lt;body&gt;<\/code>&nbsp;section, add your content using HTML tags such as&nbsp;<code>&lt;h1&gt;<\/code>&nbsp;for headings,&nbsp;<code>&lt;p&gt;<\/code>&nbsp;for paragraphs,&nbsp;<code>&lt;a&gt;<\/code>&nbsp;for links, etc.<br>+ Save the file.<br>+ Open the file in a web browser to view the rendered HTML document.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;!DOCTYPE&nbsp;html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;title&gt;Page Title&lt;\/title&gt;<br>&lt;\/head&gt;<br>&lt;body&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;h1&gt;This is a Heading&lt;\/h1&gt;<br>&lt;p&gt;This is a paragraph.&lt;\/p&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;\/body&gt;<br>&lt;\/html&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Use W3Schools and your HTML&amp;CSS Handbook for reference<\/strong><br>Getting Started:<br><a href=\"https:\/\/htmlandcssbook.com\/code-samples\/chapter-01\/\">Duckett HTML &amp; CSS handbook: Chapter 1<\/a><br><a href=\"https:\/\/htmlandcssbook.com\/code-samples\/chapter-08\/\">Duckett HTML &amp; CSS handbook: Chapter 8<\/a><br><a href=\"https:\/\/www.w3schools.com\/html\/\">HTML Tutorial: W3Schools<\/a><br><a href=\"https:\/\/www.w3schools.com\/html\/html_intro.asp\">HTML Introduction<\/a><br><a href=\"https:\/\/www.w3schools.com\/html\/html_basic.asp\">HTML Basics<\/a><br><a href=\"https:\/\/www.w3schools.com\/html\/html_elements.asp\">HTML Elements<\/a><br><a href=\"https:\/\/www.w3schools.com\/html\/html_attributes.asp\">HTML Attributes<\/a> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Text:<br><a href=\"https:\/\/htmlandcssbook.com\/code-samples\/chapter-02\/\">Duckett HTML &amp; CSS handbook: Chapter 2<\/a><br><a href=\"https:\/\/htmlandcssbook.com\/code-samples\/chapter-12\/\">Duckett HTML &amp; CSS handbook: Chapter 12 (controlling text)<\/a><br><a href=\"https:\/\/www.w3schools.com\/html\/html_formatting.asp\">W3Schools: Formatting <\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Setting up your CSS<\/strong><br>In Studio Visual Code create a new file<br>+ Save the CSS file with a .css extension, such as &#8220;styles.css&#8221;.<br>+ Add some basic styling to the file:<br><br>body { <br>font-family: Arial, sans-serif; <br>background-color: #f0f0f0; <br>color: #333; } <br>h1 { <br>font-size: 24px; <br>color: #007bff; }<br><br>+ Link the CSS file to your HTML file by adding the following line in the head section of your HTML file: <br>&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;styles.css&#8221;&gt;<br>+ Make sure that the file path in the href attribute matches the location and name of your CSS file.<br>+ You can now add additional CSS rules as needed to style specific elements on your website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Getting Started:<br><a href=\"https:\/\/htmlandcssbook.com\/code-samples\/chapter-10\/\">Duckett HTML &amp; CSS: Chapter 10<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Linking your CSS:<br><a href=\"https:\/\/www.w3schools.com\/css\/css_howto.asp\">W3Schools: How To<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Site Navigation:<br><a href=\"https:\/\/www.w3schools.com\/css\/css_navbar.asp\">W3Schools: CSS Navigation <\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Layout:<br><a href=\"https:\/\/www.w3schools.com\/css\/css_boxmodel.asp\">W3Schools: The Box Model (Div Elements)<\/a><br><a href=\"https:\/\/www.w3schools.com\/css\/css_website_layout.asp\">W3Schools: Website Layout<\/a><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To start coding your Type Specimen project open Studio Visual Code and follow the directions below. By the end of this exercise you will have a basic HTML file and the start to your coded specimen project. + Create a new HTML file by opening a blank document and saving it with a &#8220;.html&#8221; extension+ [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-3019","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7RXPP-MH","_links":{"self":[{"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/posts\/3019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/comments?post=3019"}],"version-history":[{"count":4,"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/posts\/3019\/revisions"}],"predecessor-version":[{"id":3024,"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/posts\/3019\/revisions\/3024"}],"wp:attachment":[{"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/media?parent=3019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/categories?post=3019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/acmgd.info\/id1\/wp-json\/wp\/v2\/tags?post=3019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}