HTML Value Syntax

HTML enumerated syntax

A finite set of keywords maps to states; missing, empty and invalid values can have distinct defaults defined by each attribute. This is not a Boolean presence flag. For draggable, true and false are explicit keywords. This is a value grammar, not a standalone HTML element.

Formal Syntax & Structure

html syntaxhtml
draggable="true" | draggable="false"

Working Example

Example Snippethtml
<p draggable="true">Drag this text</p><p draggable="false">Not draggable by request</p>
HTML Reference