liveBook · Manning

Card

As explained in Build a Website with ChatGPT

A card is a reusable user-interface component that presents related information and controls in a compact, visually distinct unit.

A card is a compact collection of HTML tags and CSS properties that presents related information about an item, such as artwork, an event, a project, or a person. section 11.2.1

A typical card combines several focused elements:

Choose the layout that fits the content:

A specific card prompt

Ask for a card no wider than 350px, place images/portfolio01.jpg at the top, add the heading "I Fell In Love With ChatGPT," a brief description, a "Learn more" link to portfolio01.html, and centered text. Save the generated HTML and CSS in the requested files. section 11.6

How Build a Website with ChatGPT covers it

How deep it goes
Defines card contents and two layouts, then reaches CSS customizations without descending into advanced implementation details.
Examples
Uses portfolio artwork, images, headings, descriptions, and Learn more links in vertical and horizontal layouts.
What you can do after
Build it from scratch with HTML and CSS by writing a specific ChatGPT prompt and saving the generated files.
How it connects
Connects cards with portfolio pages, HTML, CSS, box-shadow, border-radius, and responsive web design.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Website with ChatGPT. The section links point to the parts of the book it draws on.