| Desktop | Mobile |
|---|---|
![]() |
![]() |
- JavaScript 😀
- How to style an input placeholder using the
::placeholderpseudo-element and understanding its purpose. - The
<form>element triggers asubmitevent, which we can intercept and control using thesubmitevent listener. - The second parameter of
element.classList.togglecan be used to force a class to be added or removed based on a boolean condition — making code cleaner than a traditionalif/elsestatement. - JavaScript regular expression syntax, the
RegExp.test(string)method, and how to use regex for validating form inputs. - Why
event.preventDefault()is necessary on a form’ssubmitevent — to stop the default page reload and allow frontend validation before submission. - The
innerHTMLproperty, what it does, and when to use it for inserting HTML content dynamically. - In a flex container with two items in a row, setting
justify-content: space-betweenpushes them to the far left and far right sides of the container — a very useful layout trick. - How disabling the
list-styleproperty and settinglielements toposition: relative, combined with a::beforepseudo-element, allows complete control over custom list item markers — which isn’t possible with the defaultlist-style.
- Github - @AminForouzan
- Frontend Mentor - @AminForouzan

