Transforming Markup into Semantics with Style #4
AdamSobieski
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Introduction
Using additive cascade, Web developers could use style selectors to additively attach semantic content to elements and/or documents, effectively transforming markup into semantics with style.
Examples
Example 1
Here is a simple example showing how one might go about using CSS selectors to transform an HTML element into semantic content. The example utilizes an
aboutproperty to attach semantic content to an element-level graph.Example 2
Here is a more complex example showing how one might go about using CSS selectors to transform a simple HTML table into semantic content. The example utilizes a
document-aboutproperty to attach semantic content to a document-level graph, rather than storing it in per-element graphs.Referencing Transformation Stylesheets with Metadata
Perhaps Web developers would desire to be able to separate and reference content-transformation stylesheets separately from other styling-related stylesheets. If so, perhaps something like one of the following could be of use:
Conclusion
What do you think about these ideas? Thank you.
All reactions