rsx! macro. All elements are type-safe and come with comprehensive documentation.
Document Metadata
base
The<base> element specifies the base URL to use for all relative URLs in a document.
href, target
Reference: MDN
head
The<head> element contains machine-readable information (metadata) about the document.
link
The<link> element specifies relationships between the current document and an external resource.
href, rel, type, crossorigin, hreflang, media, sizes, title, integrity, disabled, referrerpolicy, fetchpriority, blocking, as
Reference: MDN
meta
The<meta> element represents metadata that cannot be represented by other HTML meta-related elements.
charset, content, http_equiv, name, property
Reference: MDN
style
The<style> element contains style information for a document.
type, media, nonce, title
Reference: MDN
title
The<title> element defines the document’s title shown in the browser’s title bar or page tab.
Sectioning Root
body
The<body> element represents the content of an HTML document.
Content Sectioning
address
The<address> element indicates contact information for a person or organization.
article
The<article> element represents a self-contained composition in a document.
aside
The<aside> element represents content tangentially related to the content around it.
footer
The<footer> element represents a footer for its nearest sectioning content or root element.
header
The<header> element represents introductory content, typically a group of introductory or navigational aids.
h1, h2, h3, h4, h5, h6
The heading elements represent six levels of section headings.main
The<main> element represents the dominant content of the document body.
nav
The<nav> element represents a section of navigation links.
section
The<section> element represents a generic standalone section of a document.
Text Content
blockquote
The<blockquote> element indicates that the enclosed text is an extended quotation.
cite
Reference: MDN
div
The<div> element is a generic container for flow content.
dl, dt, dd
Description list elements for term-description pairs.figcaption
The<figcaption> element represents a caption or legend for a figure.
figure
The<figure> element represents self-contained content, potentially with an optional caption.
Reference: MDN
hr
The<hr> element represents a thematic break between content.
li
The<li> element represents an item in a list.
value (for ordered lists)
Reference: MDN
ol
The<ol> element represents an ordered list of items.
reversed, start, type
Reference: MDN
p
The<p> element represents a paragraph.
pre
The<pre> element represents preformatted text.
ul
The<ul> element represents an unordered list of items.
Inline Text Semantics
a
The<a> element creates a hyperlink.
download, href, hreflang, target, type, ping, rel
Reference: MDN
abbr
The<abbr> element represents an abbreviation or acronym.
b
The<b> element draws attention to text without indicating extra importance.
br
The<br> element produces a line break.
code
The<code> element displays text as computer code.
language
Reference: MDN
em
The<em> element marks text with stress emphasis.
i
The<i> element represents text in an alternate voice or mood.
kbd
The<kbd> element represents keyboard input.
mark
The<mark> element represents highlighted text.
small
The<small> element represents side comments and fine print.
span
The<span> element is a generic inline container.
strong
The<strong> element indicates strong importance.
time
The<time> element represents a specific period in time.
datetime
Reference: MDN
Image and Multimedia
audio
The<audio> element embeds sound content.
autoplay, controls, crossorigin, muted, preload, src, loop
Reference: MDN
img
The<img> element embeds an image.
alt, crossorigin, decoding, height, ismap, loading, src, srcset, usemap, width, referrerpolicy, sizes, fetchpriority
Reference: MDN
video
The<video> element embeds video content.
autoplay, controls, crossorigin, height, loop, muted, preload, playsinline, poster, src, width
Reference: MDN
Embedded Content
iframe
The<iframe> element embeds another HTML page.
allow, allowfullscreen, allowpaymentrequest, height, name, referrerpolicy, src, srcdoc, width
Reference: MDN
Scripting
canvas
The<canvas> element provides a drawing surface.
width, height
Reference: MDN
script
The<script> element embeds executable code.
src, type, async, defer, crossorigin, integrity, nomodule, nonce, referrerpolicy, fetchpriority
Reference: MDN
Table Content
table
The<table> element represents tabular data.
thead, tbody, tfoot
Table section elements for header, body, and footer. Reference: MDN - theadtr
The<tr> element defines a row of table cells.
Reference: MDN
th
The<th> element defines a header cell in a table.
abbr, colspan, rowspan, scope
Reference: MDN
td
The<td> element defines a data cell in a table.
colspan, rowspan
Reference: MDN
Forms
form
The<form> element represents a document section containing interactive controls.
action, autocomplete, enctype, method, name, novalidate, target
Reference: MDN
button
The<button> element represents a clickable button.
autofocus, disabled, form, formaction, formenctype, formmethod, formnovalidate, formtarget, name, type, value
Reference: MDN
input
The<input> element creates interactive controls for forms.
accept, alt, autocomplete, autofocus, capture, checked, disabled, form, height, list, max, maxlength, min, minlength, multiple, name, pattern, placeholder, readonly, required, size, src, step, type, value, width
Input Types: button, checkbox, color, date, datetime-local, email, file, hidden, image, month, number, password, radio, range, reset, search, submit, tel, text, time, url, week
Reference: MDN
label
The<label> element represents a caption for a form control.
for, form
Reference: MDN
select
The<select> element represents a control for selecting among options.
autocomplete, autofocus, disabled, form, multiple, name, required, size, value
Reference: MDN
option
The<option> element represents an option in a select element.
disabled, label, selected, value
Reference: MDN
textarea
The<textarea> element represents a multi-line plain text editing control.
autocomplete, autofocus, cols, disabled, form, maxlength, minlength, name, placeholder, readonly, required, rows, spellcheck, wrap, value
Reference: MDN
fieldset
The<fieldset> element groups related form controls.
disabled, form, name
Reference: MDN
legend
The<legend> element represents a caption for a fieldset.
Reference: MDN
progress
The<progress> element displays a progress indicator.
max, value
Reference: MDN
Interactive Elements
details
The<details> element creates a disclosure widget.
open
Reference: MDN
summary
The<summary> element specifies a summary for a details element.
Reference: MDN
dialog
The<dialog> element represents a dialog box or modal.
open
Reference: MDN
Web Components
slot
The<slot> element is a placeholder in a web component.
name
Reference: MDN
template
The<template> element holds HTML that should not be rendered immediately.
Reference: MDN
SVG
svg
The<svg> element is a container for SVG graphics.
circle, rect, path, etc., see the SVG specification.
Element Usage
All elements follow the same pattern inrsx!:
See Also
- HTML Attributes - Complete list of HTML attributes
- Event Handlers - Available event handlers for HTML elements
- RSX Syntax - Learn more about the RSX macro syntax