Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeNickaloff committed Mar 7, 2024
1 parent f877d3d commit 84ba584
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ I**ntroduction to Quick HTML: *The Quick Inline HyperText Markup Language***

- Attributes: Attributes are defined by specifying the attribute name followed by a colon (:) followed by the value surrrounded in double quotes.

- The value should be in the same form as traditional inline HTML tags -- style attributes are not allowed inside of qHTML -- they must be provided in a seperate style tag outside of the qhtml.
- The value should be in the same form as traditional inline HTML tags
- All attributes are supported as long as they are valid attributes for a specific tag.
- You can also use the content attribute on any tag to set the "textcontent" of that tag. (not the HTML content).
- other ways to set text content are through the 'contents', 'text', 'textcontents', and 'innertext' keywords.
Expand Down Expand Up @@ -65,11 +65,8 @@ Important Points:

- The content/text attribute is special in qHTML. It represents the inner text of an element.

- All properties are surrounded with double-quotes and cannot contain any CSS code.
- All properties are surrounded with double-quotes and can have anything within the quotes
- Scripts do not require a 'text' or 'content' property.

- Style attributes are ignored

- Scripts behave the same as any other script tags, supporting defer, inline, and immediate execution.
- Modules are not supported.

Expand Down Expand Up @@ -116,7 +113,7 @@ qHTML:
<q-html>
p,center,a {
href: "https://www.example.com"
content: "Visit Example"
text: "Visit Example"
}
</q-html>

Expand All @@ -126,6 +123,5 @@ Converted to HTML:


Currently planned features for later release:

- style tag parsing
- native javascript parsing

- Re-usable Custom Component definitions from q-html

0 comments on commit 84ba584

Please sign in to comment.