html checkbox disabled
snippet in html

html field disabled

user9080

 <input type="text" id="lname" name="lname" disabled>

html checkbox disabled

user5162

 document.getElementById("myCheck").disabled = true;

disabled input css

user3236


    <form 
    action="/action_page.php">

  <label for="fname">First name:</label>
  <input type="text" id="fname" 
    name="fname"><br><br>
  <label for="lname">Last name:</label>
  
    <input type="text" id="lname" name="lname" disabled><br><br>
  
    <input type="submit" value="Submit">

    </form>