{"id":2544,"date":"2023-06-27T04:49:39","date_gmt":"2023-06-27T04:49:39","guid":{"rendered":"https:\/\/codeinsightacademy.com\/blog\/?p=2544"},"modified":"2023-06-27T04:49:43","modified_gmt":"2023-06-27T04:49:43","slug":"html-crash-course","status":"publish","type":"post","link":"https:\/\/codeinsightacademy.com\/blog\/web-designing\/html-crash-course\/","title":{"rendered":"HTML Crash Course"},"content":{"rendered":"\n<h2>Day 1: Introduction to HTML<\/h2>\n\n\n\n<p>Topics:<\/p>\n\n\n\n<ol><li>HTML syntax and structure<\/li><li>HTML tags and elements<\/li><li>Headings, paragraphs, and line breaks<\/li><li>Text formatting with HTML<\/li><li>Creating lists in HTML<\/li><\/ol>\n\n\n\n<p>Assignments:<\/p>\n\n\n\n<ol><li>Create a basic HTML document structure with a title and heading.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My First Webpage&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h1>Welcome to My Webpage&lt;\/h1>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"2\"><li>Write a paragraph describing your favorite hobby using appropriate HTML tags.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Hobbies&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h2>My Favorite Hobby&lt;\/h2>\n    &lt;p>I enjoy playing the guitar in my free time. It's a great way to relax and express my creativity.&lt;\/p>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"3\"><li>Create an ordered list of your top 5 favorite movies.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Favorite Movies&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h2>My Top 5 Favorite Movies&lt;\/h2>\n    &lt;ol>\n        &lt;li>The Shawshank Redemption&lt;\/li>\n        &lt;li>The Godfather&lt;\/li>\n        &lt;li>Pulp Fiction&lt;\/li>\n        &lt;li>The Dark Knight&lt;\/li>\n        &lt;li>Fight Club&lt;\/li>\n    &lt;\/ol>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"4\"><li>Format a piece of text as bold, italic, and underline using HTML tags.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>Formatted Text&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;p>This is &lt;b>bold&lt;\/b> text.&lt;\/p>\n    &lt;p>This is &lt;i>italic&lt;\/i> text.&lt;\/p>\n    &lt;p>This is &lt;u>underlined&lt;\/u> text.&lt;\/p>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"5\"><li>Construct an unordered list of your favorite food items.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Favorite Foods&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h2>My Favorite Foods&lt;\/h2>\n    &lt;ul>\n        &lt;li>Pizza&lt;\/li>\n        &lt;li>Sushi&lt;\/li>\n        &lt;li>Burger&lt;\/li>\n        &lt;li>Chocolate&lt;\/li>\n        &lt;li>Ice Cream&lt;\/li>\n    &lt;\/ul>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<h2>Day 2: Working with Links and Images<\/h2>\n\n\n\n<p>Topics:<\/p>\n\n\n\n<ol><li>Creating hyperlinks with anchor tags<\/li><li>Linking to external websites and internal sections<\/li><li>Inserting images in HTML<\/li><li>Image attributes and alternative text<\/li><\/ol>\n\n\n\n<p>Assignments:<\/p>\n\n\n\n<ol><li>Create a hyperlink that opens a new tab and leads to your favorite website.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Webpage&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h1>Welcome to My Webpage&lt;\/h1>\n    &lt;a href=\"https:\/\/www.example.com\" target=\"_blank\">Visit Example.com&lt;\/a>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"2\"><li>Link an internal section within the same webpage using anchor tags.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Webpage&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h1>Welcome to My Webpage&lt;\/h1>\n    &lt;a href=\"#about\">Jump to About Section&lt;\/a>\n    &lt;h2 id=\"about\">About&lt;\/h2>\n\n\n    &lt;p>This is the About section of my webpage.&lt;\/p>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"3\"><li>Insert an image of your favorite animal with appropriate alt text.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Webpage&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h1>Welcome to My Webpage&lt;\/h1>\n    &lt;img src=\"animal.jpg\" alt=\"A picture of my favorite animal\">\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"4\"><li>Create a gallery of three images using HTML and appropriate attributes.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>Image Gallery&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h2>Image Gallery&lt;\/h2>\n    &lt;img src=\"image1.jpg\" alt=\"Image 1\">\n    &lt;img src=\"image2.jpg\" alt=\"Image 2\">\n    &lt;img src=\"image3.jpg\" alt=\"Image 3\">\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"5\"><li>Add a link around an image that opens another webpage when clicked.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Webpage&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h1>Welcome to My Webpage&lt;\/h1>\n    &lt;a href=\"https:\/\/www.example.com\" target=\"_blank\">\n        &lt;img src=\"image.jpg\" alt=\"Image\">\n    &lt;\/a>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<h2>Day 3: Tables and Forms<\/h2>\n\n\n\n<p>Topics:<\/p>\n\n\n\n<ol><li>Creating tables in HTML<\/li><li>Table rows and cells<\/li><li>Table headers and data<\/li><li>Form elements and input types<\/li><li>Form submission and handling<\/li><\/ol>\n\n\n\n<p>Assignments:<\/p>\n\n\n\n<ol><li>Create a table to display a simple schedule with days of the week and corresponding activities.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>Weekly Schedule&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h2>Weekly Schedule&lt;\/h2>\n    &lt;table>\n        &lt;tr>\n            &lt;th>Day&lt;\/th>\n            &lt;th>Activity&lt;\/th>\n        &lt;\/tr>\n        &lt;tr>\n            &lt;td>Monday&lt;\/td>\n            &lt;td>Gym&lt;\/td>\n        &lt;\/tr>\n        &lt;tr>\n            &lt;td>Tuesday&lt;\/td>\n            &lt;td>Work&lt;\/td>\n        &lt;\/tr>\n        &lt;tr>\n            &lt;td>Wednesday&lt;\/td>\n            &lt;td>Music Lessons&lt;\/td>\n        &lt;\/tr>\n        &lt;tr>\n            &lt;td>Thursday&lt;\/td>\n            &lt;td>Study Group&lt;\/td>\n        &lt;\/tr>\n        &lt;tr>\n            &lt;td>Friday&lt;\/td>\n            &lt;td>Movie Night&lt;\/td>\n        &lt;\/tr>\n    &lt;\/table>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"2\"><li>Create a form with input fields for name, email, and message, and a submit button.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>Contact Form&lt;\/title>\n&lt;\/head>\n&lt;body>\n    &lt;h2>Contact Form&lt;\/h2>\n    &lt;form action=\"submit.php\" method=\"POST\">\n        &lt;label for=\"name\">Name:&lt;\/label>\n        &lt;input type=\"text\" id=\"name\" name=\"name\" required>&lt;br>&lt;br>\n        &lt;label for=\"email\">Email:&lt;\/label>\n        &lt;input type=\"email\" id=\"email\" name=\"email\" required>&lt;br>&lt;br>\n        &lt;label for=\"message\">Message:&lt;\/label>\n        &lt;textarea id=\"message\" name=\"message\" required>&lt;\/textarea>&lt;br>&lt;br>\n        &lt;input type=\"submit\" value=\"Submit\">\n    &lt;\/form>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<h2>Day 4: CSS Styling<\/h2>\n\n\n\n<p>Topics:<\/p>\n\n\n\n<ol><li>CSS syntax and selectors<\/li><li>Applying styles to HTML elements<\/li><li>Working with colors, backgrounds, and borders<\/li><li>Formatting text with CSS<\/li><li>Creating layouts with CSS<\/li><\/ol>\n\n\n\n<p>Assignments:<\/p>\n\n\n\n<ol><li>Style the headings in your webpage using CSS.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Webpage&lt;\/title>\n    &lt;style>\n        h1 {\n            color: blue;\n            font-size: 24px;\n        }\n        h2 {\n            color: green;\n            font-size: 20px;\n        }\n    &lt;\/style>\n&lt;\/head>\n&lt;body>\n    &lt;h1>Welcome to My Webpage&lt;\/h1>\n    &lt;h2>About Me&lt;\/h2>\n    &lt;!-- Rest of the content -->\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"2\"><li>Add a background color and padding to the paragraphs in your webpage using CSS.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Webpage&lt;\/title>\n    &lt;style>\n        p {\n            background-color: lightgray;\n            padding: 10px;\n        }\n    &lt;\/style>\n&lt;\/head>\n&lt;body>\n    &lt;p>This is a paragraph.&lt;\/p>\n    &lt;p>This is another paragraph.&lt;\/p>\n    &lt;!-- Rest of the content -->\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"3\"><li>Create a navigation bar using an unordered list and style it with CSS.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">html\n&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>My Webpage&lt;\/title>\n    &lt;style>\n        ul {\n            list-style-type: none;\n            margin: 0;\n            padding: 0;\n            background-color: #333;\n        }\n        li {\n            display: inline-block;\n            margin-right: 10px;\n        }\n        a {\n            color: white;\n            text-decoration: none;\n            padding: 10px;\n        }\n    &lt;\/style>\n&lt;\/head>\n&lt;body>\n    &lt;ul>\n        &lt;li>&lt;a href=\"#\">Home&lt;\/a>&lt;\/li>\n        &lt;li>&lt;a href=\"#\">About&lt;\/a>&lt;\/li>\n        &lt;li>&lt;a href=\"#\">Services&lt;\/a>&lt;\/li>\n        &lt;li>&lt;a href=\"#\">Contact&lt;\/a>&lt;\/li>\n    &lt;\/ul>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<h2>Day 5: JavaScript Basics<\/h2>\n\n\n\n<p>Topics:<\/p>\n\n\n\n<ol><li>Introduction to JavaScript<\/li><li>Variables and data types<\/li><li>Operators and expressions<\/li><li>Control flow statements (if-else, switch)<\/li><li>Functions and event handling<\/li><\/ol>\n\n\n\n<p>Assignments:<\/p>\n\n\n\n<ol><li>Create a JavaScript function that calculates the sum of two numbers and displays the result.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>Calculator&lt;\/title>\n    &lt;script>\n        function calculateSum() {\n            var num1 = parseInt(document.getElementById('num1').value);\n            var num2 = parseInt(document.getElementById('num2').value);\n            var sum = num1 + num2;\n            document.getElementById('result').innerHTML = \"Sum: \" + sum;\n        }\n    &lt;\/script>\n&lt;\/head>\n&lt;body>\n    &lt;h2>Calculator&lt;\/h2>\n    &lt;input type=\"number\" id=\"num1\" placeholder=\"Enter number 1\">&lt;br>&lt;br>\n    &lt;input type=\"number\" id=\"num2\" placeholder=\"Enter number 2\">&lt;br>&lt;br>\n    &lt;button onclick=\"calculateSum()\">Calculate Sum&lt;\/button>\n    &lt;p id=\"result\">&lt;\/p>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<ol start=\"2\"><li>Create a JavaScript function that validates a form and displays an error message if any field is empty.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n    &lt;title>Form Validation&lt;\/title>\n    &lt;script>\n        function validateForm() {\n            var name = document.getElementById('name').value;\n            var email = document.getElementById('email').value;\n            var message = document.getElementById('message').value;\n\n            if (name === \"\" || email === \"\" || message === \"\") {\n                alert(\"All fields are required!\");\n                return false;\n            }\n        }\n    &lt;\/script>\n&lt;\/head>\n&lt;body>\n    &lt;h2>Contact Form&lt;\/h2>\n    &lt;form action=\"submit.php\" method=\"POST\" onsubmit=\"return validateForm()\">\n        &lt;label for=\"name\">Name:&lt;\/label>\n        &lt;input type=\"text\" id=\"name\" name=\"name\">&lt;br>&lt;br>\n        &lt;label for=\"email\">Email:&lt;\/label>\n        &lt;input type=\"email\" id=\"email\" name=\"email\">&lt;br>&lt;br>\n        &lt;label for=\"message\">Message:&lt;\/label>\n        &lt;textarea id=\"message\" name=\"message\">&lt;\/textarea>&lt;br>&lt;br>\n        &lt;input type=\"submit\" value=\"Submit\">\n    &lt;\/form>\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Day 1: Introduction to HTML Topics: HTML syntax and structure HTML tags and elements Headings, paragraphs, and line breaks Text formatting with HTML Creating lists in HTML Assignments: Create a basic HTML document structure with a title and heading. Write a paragraph describing your favorite hobby using appropriate HTML tags. Create an ordered list of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[37],"tags":[],"_links":{"self":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/2544"}],"collection":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/comments?post=2544"}],"version-history":[{"count":1,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/2544\/revisions"}],"predecessor-version":[{"id":2545,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/2544\/revisions\/2545"}],"wp:attachment":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media?parent=2544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/categories?post=2544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/tags?post=2544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}