Hero image
A hero image is a large, prominent visual placed near the top of a webpage or section to establish context and attract attention.
Web Design Playground, Second Edition
A hero background image is a prominent background image occupying most or all of the initial viewport behind introductory page content.
- How it is used
- Grabs attention on arrival and provides the background for introductory or product-focused header content.
- How deep it goes
- Builds a full-window background through viewport sizing, positioning, and cover, then applies it to a landing-page header.
- Examples
- Shows a welcome message over a full-window image and a product landing-page header with a hero background.
- What you can do after
- Build it from scratch with HTML and CSS, then choose a background that leaves header text readable.
Read how Web Design Playground, Second Edition explains hero image →
Build a Website with ChatGPT
A hero image is a prominent photo or illustration displayed across the width and usually the height of a browser window when a page is first opened.
- How it is used
- Places an attention-grabbing image behind the title, tagline, and navigation of a website page.
- How deep it goes
- Explains image selection, CSS background placement, file setup, and gradient-based darkness adjustments.
- Examples
- Uses a hero.jpg prompt, a header CSS rule, and rgba gradient values to demonstrate setup and customization.
- What you can do after
- Apply it via ChatGPT to create a hero-image header, place its files, and adjust image darkness for readable text.
WordPress Power Toolkit: Harness AI to build next-level websites
A hero image is a prominent introductory image displayed near the top of a website or page.
- How it is used
- Introduces a website to visitors and establishes a visual focal point that guides their attention.
- How deep it goes
- Defines the role, dimensions, aspect ratio, file size, and resolution, then connects placement to visual balance and cohesion.
- Examples
- Uses a 1,280 × 720 JPG target, 72 PPI guidance, and oversized smartphone photographs to demonstrate web-image preparation.
- What you can do after
- Apply it by preparing a correctly sized, lightweight image that represents the site and supports a deliberate visual path.
Read how WordPress Power Toolkit: Harness AI to build next-level websites explains hero image →
Also covered in
What to know first
- block-level elementA block-level element is an HTML element that participates in block layout, typically starting on a new line and occupying the available width of its container.
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- footer sectionA footer is a region associated with a document or section that contains closing or supplementary content, often positioned at the bottom.
Related concepts
- focal pointkind of · A focal point is a distinguished point or location that serves as a central reference for attention, measurement, or analysis.
- header elementpart of · The HTML header element represents introductory content or navigational aids for a document or section.
- rgba()configured by · The CSS rgba() function specifies a color using red, green, and blue components together with an alpha value controlling opacity.
- viewportuses · A viewport is the visible region of a browser or graphical interface in which a document or other content is displayed.
Questions about hero image
What is hero image?
A hero image is a large, prominent visual placed near the top of a webpage or section to establish context and attract attention.
Which Manning books explain hero image?
Web Design Playground, Second Edition, Build a Website with ChatGPT and WordPress Power Toolkit: Harness AI to build next-level websites.
What should I know before learning hero image?
Manning books that teach hero image usually introduce background-image property, block-level element, CSS and footer section first.
What is hero image a kind of?
Hero image is a kind of focal point. A focal point is a distinguished point or location that serves as a central reference for attention, measurement, or analysis.
What is hero image part of?
Hero image is part of header element. The HTML header element represents introductory content or navigational aids for a document or section.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


