Let $a<b\in\mathbb{R}$. A sequence $P:=(p_0,\ldots,p_n)$ is a called a partition of $[a,b]$ if $$a=p_0<\ldots<p_n=b.$$ The size of $P$ is taken to be $\max_i(p_{i+1}-p_i)$.
Now, suppose we are given $\delta>0$. There exists $n\in\mathbb{N}_{\geq 1}$ such that $(b-a)/n<\delta$. I can divide $[a,b]$ into $n$ equal sub-intervals, by writing $$I_k:=\left[a+\frac{k}{n}(b-a),a+\frac{k+1}{n}(b-a)\right]$$ for all $0\leq k\leq n-1$. Clearly the length of each $I_k$ is $<\delta$. We take $p_k=a+\frac{k}{n}(b-a)$ for $0\leq k\leq n$.
The above gives us a partition. Are there other ways of constructing partitions of $[a,b]$ whose size is $<\delta$?

Here is my favorite:
LEMMA. [Cousin partitioning lemma] Let $\delta(x)$ be a positive function defined on some fixed interval $[a,b]$. Then for any subinterval $[c,d]\subset [a,b]$ there must exist points $$c=x_0<x_1< x_2< \dots < x_k = d$$ and points $\xi_i\in [x_{i-1},x_i]$ subject to the constraint that $(x_{i}-x_{i-1})< \delta(\xi_i)$ for each $i=1,2,\dots, k$.
Cousin's lemma first appeared in an 1895 paper by the Belgian mathematician Pierre Cousin who was a student of Poincaré. It was discovered again by Goursat who included it a paper that appeared in the very first issue of the American Math. Society Transactions journal in 1900.
It is very useful. Think of it as equivalent to the nested interval property. Anything you have proved before with the nested interval property (or the Bolzano-Weierstrass theorem, or the Heine-Borel theorem, or the least upper bound propery) usually has a simpler proof using Cousin's lemma.
If you use partitions of small size $\delta>0$ as you mentioned, you can define the Riemann integral. If you use Cousin's partitions monitored by a small positive function $\delta(x)$ you can define the Lebesgue integral.