Also the label element comes after the input element

This preview shows page 7 - 10 out of 10 pages.

We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
New Perspectives Microsoft Office 365 & Excel 2019 Comprehensive
The document you are viewing contains questions related to this textbook.
Chapter 3 / Exercise 2
New Perspectives Microsoft Office 365 & Excel 2019 Comprehensive
Carey/Parsons
Expert Verified
Also, the <label> element comes after the <input> element to display the captions to the right of the check boxes.
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
New Perspectives Microsoft Office 365 & Excel 2019 Comprehensive
The document you are viewing contains questions related to this textbook.
Chapter 3 / Exercise 2
New Perspectives Microsoft Office 365 & Excel 2019 Comprehensive
Carey/Parsons
Expert Verified
<ul> <li> <input type="checkbox" name="species" value="smbass" id="Smallmouth Bass" /> <label for="Smallmouth Bass">Smallmouth Bass</label> </li> <li> <input type="checkbox" name="species" value="lgbass" id="Largemouth Bass" /> <label for="Largemouth Bass">Largemouth Bass</label> </li> <li> <input type="checkbox" name="species" value="crappie" id="Crappie" /> <label for="Crappie">Crappie</label> </li> <li> <input type="checkbox" name="species" value="walleye" id="Walleye" /> <label for="Walleye">Walleye</label> </li> <li> <input type="checkbox" name="species" value="muskie" id="Muskie" /> <label for="Muskie">Muskie</label> </li> <li> <input type="checkbox" name="species" value="pike" id="Pike" /> <label for="Pike" />Pike</label> </li> </ul> To check a check box by default, you can use the checked attribute. The following code fragment shows the syntax for this attribute. Here, the Pike check box is checked by default. <input type="checkbox" name="species" value="pike" checked="checked" />Pike PTS: 1 REF: 488-490 4. How do you allow a user submit a file?
<p>Use the browse button to select your file:</p> <p><input type="file" size="30" /></p> PTS: 1 REF: 493-494 5. Describe how to use the <select> element. Use examples.
<option>Pizza</option> <option>Fries</option> </select> </p> PTS: 1 REF: 494-496

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture