# Declarative Programming

*noun*

say it: **“dih-KLAIR-uh-tiv PROH-gram-ing”** **/dɪˈklærətɪv ˈproʊɡræmɪŋ/**

Describing the result you want and letting the system work out the steps, as SQL and HTML do.

## What is **Declarative Programming**?

**Declarative Programming** — Saying what you want and letting the system work out the steps. SQL says which rows you want, not how to find them; an HTML `onclick` attribute says what runs on a click, and the browser wires it up.

```html
<button onclick="addToCart(7)">Add to cart</button>
```

## In a sentence

- “SQL is **declarative programming**: we say which rows we want, not how to find them.”

Level: Journeyman · [More Software Development terms at this level](https://www.ask-codey.com/glossary?category=software-development&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/declarative-programming
