# Card > How to build a card with a heading and text for short explanations, choices and small groups of links. Source: A card brings a heading and the text related to it together on a separate surface. Choose it for short explanations, choices and small groups of links; put several cards in a [grid](../grid/). ## Example :::example {label="Card"} ```markdown :::card ### A portable project Markdown and JSON can live next to the code and be reviewed through Git. ::: ``` ::: ## Markup ```markdown :::card ### A clear heading Short related content. ::: ``` - Start the card with a heading: it names the card's content. - Inside is plain Markdown. Docara blocks (`:::`) do not nest inside a card. ## Variants ### Look `variant=plain` removes the border, background and padding: this way the card fits into another surface, for example a band or a grid with a shared background. :::example {label="Card look"} ```markdown :::card ### Styled A surface, a border and inner padding. ::: :::card {variant=plain} ### Unstyled Only the content, without its own surface. ::: ``` ::: ### Link card When a card's heading is one link, the whole card opens it. The heading keeps the text colour without an underline; on hover the card's edge is highlighted and the heading is underlined. An icon can stand on its own line above the heading. :::example ```markdown :::card :icon[search]{size=2 container=square variant=tonal scheme=primary} #### [Search without a server](/en/settings/search/) The index is built with the site and runs in the reader's browser. ::: ``` ::: ## Accessibility - A card is a landmark region (`section`) with its own heading: screen readers move through it like a section of the page. - Choose the heading level by its place on the page: `###` for a card inside a `##` section. - A link card has one link, its heading: a screen reader reads the link's name, not the whole text of the card. - Do not make a card just for a border around long text: a long article reads better without it. ## Parameters | Parameter | Values | Default | Sets | | --- | --- | --- | --- | | `variant` | `default`, `plain` | `default` | The look: `default` is a card with a border and background, `plain` is without them. | ## See also - [Grid](../grid/) — several cards in a row - [Surface](../surface/) — a background for a group of blocks - [Landing blocks](../landing-blocks/) — feature cards