#Second part: What Are Attributes, and How Do They Work?
Transcript and trainings teach that on the following ninout there should be a closing tag - which makes sense but the last question might cnfuse some as neither option has the closing tag - I chose correct and have since moved on (super easy) but should i t be updated? and/or am I being to detail oriented?? or possibly for some reason it isnt supposed to be there lol if thats the case please explain.
Thank you.
<input type="checkbox" checked />```
PS Based on the suggestions prompted after typing this - and a quick look I did not find the answer, or concern brought about!
**The multiple choice selections are below for comparison to my transcript message and what I have learnt this far**
<input type="checkbox" checked>
<input type="checkbox" checked="on">
<input type="checkbox" checked="off">
<input type="checkbox" checked="isChecked">
okay because the input checkbox element has the closing tag as shown here /> it was there after the checkbox in the video - on the screen in the video the input had a closing tag - which is again why it could be confusing so you are saying that this is incorrect and I do not need a close tag for input elements. I know I will learn more about this soon coming but just to be clear as the video has an image of the code shown and it has the closing tag and so does the transcript auto generated from youtube i presume. I can attach a photo
I thought void elements were those that had no sourcs, or attribute
the example I speak of states that it is a type attribute
this is from the website i copy and paste
In the following example, we have an input element with the type attribute set to checkbox.
which is a boolean attribute
see my screen shot please its from thevideo which has a close tag on this input
a browser will read <input> and <input /> as the exact same thing
it is commont to see void elements with /> but the / is ignored by the browser. It is common because it is added by the most used code prettier extensions