HTML HTML Forms Choosing Options Create Checkboxes

help me with HTML please

<input type="checkbox" id="development" value="interest_development" name="user_interest"><label class="light" for="development">Development</label>

What the |||class="light"||| from the second line of code mean? And what is the purpose of it?

<!DOCTYPE html>
    <meta charset="utf-8">
    <title>HTML Forms</title>
    <form action="index.html" method="post">
      <h1>Shirt Order Form</h1>
      <label for="color">Shirt Color:</label>
      <select id="color" name="shirt_color">
        <option value="red">Red</option>
        <option value="yellow">Yellow</option>
        <option value="purple">Purple</option>
        <option value="blue">Blue</option>
        <option value="green">Green</option>
        <option value="orange">Orange</option>
      <label>Shirt Size:</label>
      <input type="radio" id="small" value="small" name="shirt_size"><label for="small">Small</label><br>
      <input type="radio" id="medium" value="medium" name="shirt_size"><label for="medium">Medium</label><br>
      <input type="radio" id="large" value="large" name="shirt_size"><label for="large">Large</label><br>

      <button type="submit">Place Order</button>

2 Answers

I'm not seeing any class in your html code. But the class attribute is mostly used to point to a class in a style sheet (CSS) and make modifications to many elements. I'ts like a id attribute, however, in that case is mostly used by a JavaScript (via the HTML DOM) to make changes to unique HTML elements with a specified id.

The value "light" it's the name of the class in the stylesheet. Can be any name.

Hi roman! I don't think the code above includes a class attribute for any element. Classes and ids are used to identify html elements and style them specifically.
However, 'ids' are distinct for every html element but multiple elements can have same class.