Skip to content

HTML 5.2 elements in JSON format as categorized by the W3C Working Draft.

Notifications You must be signed in to change notification settings

marcobarrios-fi/html5-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML5 Elements

HTML 5.2 elements in JSON format as categorized by the W3C Working Draft.
The dataset can be used for serialization or validation purposes.

Files

src/html5-elements.php
PHP file for generating the JSON data file.

dist/<version>/html5-elements-<version>.json
Formatted version of the JSON data file.

dist/html5-elements-<version>.min.json
Minified version of the JSON data file.

Content

DOM Content Models

  • Metadata Content
  • Flow Content
  • Sectioning Content
  • Heading Content
  • Phrasing Content
  • Embedded Content
  • Interactive Content
  • Palpable Content
  • Script-Supporting Elements

HTML Elements

  • The HTML Element
  • Document Metadata
  • Sections
  • Grouping Content
  • Text-Level Semantics
  • Edits
  • Embedded Content
  • Links
  • Tabular Data
  • Forms
  • Interactive Elements
  • Scripting
  • Disabled Elements
  • All Elements (Non-Standard)

All Elements is a non-standard collection of all HTML elements.

HTML Syntax

  • Void Elements
  • Template Elements
  • Raw Text Elements
  • Escapable Raw Text Elements
  • Foreign Elements

Non-Conforming Features

  • Obsolete Elements
  • Draft Elements

Other

The minified version of the data file is generated with the following command:
php src/html5-elements.php > build/html5-elements.min.json

Notice that sufficient permissions are required to run the command.

The formatted version has been generated with the JSON Formatter and Validator by Curious Concept because the build-in json_decode function in PHP accepts a JSON_PRETTY_PRINT flag as the second parameter but uses four spaces for indentation.

About

HTML 5.2 elements in JSON format as categorized by the W3C Working Draft.

Topics

Resources

Stars

Watchers

Forks

Languages