Poking around, I noticed on the login.js that a message will appear (or should) when one enters a username of “codecademy” and a pw of “ilovecoding” however mine did not…
SOOO… what would I need to do to make the exercise index.html run this particular portion of JS (easter egg? :sunflower surprise!)?
I , i’ve been learning here for a while now, and i’m curious where these related stylesheet are from?like this one link href=“https://fonts.googleapis.com/css?family=Fjalla+One” rel=“stylesheet” are they downloaded from google or what?
Just FYI, in case it’s not been pointed out, the example code in the label says “Summarize your fillings.” Fine if this is for a dentist’s website… but I assume you meant “feelings.”
I noticed that after setting the maxlegth attribute, I’m actually not able to type in more characters than specified by the attribute (rather than having to submit a too-long string an seeing the error message). Is this also default behavior implemented by the browser? Else, what code does this/how?
Yes, the behavior you described is indeed the default behavior implemented by most modern web browsers. When you set the maxlength attribute on an input element in HTML, the browser automatically enforces that limit by preventing the user from typing more characters than the specified limit.
This behavior is handled by the browser itself and doesn’t require any additional code on the developer’s part. When the user reaches the maximum character limit while typing in an input field, further keystrokes are simply ignored by the browser.