From c79106fe5bdf9d2850ed9aa68e579747c1dc3a93 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Mon, 21 Feb 2022 15:23:38 +0000 Subject: [PATCH] Add docs --- .../tiddlers/wikitext/HTML in WikiText.tid | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid b/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid index d510c3d08..db6f00429 100644 --- a/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid +++ b/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid @@ -58,6 +58,26 @@ In an extension of conventional HTML syntax, attributes of elements/widgets can * a transclusion of a [[macro/variable|Macros in WikiText]] * as the result of a [[Filter Expression]] +!! Style Attributes + +<<.from-version "5.2.2">> TiddlyWiki supports the usual HTML ''style'' attribute for assigning CSS styles to elements: + +``` +
Hello
+``` + +In an extension to HTML, TiddlyWiki also supports accessing individual CSS styles as independent attributes. For example: + +``` +
Hello
+``` + +The advantage of this syntax is that it simplifies assigning computed values to CSS styles. For example: + +``` +
Hello
+``` + !! Literal Attribute Values Literal attribute values can use several different styles of quoting: