Elements

A demo of Markdown and HTML includes

Elements

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Heading Level 1 - Main Title

This is a paragraph demonstrating regular paragraph text. It contains multiple sentences to show how paragraphs flow and wrap naturally. Paragraphs are the foundation of written content and provide the basic structure for conveying information to readers.

Heading Level 2 - Section Title

This paragraph follows an H2 heading. H2 headings are used for major sections within a document. They help organize content into logical chunks and improve readability.

Here is another paragraph right after the previous one. This demonstrates how paragraphs stack when they appear consecutively without any other elements between them. The spacing should be consistent and readable.

And here is a third consecutive paragraph. This pattern of multiple paragraphs in a row is very common in articles, blog posts, and other written content. It’s important to test how these look with your current typography settings.

Heading Level 3 - Subsection

This paragraph follows an H3 heading. H3 headings are used for subsections within H2 sections, providing further organization and hierarchy to the content structure.

Heading Level 4 - Sub-subsection

This paragraph follows an H4 heading. H4 headings provide even more granular organization, breaking down H3 sections into smaller, more specific topics.

Heading Level 5 - Minor Subsection

This paragraph follows an H5 heading. H5 headings are used for very specific subdivisions, though they are less commonly used in most documents.

Heading Level 6 - Smallest Subsection

This paragraph follows an H6 heading. H6 is the smallest heading level and is rarely used, but it’s available when you need the deepest level of content hierarchy.

A small element

A link

This paragraph demonstrates various text formatting options within a single block. You can see italic text at the beginning, and more italic text later in the sentence. This shows how formatting can be applied throughout a paragraph.

This second paragraph contains a link to the homepage embedded within the text, along with bold text for emphasis. You can also use italicised text for subtle emphasis and inline code to reference technical terms or code elements within regular paragraph text.

  1. Item one
  2. Item two
  3. Item three
  4. Item four
  5. Item five

A simple blockquote

Some HTML…

<blockquote cite="http://www.imdb.com/title/tt0284978/quotes/qt1375101">
  <p>You planning a vacation, Mr. Sullivan?</p>
  <footer>
    <a href="http://www.imdb.com/title/tt0284978/quotes/qt1375101">Sunways Security Guard</a>
  </footer>
</blockquote>

…CSS…

blockquote {
  text-align: center;
  font-weight: bold;
}
blockquote footer {
  font-size: .8rem;
}

…and JavaScript

const blockquote = document.querySelector("blockquote")
const bolden = (keyString, string) =>
  string.replace(new RegExp(keyString, 'g'), '<strong>'+keyString+'</strong>')

blockquote.innerHTML = bolden("Mr. Sullivan", blockquote.innerHTML)

Single line of code


HTML Includes

Buttons

<div class="button-row">
  <a href="https://www.bitcointrader.com" class="button">A button</a>
  <a href="https://twitter.com/BitcoinTrader" class="button button--x">{% include icon.html id="x-twitter" title="X" %} A button with leading icon</a>
  <a href="https://www.bitcointrader.com" class="button">A button with trailing icon {% include icon.html id="link" title="Link" %}</a>
</div>

Icon include

Navigation X (Twitter) Link RSS External Link
<div class="icon-row">
  {% include icon.html id="nav" title="Navigation" %}
  {% include icon.html id="x-twitter" title="X (Twitter)" %}
  {% include icon.html id="facebook" title="Facebook" %}
  {% include icon.html id="link" title="Link" %}
  {% include icon.html id="rss" title="RSS" %}
  {% include icon.html id="external-link" title="External Link" %}
</div>

Video include

{% include video.html id="zrkcGL5H3MU" title="Siteleaf tutorial video" %}

Image includes

Image with caption
Image with caption
Right aligned image
Right aligned image
Left aligned image
Left aligned image
Image with just alt text
{% include figure.html image="/assets/images/placeholder_894-600x800.jpg" caption="Image with caption" width="300" height="800" %}

{% include figure.html image="/assets/images/placeholder_894-600x800.jpg" caption="Right aligned image" position="right" width="300" height="800" %}

{% include figure.html image="/assets/images/placeholder_894-600x800.jpg" caption="Left aligned image" position="left" width="300" height="800" %}

{% include figure.html image="/assets/images/placeholder_894-1600x800.jpg" alt="Image with just alt text" %}

Unordered Lists

Unordered lists are great for presenting items without a specific order or sequence:

Nested unordered lists demonstrate hierarchy:


Ordered Lists

Ordered lists are perfect for step-by-step instructions or ranked items:

  1. First step in a process
  2. Second step that might contain longer text to show how ordered lists handle content that spans multiple lines
  3. Third step
  4. Fourth step with an embedded link
  5. Fifth step with emphasis and italics

Nested ordered lists show complex procedures:

  1. Main step one
  2. Main step two
    1. Sub-step 2.1
    2. Sub-step 2.2
      1. Sub-sub-step 2.2.1
      2. Sub-sub-step 2.2.2
    3. Sub-step 2.3
  3. Main step three

Mixed List Types

Lists can be mixed for complex structures:

  1. First ordered item
  2. Second ordered item with nested unordered list:
    • Unordered sub-item one
    • Unordered sub-item two
  3. Third ordered item

Text Formatting

This paragraph demonstrates various text formatting options. You can use bold text for emphasis, italic text for subtle emphasis, and bold italic text for strong emphasis. You can also use inline code to reference code elements or technical terms.

Links can be inline links or external links that open in a new tab. Links are essential for connecting related content and providing additional resources.


Blockquotes

Blockquotes are used to highlight quoted text or important statements:

This is a blockquote. It typically contains quoted text, important statements, or highlighted information. Blockquotes are visually distinct from regular paragraphs and help draw attention to specific content.

Blockquotes can contain multiple paragraphs and other elements like bold text and links.

This is a second paragraph within the same blockquote, demonstrating how blockquotes can span multiple paragraphs.


Code Blocks

Code blocks are used to display code snippets or technical content:

function example() {
  console.log("This is a code block");
  return true;
}

Code blocks preserve formatting and are useful for displaying:


Horizontal Rules

Horizontal rules provide visual separation between sections:


This paragraph appears after a horizontal rule, demonstrating how horizontal rules create visual breaks in content.


Tables

Tables are useful for presenting structured data:

Column One Column Two Column Three
Row one, cell one Row one, cell two Row one, cell three
Row two, cell one Row two, cell two Row two, cell three
Row three, cell one Row three, cell two Row three, cell three

Definition Lists

Definition lists pair terms with their definitions:

Term One
Definition for term one, which can span multiple lines and contain other elements like bold text and links.
Term Two
Definition for term two, providing another example of how definition lists work.
Term Three
Definition for term three, demonstrating that definition lists can have multiple terms and definitions.

Combined Elements

This section demonstrates how different elements work together:

  1. First, we have an ordered list item.
  2. Second, we have another item with nested content:
    • Unordered sub-item
    • Another unordered sub-item with italic text
  3. Third, we reference inline code within a list.

A blockquote can contain lists:

  • Item one in quoted list
  • Item two in quoted list

This final paragraph wraps up the typography demonstration, showing how all these elements work together to create rich, well-structured content that is both readable and accessible.