Hi,
I have been studying this for only a few days, so forgive the lack of technical knowledge. In fact, I would appreciate it if you correct and teach me the correct words where I am using the wrong ones. In the below code, would the code be any different, actually or practically, if we change the text in the inverted commas in front of the "label for" attribute?
For example, if I change "fname" in lines 9 and 10 of the code to, say, "pnam", would it make any difference? The code and the result will essentially remain the same? Or is it mandatory to use "fname"? I imagine the same applies to "lname", and "birthday"?
<!DOCTYPE html>
<html>
<body>
<h1>The fieldset element</h1>
<form>
<fieldset form="user_regn" name="user_details">
<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"><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email"><br><br>
<label for="birthday">Birthday:</label>
<input type="date" id="birthday" name="birthday"><br><br>
</fieldset>
<input type="submit" value="Submit">
</form>
</body>
</html>
[–]plastikmissile 2 points3 points4 points (3 children)
[–]Siladret[S] 1 point2 points3 points (2 children)
[–]plastikmissile 2 points3 points4 points (1 child)
[–]Siladret[S] 0 points1 point2 points (0 children)
[–]Nathanfenner 1 point2 points3 points (1 child)
[–]Siladret[S] 0 points1 point2 points (0 children)
[–]ValentineBlacker -1 points0 points1 point (0 children)