{"id":156,"date":"2026-04-13T07:16:29","date_gmt":"2026-04-13T07:16:29","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=156"},"modified":"2026-04-27T17:31:09","modified_gmt":"2026-04-27T17:31:09","slug":"common-mistakes","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/","title":{"rendered":"Common Mistakes"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In HTML development, beginners often make small mistakes that can affect how a webpage works or looks. Understanding these mistakes helps you write better and cleaner code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Missing Closing Tags<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">One common mistake is forgetting to close HTML tags. This can break the structure of the page or cause layout issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;p&gt;This is a paragraph &lt;!&#8211; Missing closing &lt;\/p&gt; tag &#8211;&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Incorrect Nesting<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Tags must be properly nested inside each other. Incorrect nesting can cause unexpected results.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Wrong Nesting<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;b&gt;&lt;i&gt;Text&lt;\/b&gt;&lt;\/i&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Using Wrong File Paths<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect image or link paths can lead to broken images or links not working.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;img src=&#8221;image.jpg&#8221;&gt; If the file is not in the correct location, it will not display.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Not Using Alt Attributes<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Forgetting the alt attribute in images affects accessibility and SEO.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;img src=&#8221;photo.jpg&#8221;&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Overusing Non-Semantic Tags<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Using too many div tags instead of semantic tags like header, section, and footer makes code harder to understand.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Not Following Proper Structure<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Skipping important structure like doctype, head, or body can cause browser issues.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Always start with: &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;\/head&gt; &lt;body&gt; &lt;\/body&gt; &lt;\/html&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Ignoring Indentation<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Poorly formatted code is difficult to read and maintain.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Common mistakes in HTML include missing tags, incorrect nesting, wrong paths, and poor structure. Avoiding these mistakes helps you write clean, professional, and error-free code.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/html\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">HTML Intermediate > HTML Best Practices > Common Mistakes<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1777311002605\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":49,"template":"","class_list":["post-156","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Common Mistakes - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn common HTML mistakes like missing tags, wrong paths, and nesting issues. Write clean, error-free, professional code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Common Mistakes - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn common HTML mistakes like missing tags, wrong paths, and nesting issues. Write clean, error-free, professional code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-27T17:31:09+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/common-mistakes\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/common-mistakes\\\/\",\"name\":\"Common Mistakes - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-13T07:16:29+00:00\",\"dateModified\":\"2026-04-27T17:31:09+00:00\",\"description\":\"Learn common HTML mistakes like missing tags, wrong paths, and nesting issues. Write clean, error-free, professional code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/common-mistakes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/common-mistakes\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/common-mistakes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Intermediate > HTML Best Practices > Common Mistakes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\",\"name\":\"HTML learning mastery\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/html\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Common Mistakes - HTML learning mastery","description":"Learn common HTML mistakes like missing tags, wrong paths, and nesting issues. Write clean, error-free, professional code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/","og_locale":"en_US","og_type":"article","og_title":"Common Mistakes - HTML learning mastery","og_description":"Learn common HTML mistakes like missing tags, wrong paths, and nesting issues. Write clean, error-free, professional code.","og_url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-27T17:31:09+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/","url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/","name":"Common Mistakes - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-13T07:16:29+00:00","dateModified":"2026-04-27T17:31:09+00:00","description":"Learn common HTML mistakes like missing tags, wrong paths, and nesting issues. Write clean, error-free, professional code.","breadcrumb":{"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/common-mistakes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"HTML Intermediate > HTML Best Practices > Common Mistakes"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/html\/#website","url":"https:\/\/gigz.pk\/html\/","name":"HTML learning mastery","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/html\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/media?parent=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}