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!!!
@leonardreveira
@leonardreveira 3 жыл бұрын
Nice project for forms that really helped me
@craigabourne
@craigabourne 3 жыл бұрын
Good job! Hope you found them useful 👍
@wandafish
@wandafish 2 жыл бұрын
Thanks! Forms are scary but this helps ❤
@craigabourne
@craigabourne 2 жыл бұрын
Happy to help!
@shansutherland
@shansutherland 2 жыл бұрын
This was such a fun way of learning! Coded along with. Thanks! Loved it!
@craigabourne
@craigabourne 2 жыл бұрын
Glad you enjoyed it!
@marinstrup
@marinstrup 3 жыл бұрын
Thanks for these they are really helping me 🙏
@craigabourne
@craigabourne 3 жыл бұрын
Happy to hear that!
@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 👍
@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
@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.
Add Video to Webpages with Video and iFrame Elements
13:34
Craig A. Bourne
Рет қаралды 12 М.
Ems & Rems: How to use CSS Units
13:51
Craig A. Bourne
Рет қаралды 2,3 М.
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 27 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
CSS Child and Descendant Selectors
13:13
Craig A. Bourne
Рет қаралды 2,6 М.
PHP doesn't suck (anymore)
10:48
Aaron Francis
Рет қаралды 198 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
I Tested Every FREE Drawing App
22:15
viyaura
Рет қаралды 244 М.
CSS Specificity
23:06
Craig A. Bourne
Рет қаралды 2,1 М.
Using CSS Units correctly: Pixels and Percentages
12:10
Craig A. Bourne
Рет қаралды 3,1 М.
CSS Resets and Default Browser Styles
16:01
Craig A. Bourne
Рет қаралды 3,3 М.
The ARCH LINUX Experience
34:30
Bog
Рет қаралды 112 М.
Understanding Inheritance in CSS
12:37
Craig A. Bourne
Рет қаралды 1,7 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 383 М.
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2 МЛН
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,3 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 13 МЛН
Lid hologram 3d
0:32
LEDG
Рет қаралды 10 МЛН