Single post

jump to replies

smolweb-validator is a new CLI tool to check if a web page respects smolweb HTML subset.

This tool uses jsoup HTML5 parser, a java library.

Exemple :

$ ./smolweb-validate https://adele.pages.casa/md/

πŸ” Validating: https://adele.pages.casa/md/
━━━━━━━━━━━━━━

πŸ“Š VALIDATION SUMMARY
━━━━━━━━━━━━━━
βœ… VALID: This page conforms to the smolweb HTML subset!

πŸ“ˆ Statistics:
  Total elements: 71
  Valid elements: 71
  Invalid elements: 0

━━━━━━━━━━━━━━
Validation complete.

#smolweb #smallweb

5 replies

back to top

@vulonkaaz

s tag is not part of the W3C XHTML Basic, unlike b and i.

As explained in the smolweb HTML subset guide, this subset is inspired by a previous work proposed by W3C: the XHTML Basic.

The XHTML Basic document type includes the minimal set of modules required to be an XHTML host language document type, and in addition it includes images, forms, basic tables, and object support. It is designed for Web clients that do not support the full set of XHTML features; for example, Web clients such as mobile phones, PDAs, pagers, and set top boxes. The document type is rich enough for content authoring.

For a better compatibility, it is not a good idea to specify the XHTML Basic 1.1 DTD in the doctype for smolwebsites.

Some deprecated tags (accronym, big, tt) have been removed from this list. Object and param tags have been banned to avoid inclusion of specific code such as Java applets.

As specify in Guidelines, semantics tags issued in more recent HTML versions have been added to propose a better accessibility.

https://smolweb.org/specs/index.html

https://www.w3.org/TR/xhtml-basic/#s_xhtmlmodules