Input range show value

Shortest version without form, min or external JavaScript.

by Génesis García Morilla

HTML

<input type="range" max="10" oninput="num.value = this.value">
<output id="num">0</output>