Skip to main content

10 docs tagged with "syntax"

View all tags

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.

HTML Character Encoding

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.

HTML Comments

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.

HTML Elements

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.

HTML Entities

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.

HTML Global Attributes

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.

HTML Nesting

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.

HTML Syntax

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.

HTML Tags

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.

HTML Whitespace

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.