diff --git a/README.md b/README.md index 199ccb5..3cb2b82 100644 --- a/README.md +++ b/README.md @@ -35,34 +35,34 @@ To check some examples with the PDF output see [examples](examples/) folder. ## Supported tags & attributes -HTML tags: - -- **a**: link -- **b**: bold -- **blockquote**: block quotation element -- **br**: new line -- **code**: inline code element -- **del**: strike-through -- **div**: block element -- **em**: italic -- **h1** - **h6**: headings -- **hr**: horizontal line -- **i**: italic -- **ins**: underline -- **img**: image -- **li**: list item -- **mark**: highlight -- **ol**: ordered list -- **p**: block element -- **pre**: preformatted text element -- **s**: strike-through -- **small**: smaller text -- **span**: inline element -- **strong**: bold -- **sub**: subscript element -- **sup**: superscript element -- **u**: underline -- **ul**: unordered list +HTML tags (using MDN definitions): + +- **a**: the Anchor element +- **b**: the Bring Attention To element +- **blockquote**: the Block Quotation element +- **br**: the Line Break element +- **code**: the Inline Code element +- **del**: the Deleted Text element +- **div**: the Content Division element +- **em**: the Emphasis element +- **h1** - **h6**: the HTML Section Heading elements +- **hr**: the Thematic Break (Horizontal Rule) element +- **i**: the Idiomatic Text element +- **ins**: the added text element +- **img**: the Image Embed element +- **li**: the list item element +- **mark**: the Mark Text element +- **ol**: the Ordered List element +- **p**: the Paragraph element +- **pre**: the Preformatted Text element +- **s**: the strike-through text element +- **small**: the side comment element +- **span**: the generic inline element +- **strong**: the Strong Importance element +- **sub**: the Subscript element +- **sup**: the Superscript element +- **u**: the Unarticulated Annotation (Underline) element +- **ul**: the Unordered List element CSS attributes (dimensional units are ignored and considered in pixel): diff --git a/examples/elements.html b/examples/elements.html new file mode 100644 index 0000000..d1497b5 --- /dev/null +++ b/examples/elements.html @@ -0,0 +1,44 @@ + + + + Supported elements + + + tag A: link
+ tag B: bold
+ tag Blockquote:
block quotation element
+ tag Br: new line
+ tag Code: inline code element
+ tag Del: strike-through
+ tag Div:
block element
+ tag Em: italic
+ tag H1:

heading h1

+ tag H2:

heading h2

+ tag H3:

heading h3

+ tag H4:

heading h4

+ tag H5:
heading h5
+ tag H6:
heading h6
+ tag Hr: horizontal line
+ tag I: italic
+ tag Ins: underline
+ tag Img: image
+ tag Mark: highlight
+ tag Ol:
    +
  1. ordered list
  2. +
  3. tag Li: list item (ordered)
  4. +
+ tag P:

block element

+ tag Pre:
preformatted text element
+ tag S: strike-through
+ tag Small: smaller text
+ tag Span: inline element
+ tag Strong: bold
+ tag Sub: subscript element
+ tag Sup: superscript element
+ tag U: underline
+ tag Ul: + + diff --git a/examples/elements.pdf b/examples/elements.pdf new file mode 100644 index 0000000..081cfac Binary files /dev/null and b/examples/elements.pdf differ diff --git a/examples/misc_elements.html b/examples/misc_elements.html deleted file mode 100644 index 611caf1..0000000 --- a/examples/misc_elements.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - Misc elements - - -
-

Misc elements

- - i element - b element - u element - -
- -
- -
div element
-
div (2) element
- span element - span (2) element - -
The Block Quotation element
- -
- - - -

New page

- - HTML entities: € × ÷ ½ « » © - -

p element

- mark element - del element - - a Google link - - Line1
Line2
Line3 - -
- Some content in a div - sup content - more div content - sub content -
- - This is an inline code element. -
  this is  pre element  
- last line. - -
- Position: absolute -
-
- - diff --git a/examples/misc_elements.pdf b/examples/misc_elements.pdf deleted file mode 100644 index 519fe4c..0000000 Binary files a/examples/misc_elements.pdf and /dev/null differ diff --git a/examples/random_content.html b/examples/random_content.html index 1d30ed7..f91c378 100644 --- a/examples/random_content.html +++ b/examples/random_content.html @@ -4,12 +4,22 @@ Random content -

A test document (with the supported elements)

- This is italic, underline and bold, bold italic +

Random content (with various elements and styles)

+ + Test inline elements: + this is italic, underline and bold, bold italic +


+
div element
+
div (2) element
+ span element + span (2) element + +
The Block Quotation element
+
text-align: left
@@ -26,7 +36,7 @@

A test document (with the supported elements)


Begin of list -