HTML concept: html-parser
The HTML parser turns an encoded input stream into a DOM document through tokenization and stateful tree construction, with precisely defined recovery for many errors.
CKTIS / HTML
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The HTML parser turns an encoded input stream into a DOM document through tokenization and stateful tree construction, with precisely defined recovery for many errors.
Content language and base text direction are separate inherited semantic properties used for pronunciation, hyphenation, glyph choice, and the Unicode bidirectional algorithm.
HTML loading performance depends on resource discovery, fetch priority, deferral, decoding, and reserved layout space; most controls are hints, not timing guarantees.
HTML media elements manage resource selection, buffering, a timeline, playback, and timed tracks through asynchronous state machines.
HTML metadata describes the document and supplies browser processing inputs: title, encoding, base URL, policy, styles, scripts, and relationships to resources.
HTML navigation covers URL resolution, hyperlink activation, target navigable selection, opener/referrer policy, and updates to documents and session history.
Progressive enhancement begins with useful HTML and adds features without making the baseline path depend on script.
A relative URL describes a target against a document base URL, so identical text can resolve differently at another location.
Responsive HTML gives the browser image candidates and conditions so selection can fit viewport and display density.
HTML security mechanisms constrain embedded capabilities and new-context relationships, but they do not sanitize untrusted content.
HTML semantics is the defined meaning of elements, attributes, and values, independent of their current visual appearance.
HTML tables describe data whose meaning comes from row-column intersections, not merely from visual alignment.
HTML describes the meaning of text fragments, while typeface, size, weight, and spacing belong to CSS.
Void elements are a closed HTML set: they accept no children and have no end tags in HTML syntax.
The `capture` attribute on a file input hints how to create a new media file. For photos and videos, `user` prefers a camera facing the user, while `environment` prefers one facing away.
`controlslist` is a hint for the browser’s built-in player. `nodownload` can hide a download option, while `noplaybackrate` is non-standard. Neither protects the media file.
Compare the live DOM, resulting CSS values, and the semantics exposed to assistive technology. Inspect role, name, state, and relations, then try a temporary DOM edit.
HTML comments let you leave notes in the source or temporarily disable a piece of markup without deleting it. Browsers do not display comments on the page, but readers can still find them in the source.
The anchor element represents a hyperlink when it has a destination and otherwise remains a position for a potential link.
The abbreviation element marks an abbreviation or acronym in prose without prescribing a pronunciation or visual style.
The contact element identifies contact information for the author or owner of the nearest self-contained section, not any postal address.
The void area element defines a clickable image-map region through its geometry, destination, and text alternative.
The article element represents a self-contained composition that can be independently distributed or reused.
The aside element marks content only indirectly related to its surrounding material, which can be separated without losing the main flow.