liveBook · Manning

Digital image

As explained in Build a Website with ChatGPT

A file containing encoded image data that can be displayed on a web page.

A digital image is a separate file containing encoded visual data that a browser retrieves and displays on a web page. Images can enliven text, supplement explanations, present information concisely, and help readers remember it. section 4.2.4 section 10.2

Use digital images practically by:

  • Keeping the image file with the page files and knowing its filename before generating or editing the HTML. section 4.2.4 section 4.5
  • Referencing the file with an HTML img element and its src attribute; add alt text to describe the image for screen readers and Braille apps. section 10.9
  • Using a separate smaller thumbnail file when displaying thumbnail images, and placing a larger version in a lightbox when needed. section 10.9

Add a book-club image

Place logo.png in the same folder as index.html, then ask for or write an image reference such as: <img src="logo.png" alt="Book club logo">. A book-club page can use the logo in its header and a book-cover image in its main section. section 4.2.4 section 4.5 section 10.9

How Build a Website with ChatGPT covers it

How deep it goes
Explains separate-file storage, image formats, HTML references, accessibility text, thumbnails, captions, and lightboxes.
Examples
Uses book-club logos, book covers, online-journal logos, and full-window hero images as concrete web-page imagery.
What it assumes
Assumes possession of desired image files, while teaching filenames, folder placement, and basic HTML references from the immediate task.
What you can do after
Apply it via HTML by storing an image file, referencing it with img and src, and describing it with alt text.
How it connects
Connects digital images to HTML, the img element, alt attributes, figure elements, captions, thumbnails, lightboxes, headers, and hero images.

Also explained in

Compare how 16 books explain digital image →

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.