When working through some of the curric last night, I stumbled across another thread regarding the radio buttons and checkboxes code. The person’s code wasn’t being accepted, and the solution was (if I recall correctly) to remove the line break tags (
<br>) the person had inserted between labels.
After reading this, I found that I had the same problem: my code wasn’t being accepted because I had put in a
<p>. I fixed it buuuttt…
Can someone explain WHY these won’t work? Is it because whatever checks the challenges won’t recognize those additional parts (ie-- it somehow throws off whatever is being looked for) OR becaue
<p> don’t have a place in a form?
How would this matter in a real-world coding situation?
What’s considered best practice?
Note: there are 4 total questions. No pressure to answer all four. I was an English major and current English teacher. We’re wordy. No pun intended. But maybe a little.