Skip to main content

Components & Aliases

Micropage markup has a small set of components, with a few aliases for flexibility and readability. This page lists the canonical syntax and all supported aliases.

Use the canonical forms in new markup, but all aliases shown here are supported and not deprecated.

Structure & headings

PurposeCanonicalAliasesNotes
Section/// section/// hero, /// container, /// htmlSection type is the first line after ///.
Heading 1h1:h:h: is an explicit alias for h1:.
Heading 2–6h2:h6:Standard heading levels.
Paragraphp:bare textIf no prefix is present, a line is treated as a paragraph.

Media

ElementCanonicalAliasesNotes
Imageimg:image:Used with <- for keyword, filename, or URL.
Iconicon:Uses name <- url syntax.

Image references

Use <- with img: or image::

  • Keyword (Unsplash search): img: <- coffee
  • Filename (project file): img: <- hero.png
  • Direct URL: img: <- https://example.com/screenshot.png

Site logo and favicon inside [site] can use shorthands:

  • logo: logo.png (equivalent to img: <- logo.png)
  • favicon: favicon.png (equivalent to img: <- favicon.png)

You can combine image lookup and a click-through URL:

img: Hero <- hero.png -> /pricing

This resolves the image using <- hero.png and treats /pricing as the link target for that image.

ElementCanonicalAliasesNotes
Page linkText -> /pathlink: Text -> /path, a: Text -> /pathAll forms produce a link element.

Forms

Form fields are nested under a form: block.

form: Contact

input: Name*
textarea: Message
submit: Send

Form container

PurposeCanonicalAliasesNotes
Formform:Starts a form; fields that follow are nested inside.

Field elements

Field typeCanonicalAliasesNotes
Text inputinput:textfield:Single-line text.
Text areatextarea:text:Multi-line text.
Selectselect:select: Label [one, two]
Checkboxescheckboxes:multichoice:, multi-choice:Multiple choice; all aliases are fully supported.
Radiosradios:choice:, singlechoice:, single-choice:Single choice; all aliases are fully supported.
Submitsubmit:save:Both create a submit button.

Fields ending in * are required in all forms and aliases.

Buttons

Buttons are links with variants (sizes/styles) controlled by the prefix.

button: Get Started -> /signup
btn-secondary: Learn more -> /features

Button prefixes and variants

PrefixVariantTypical use
button:primaryMain call to action.
btn:primaryShorthand for primary buttons.
btn-secondary:secondarySecondary actions.
btn-info:infoInformational actions.
btn-warning:warningDestructive or cautionary actions.
btn-danger:dangerStrongly destructive actions.

All prefixes above are supported and first-class; choose the variant that best matches the importance of the action.

HTML & small text

ElementCanonicalAliasesNotes
Raw HTML section/// htmlSection type html returns raw HTML.
Inline HTMLhtml:Inline HTML element inside a section.
Small textsmall:Small-print or helper text.