Skip to content

A machine-readable overview of tags used on the web.

License

Notifications You must be signed in to change notification settings

nonstrict-hq/WebTags

Repository files navigation

WebTags

A machine-readable overview of tags used on the web.

What is WebTags?

WebTags is a tool generating a JSON file describing all elements, attributes and predefined attribute values for multiple web browser specifications like HTML, SVG and MathML. The JSON is generated directly from spec data so it's always up to date.

You can use this data to build other tools from, like a DSL, validator or autocomplete scripts.

How to use

You have multiple options:

Data sources

All data is pulled from https://w3c.github.io/webref/ which in turn parses most of the web specs published by W3C and WhatWG every 6 hours and published as JSON. This format is pretty good, but still not super easy to use. By default we parse the HTML, SVG2 and MathML Core spec and use the curated version of the webref data.

Why not use alternative X?

Most of the sources online are not easily machine readable, are not generated from the spec or unclearly licensed.

The most notable exceptions are:

  • Webref not super easy to use, but otherwise excellent. (WebTags uses this as its main data source.)
  • Caniuse contains a lot of info, but unclear how it is updated and a lot of noise.
  • MDN very complete and high quality, but very hard to parse.

Credits

WebTags is an Open Source project from Nonstrict. Created by Mathijs Kadijk and Tom Lokhorst.

License

WebTags licensed under MIT License.

Generated content is under the license of the respective owners:

About

A machine-readable overview of tags used on the web.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published