デモ1:テキストの行間の高さを設定 デモボタンをクリックしてみてください!
<div style="background-color: yellowgreen;">
    <input type="text">
</div>
デモ2:ラインボックス(line box)の最小高さを指定 デモボタンをクリックしてみてください!
selector {
    line-height: /* value */
}
/* キーワード値 */
line-height: normal;

/* 数値 */
line-height: 1.5; /* 現在のfont-sizeの1.5倍のサイズ */

/* % 単位の値 */
line-height: 150%; /* 現在のfont-sizeの150%のサイズ */

/* 長さ単位の値 */
line-height: 28px;
line-height: 2.5em;

/* font一括指定プロパティ */
font: 25px/1.5 arial, sans-serif; /* line-heightは1.5 */

/* グローバル値 */
line-height: inherit;
line-height: initial;
line-height: revert;
line-height: revert-layer;
line-height: unset;
<style>
    p {
        background-color: yellowgreen;
    }
</style>
<p style="line-height: 500%">
    このテキストはline-heightが500%です。
</p>
<p style="line-height: 100px">
    このテキストはline-heightが100pxです。
</p>
<p style="line-height: 5px">
    このテキストはline-heightが5pxです。
</p>
実際の適用例
<style>
    p {
        background-color: yellowgreen;
        border: 2px solid red;
    }
</style>
<p style="line-height: 500px">
    <!-- インラインコンテンツがない場合は動作しません。 -->
</p>
実際の適用例
<style>
    p {
        background-color: yellowgreen;
    }
</style>
<p style="line-height: 100px">
    <input type="text" placeholder="インラインコンテンツ">
</p>
実際の適用例
<style>
    p {
        display: flex;
        background-color: yellowgreen;
    }
</style>
<p style="line-height: 100px">
    <input type="text" placeholder="インラインコンテンツ">
</p>
<p style="line-height: 100px">
    テキスト
</p>
実際の適用例
<p class="narrow">
    テキストが縦書きモード(writing-modeがvertical-rlまたはvertical-lrの場合)に設定されているとき、
    line-heightプロパティは縦書きモードにおける縦行間の間隔を調整します。
</p>
<p class="wide">
    テキストが縦書きモード(writing-modeがvertical-rlまたはvertical-lrの場合)に設定されているとき、
    line-heightプロパティは縦書きモードにおける縦行間の間隔を調整します。
</p>
p {
    border: 1px solid;
    padding: 0.6em;
    background-color: yellowgreen;
    height: 200px;
    margin-bottom: 1em;
    
    writing-mode: vertical-rl; /* テキストが縦書きモード */
}
.narrow {
    line-height: 1;
}
.wide {
    line-height: 2;
}
実際の適用例