Payment and address form best practices

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 21

  • @marcusbrsp
    @marcusbrsp 3 года назад +4

    "Thanks, Alley."

  • @tanikobas6991
    @tanikobas6991 3 года назад +2

    I am from Germany and can validate that statement ^^
    I am wondering how there could be such a little amount of streets in other countries belonging to one Zip Code 🤯

  • @JamesJansson
    @JamesJansson 3 года назад +5

    Post codes in Australia can contain hundreds of thousands of buildings!

    • @samueldutton
      @samueldutton 3 года назад +1

      Ah - yes. Grew up in 5373 :).

  • @themarksmith
    @themarksmith 3 года назад +6

    Useful stuff, thanks!

  • @jamesfoley4426
    @jamesfoley4426 3 года назад

    Sam on the code lab I see that the form elements are nested in section elements. I was wondering why you use the section element as a container for the form element controls. . Is it for accessibility reasons or some other reason that you can share? Just curious as I use a div element to contain my label and input elements. Great content by the way. Developer Gold

  •  3 года назад +2

    useful, thanks guys!

  • @DioArsya
    @DioArsya 3 года назад

    is it better to combine the input inside the label or using for and id technique?

    • @samueldutton
      @samueldutton 3 года назад +1

      That's a good point, and I should have covered it in the video. From what I've seen and heard, including the specs, either is OK. Personally, I keep the label element separate. I prefer styling like that, and to me the code is slightly more readable with separate elements - it feels a bit odd to have a label 'containing' an input. 🤷🏻‍♂️ There's some interesting discussion here: stackoverflow.com/questions/774054/should-i-put-input-elements-inside-a-label-element

  • @DenisTRUFFAUT
    @DenisTRUFFAUT 4 года назад +3

    12:11 'françoise'.match(/[\p{L} ]+/gmu) -> ["françoise"]
    '𒀀𒀃𒀆𒀟𒈫𒇺𒌐𒉺'.match(/[\p{L} ]+/gmu) -> ["𒀀𒀃𒀆𒀟𒈫𒇺𒌐𒉺"]
    It requires the u (unicode) modifier

    • @samueldutton
      @samueldutton 3 года назад +1

      That's in the video, right? Or did I miss something? Probably :).

  • @lauraowens8129
    @lauraowens8129 3 года назад

    I don't know u what did u guys do

  • @Textras
    @Textras 4 года назад

    🤑💸🤷‍♂️📃