How to create slider in HTML

What is code for slier in HTML

hello to bulid slider in html you have to use an input tag with range as per required
for 0 to 255 range for controlling led u can use the folllowing code

    <title>Bolt IoT Platform</title>
    <script type="text/javascript" src=""></script>
        <input type="range" min="0" max="255" value="100" onchange="analogWrite(0, this.value); console.log('this.value');">
         <button onClick="digitalWrite(0, 'LOW');">OFF</button>

thank you