Build an HTML Form From Scratch

  Рет қаралды 1,689

Craig A. Bourne

Craig A. Bourne

Күн бұрын

► Forms allow us to collect information through user inputs. These include fields for entering text and elements we can click. Such as buttons, checkboxes, and dropdown menus that allow us to choose from a series of options.
There are many things that we can do with forms. They are an essential part of any website and one of the most important web concepts to learn. Google search is a form, Logging in to Facebook and Twitter is done with a form. Entering your payment details for an Amazon order is done with a form.
In the last video, we learned what forms are, how we use them, and then we looked at the various text-based and clickable form fields brought to us by the HTML input element.
In this video, we will bring together all of the work in the two previous form videos and build an entire form from scratch.
Part 1: • Form Inputs - Text, Em...
Part 2: • Form Inputs - Checkbox...
► Timestamps:
0:00 Start
1:08 The form we will build (styled & unstyled)
1:40 The forms are presentational only
2:48 Client side validations
3:31 The required attribute
4:04 Creating name & email inputs nested in labels + the required & autofocus keywords
5:48 Grouping inputs & labels within a fieldset & adding a legend
6:35 Using a. span to isolate some text
7:22 Creating the provisional structure of the next two sections
9:16 Building the dropdown menus with Emmet
10:41 Adding the information for the dropdown menus
11:33 Adding dropdown, radio, checkbox, & textarea inputs for the 3rd section
15:20 Associating radio inputs
16:01 Checking the labels and associated inputs are bound
16:21 Adding a submit button
17:05 Testing the form
18:15 Summary
► Get the code:
Styled Form: codepen.io/craigabourne/pen/b...
Unstyled Form: codepen.io/craigabourne/pen/z...
GitHub Repo: github.com/craigabourne/html-...
--------------------
Part 1 code: codepen.io/craigabourne/pen/Q...
Part 2 code: codepen.io/craigabourne/pen/w...
► Links used in the video:
Form Attributes: www.w3schools.com/html/html_f...
The Fieldset Element: developer.mozilla.org/en-US/d...
► The HTML for Absolute Beginners Playlist: • HTML for Absolute Begi...
► Social Media:
/ craigabourne
/ craigabourne
► Code & Projects:
github.com/craigabourne
codepen.io/craigabourne

Пікірлер: 21
@craigabourne
@craigabourne 3 жыл бұрын
Learn HTML: kzbin.info/aero/PL4cTxE4s2XIYJL6uPQUwMt25M70gPl-O6
@pranavguly
@pranavguly 3 жыл бұрын
This is a very good series Craig
@craigabourne
@craigabourne 3 жыл бұрын
Appreciate it 🙏
@Naz-yi9bs
@Naz-yi9bs 3 жыл бұрын
Forms FTW!!!
@wandafish
@wandafish 2 жыл бұрын
Thanks! Forms are scary but this helps ❤
@craigabourne
@craigabourne 2 жыл бұрын
Happy to help!
@leonardreveira
@leonardreveira 3 жыл бұрын
Nice project for forms that really helped me
@craigabourne
@craigabourne 3 жыл бұрын
Good job! Hope you found them useful 👍
@shansutherland
@shansutherland 2 жыл бұрын
This was such a fun way of learning! Coded along with. Thanks! Loved it!
@craigabourne
@craigabourne 2 жыл бұрын
Glad you enjoyed it!
@davidbreitner
@davidbreitner 3 жыл бұрын
The multi cursors you do are crazy. So cool. What is this witchcraft? How are you doing that?
@craigabourne
@craigabourne 3 жыл бұрын
I'm on Mac and just hold ⌘ (command) + click where you want the cursor. On Windows I believe it is ctrl+alt+click.
@davidbreitner
@davidbreitner 3 жыл бұрын
@@craigabourne That's awesome bro. Thanks for the info
@marinstrup
@marinstrup 3 жыл бұрын
Thanks for these they are really helping me 🙏
@craigabourne
@craigabourne 3 жыл бұрын
Happy to hear that!
@clinthoon
@clinthoon 3 жыл бұрын
Thanks. A good useful practice to go through and build a nice form. Thanks for the CSS too. It is helpful to look at and understand what it is doing 👍
@craigabourne
@craigabourne 3 жыл бұрын
Glad it was helpful! You're most welcome. Glad you're using the CSS. I was hoping some people would take 5 minutes to have a glance through it and see if they can understand it.
@ovidiu2394
@ovidiu2394 2 жыл бұрын
Thank you!
@craigabourne
@craigabourne 2 жыл бұрын
You're welcome!
@flashcsgo4559
@flashcsgo4559 2 жыл бұрын
hi (saying hi to help with youtube algorithm)
@craigabourne
@craigabourne 2 жыл бұрын
Thanks! Appreciate it 👍
Add Video to Webpages with Video and iFrame Elements
13:34
Craig A. Bourne
Рет қаралды 12 М.
Learn HTML Forms In 25 Minutes
24:56
Web Dev Simplified
Рет қаралды 954 М.
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 19 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 3,7 МЛН
Inline vs Internal vs External CSS
18:00
Craig A. Bourne
Рет қаралды 2,9 М.
The secret to mastering CSS layouts
17:11
Kevin Powell
Рет қаралды 267 М.
Using CSS Units correctly: Pixels and Percentages
12:10
Craig A. Bourne
Рет қаралды 3,1 М.
Adjacent and General Sibling Selectors in CSS
16:45
Craig A. Bourne
Рет қаралды 2,2 М.
Learn GSAP In 23 Minutes
23:22
Web Dev Simplified
Рет қаралды 197 М.
Ems & Rems: How to use CSS Units
13:51
Craig A. Bourne
Рет қаралды 2,3 М.
Learn Emmet In 15 Minutes - Double Your HTML Coding Speed
15:27
Web Dev Simplified
Рет қаралды 204 М.
CSS Child and Descendant Selectors
13:13
Craig A. Bourne
Рет қаралды 2,6 М.
Login Form from scratch | HTML,CSS and GIT
22:29
AKRITI GOSWAMI
Рет қаралды 444
CSS Specificity
23:06
Craig A. Bourne
Рет қаралды 2,1 М.
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2 МЛН
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 2,7 МЛН
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 52 МЛН
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 4,1 МЛН