1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Clarify behaviour of self closing tags

This commit is contained in:
jeremy@jermolene.com 2020-11-25 09:44:48 +00:00
parent a81b7fc9f4
commit 3e3f185562

View File

@ -1,6 +1,6 @@
caption: HTML
created: 20131205160816081
modified: 20161021102422842
modified: 20201125094415933
tags: WikiText
title: HTML in WikiText
type: text/vnd.tiddlywiki
@ -22,6 +22,14 @@ To get the content of an HTML element to be parsed in block mode, the opening ta
Without the two linebreaks, the tag content will be parsed in inline mode which means that block mode formatting such as wikitext tables, lists and headings is not recognised.
! Self closing elements
The following tags are treated as 'void'. This means that `<tag>` is treated as if it were `<tag/>`, and that no terminating `</tag>` is needed (if one is provided it will be ignored and treated as plain text).
* `<area>`, `<base>`, `<br>`, `<col>`, `<command>`, `<embed>`, `<hr>`, `<img>`, `<input>`, `<keygen>`, `<link>`, `<meta>`, `<param>`, `<source>`, `<track>`, `<wbr>`
If you dont close any other tag then it will behave as if the missing closing tag were at the end of the tiddler.
! Attributes
In an extension of conventional HTML syntax, attributes of elements/widgets can be specified in several different ways: