HTML Value Syntax

HTML space separated tokens syntax

Tokens are separated by ASCII whitespace, not commas. Leading/trailing whitespace is allowed; individual attributes define whether order, uniqueness and case matter. Class names and rel keywords have different semantics. This is a value grammar, not a standalone HTML element.

Formal Syntax & Structure

html syntaxhtml
class="card featured"

Working Example

Example Snippethtml
<style>.card.featured{border:1px solid;padding:8px}</style><p class="card featured">Featured card</p>
HTML Reference