2

Does anyone know of an API or an easy way to get information about the HTML spec itself? I'd like to create something that listed all of the current current elements and their specific attributes, etc.

The only way I know is if I pulled the source of the spec and manually scraped through it, which would be incredibly tedious.

Please let me know if you know of any easier ways.

Ian Storm Taylor
  • 8,520
  • 12
  • 55
  • 72

1 Answers1

4

Use the DTD.

Example: http://www.w3.org/TR/html4/sgml/dtd.html

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445