# height attribute

*noun*

say it: **“HYTE AT-ruh-byoot”** **/haɪt ˈætrəˌbjut/**

An HTML attribute that says how tall an image, video or iframe is meant to be, in pixels; with width, it lets the browser keep the right space for it.

## What is **`height` attribute**?

**`height` attribute** — An attribute that supplies an element's intended height in CSS pixels.

## In a sentence

- “Without a **height attribute**, the browser didn't know how tall the menu photo would be and left no space for it.”

Level: Novice · [More HTML terms at this level](https://www.ask-codey.com/glossary?category=html&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/height-attribute
