2024-05-10 | 10:27:06 PM

Hey there. It’s already 2024-05-10 | 10:27:24 PM, but let’s get through this. I’ll code for an hour and then be done for the day.

2024-05-10 | 10:38:03 PM

Setting a pattern attribute to an input element

To set a pattern element into an input element in HTML, we must append the following attribute syntax to the input element:

pattern="{{expression-here}}"

It could look like this in code:

<input class="text" id="some text" type="password" required pattern="[a-z0-5]{8,}"/>

The following input needs to meet these parameters:

Parameters:

The above is a regular expression which matches eight or more lowercase letters or the digits 0 to 5.

2024-05-10 | 11:12:15 PM

What… isn’t this the second fieldset, instead of the first? 😕

An image from FCC:

AH, there it is -- the first fieldset.

I got too caught up trying to solve the code that has been contextualized by FCC for me. So much so that I forgot I’m not just coding individual code blocks, but instead making a whole project.

2024-05-10 | 11:24:10 PM

See, I wouldn’t have done this without knowing the prior context behind it:

An image of me properly utilizing my previous context regarding the for and id attributes in HTML: