# Card A Bootstrap card with optional header, image, title, subtitle and footer. ![Card examples](https://book.lewe.com/bootstrap-visuals/assets/component-card.png "Card examples") ## Examples ```text wrap [bsv-card heading="Heading" title="Title" subtitle="Subtitle" footer="Footer"]This is the card content.[/bsv-card] ``` ```text wrap [bsv-card heading="Heading" width="400px" style="info" img="/wp-content/uploads/2019/12/duelmen.jpg"]City Gate[/bsv-card] ``` ## Format ```text wrap [bsv-card parameter="value" ...]your content here[/bsv-card] ``` ## Parameters | Parameter | Description | Default | | --- | --- | --- | | `style` | Optional Bootstrap color style: `primary`, `secondary`, `success`, `danger`, `warning`, `info`, `light`, `dark`. An empty value renders a plain card. | _empty_ | | `heading` | Optional card header text. | _empty_ | | `heading_level` | Heading level for the header: `h1`–`h6`. | `h5` | | `title` | Optional card title. | _empty_ | | `title_level` | Heading level for the title: `h1`–`h6`. | `h5` | | `subtitle` | Optional card subtitle. | _empty_ | | `subtitle_level` | Heading level for the subtitle: `h1`–`h6`. | `h6` | | `width` | Optional width using `px`, `%`, `em` or `rem`. | _full width_ | | `float_left` | Float the card left: `yes` or `no`. | `no` | | `outline` | Use the outline variant: `yes` or `no`. Only applies when `style` is set. | `no` | | `img` | URL of an image displayed above the card body. | _empty_ | | `footer` | Optional card footer text. | _empty_ | In 4.0.0 a card without `style` is a plain card. The old behavior that forced the primary style is gone.