WGU C777 final exam (latest update
2026/2027) question with verified answer
{Grade a}
What is <fieldset> - Correct answer group several controls and labels within a web
form. Regroup in semantic ways
<form>
<fieldset>
<legend></legend>
<input type="radio" id="S1" name="S1" value="S1">
<label for="S1">S1</label><br>
<input type="radio" id="S2" name="S2" value="S2">
<label for="S2">S2</label><br>
</fieldset>
</form>
What is <datalist> - Correct answer Input form to give the user different options
(dropdown list)
,Remember this
What is <keygen> - Correct answer Create hidden keys for encryption within HTML
using RSA. Not used anymore but still:
Remember this
What is <output> - Correct answer makes use of the FOR attribute in froms. Shows the
value calculated by entries
Remember this
How to set a string or node as the children of a element - Correct answer
Element.after()
I.e. A.after(span);
Js code. () are after the element
Remember this
Input validation
Phone number - Correct answer pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}"
, Input validation ipv4 - Correct answer pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
Do you see the difference between the phone example with [ ] and this example with \
to group the segments? Here I also used \d for any digits instead of [0-9]
Remember this
Input validation country code (3 letter code like USA CAN GER) - Correct answer
pattern="[A-Za-z]{3}
Pattern understanding
(?=^.{8,}$) - Correct answer there are at least 8 characters. See the , after 8? That
means 8 or infinity
?=look, ^=start with, .=any character, 8,= 8 or more, $=end
Remember this
Pattern understanding
(?=.*\d) - Correct answer there is at least a digit
Remember this
2026/2027) question with verified answer
{Grade a}
What is <fieldset> - Correct answer group several controls and labels within a web
form. Regroup in semantic ways
<form>
<fieldset>
<legend></legend>
<input type="radio" id="S1" name="S1" value="S1">
<label for="S1">S1</label><br>
<input type="radio" id="S2" name="S2" value="S2">
<label for="S2">S2</label><br>
</fieldset>
</form>
What is <datalist> - Correct answer Input form to give the user different options
(dropdown list)
,Remember this
What is <keygen> - Correct answer Create hidden keys for encryption within HTML
using RSA. Not used anymore but still:
Remember this
What is <output> - Correct answer makes use of the FOR attribute in froms. Shows the
value calculated by entries
Remember this
How to set a string or node as the children of a element - Correct answer
Element.after()
I.e. A.after(span);
Js code. () are after the element
Remember this
Input validation
Phone number - Correct answer pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}"
, Input validation ipv4 - Correct answer pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
Do you see the difference between the phone example with [ ] and this example with \
to group the segments? Here I also used \d for any digits instead of [0-9]
Remember this
Input validation country code (3 letter code like USA CAN GER) - Correct answer
pattern="[A-Za-z]{3}
Pattern understanding
(?=^.{8,}$) - Correct answer there are at least 8 characters. See the , after 8? That
means 8 or infinity
?=look, ^=start with, .=any character, 8,= 8 or more, $=end
Remember this
Pattern understanding
(?=.*\d) - Correct answer there is at least a digit
Remember this