HTML Attributes
Learn how HTML attributes work: syntax and quoting rules, required vs optional attributes, boolean attributes, data-* attributes, and common mistakes. A clear, example-driven guide for beginners.
Learn how HTML attributes work: syntax and quoting rules, required vs optional attributes, boolean attributes, data-* attributes, and common mistakes. A clear, example-driven guide for beginners.
Learn how character encoding works in HTML. Understand ASCII, Unicode, and UTF-8, why the meta charset tag matters, how to fix garbled text (mojibake), and how to save your files correctly. Beginner-friendly with examples.
Learn how to write HTML comments correctly. Understand comment syntax, conditional comments, why comments are not private, common mistakes, and best practices for documenting your HTML code.
Understand HTML elements in depth: how tags and content combine to form elements, void elements, nested elements, block vs inline elements, and the difference between elements and tags. Beginner-friendly with examples.
Learn HTML entities and character references. Understand why reserved characters like less-than and ampersand need escaping, named vs numeric entities, common symbols like copyright and non-breaking space, and best practices with UTF-8.
Learn HTML global attributes that work on every element: id, class, style, title, lang, dir, hidden, tabindex, contenteditable, draggable, data-*, and more. Clear examples, best practices, and common mistakes for beginners.
Learn how HTML nesting works: parent, child, and sibling relationships, correct closing order, invalid nesting patterns, how browsers auto-correct mistakes, and best practices for clean, indented, valid HTML.
Master the core syntax rules of HTML: tags, elements, attributes, global attributes, nesting, comments, character encoding, entities, and whitespace. A complete beginner-friendly module by CodeHarborHub.
Learn what HTML tags are, how opening and closing tags work, the difference between tags and elements, tag naming rules, case sensitivity, and how to avoid common tag mistakes. Beginner-friendly with examples.
Learn how HTML handles whitespace. Understand whitespace collapsing, line breaks, the br and pre elements, non-breaking spaces, the CSS white-space property, and how to format your code cleanly without affecting the rendered page.