SlideShare a Scribd company logo
1 of 17
Download to read offline
BASIC HTML & CSS
4. html - form tags
[ 2017.01.17. Tue ]
To Do
1. Basic Tags
○ h1~h6, div, p, span, img, a, strong, b, em, i
2. List tags
○ ul li, ol li, dl dt dd
3. Table tags
○ table, thead, tbody, tfoot, tr, td, colgroup, col
4. Form tags
○ form, fieldset, legend, label, input, select, option, textarea, button
5. Etc
○ header, footer, nav, aside, section, article
○ iframe, blockquote, ruby, sup, sub, pre, code, mark
form
form
The HTML <form> element represents a document section that contains
interactive controls to submit information to a web server.
form, fieldset, legend, label, input, select, option, textarea, button
fieldset, legend
● The HTML <fieldset> element is used to group several controls as
well as labels (<label>) within a web form.
● The HTML <legend> element represents a caption for the content of
its parent <fieldset>.
form, fieldset, legend, label, input, select, option, textarea, button
1.
<label for="test"></label>
<input type="text" id="test">
2.
<label><input type="text"></label>
form, fieldset, legend, label, input, select, option, textarea, button
<input type="xxx">
type="text | email | tel | password | checkbox | radio"
hidden, search, url, datetime, data, month, week, time, number,
range, color, file, submit, image, reset, button, progress, meter
form, fieldset, legend, label, input, select, option, textarea, button
form, fieldset, legend, label, input, select, option, textarea, button
모바일 사용성
<input type="text" autofocus>
<input type="text" required>
<input type="text" readonly>
form, fieldset, legend, label, input, select, option, textarea, button
<!-- multiple은 ctrl(cmd)을 누르고 여러항목 선택 가능 -->
<select size="n" multiple>
<optgroup label="그룹">
<option value="xx">항목1</option>
<option value="xx" selected>항목2</option>
</optgroup>
</select>
form, fieldset, legend, label, input, select, option, textarea, button
<textarea>
The HTML <textarea> element represents
a multi-line plain-text editing control.
form, fieldset, legend, label, input, select, option, textarea, button
<button type="xxx"></button>
type="button | reset | submit"
form, fieldset, legend, label, input, select, option, textarea, button
Find out!
example
Practice
practice
/* CSS */
form {
width: 500px;
}
div {
margin: 10px 0;
}
label {
display: inline-block;
width: 100px;
}
input:not([type="radio"]):not([type="checkbox"]) {
padding: 0 10px;
width: 150px;
height: 25px;
}
체크리스트
1. 적절한 input type, placeholder
2. label for와 input id로 연결
3. select 항목 중 1가지가 선택(selected) 되어 있어야 함
4. 성별이 선택(checked)되어 있어야 함
5. 사용 가능 한 스킬이 선택(checked)되어 있어야 함
email
Facebook / Twitter / Codepen
@zineeworld

More Related Content

What's hot

Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4
Mudasir Syed
 
20 html-forms
20 html-forms20 html-forms
20 html-forms
Kumar
 

What's hot (20)

Html form tag
Html form tagHtml form tag
Html form tag
 
Forms in html5
Forms in html5Forms in html5
Forms in html5
 
Html forms
Html formsHtml forms
Html forms
 
Html forms
Html formsHtml forms
Html forms
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Html forms
Html formsHtml forms
Html forms
 
Html forms
Html formsHtml forms
Html forms
 
Entering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML FormsEntering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML Forms
 
html 5 new form attribute
html 5 new form attributehtml 5 new form attribute
html 5 new form attribute
 
Tut 06 (forms)
Tut 06 (forms)Tut 06 (forms)
Tut 06 (forms)
 
Html class-04
Html class-04Html class-04
Html class-04
 
HTML frames and HTML forms
HTML frames and HTML formsHTML frames and HTML forms
HTML frames and HTML forms
 
Building html forms
Building html formsBuilding html forms
Building html forms
 
Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4
 
20 html-forms
20 html-forms20 html-forms
20 html-forms
 
Html Form Controls
Html Form ControlsHtml Form Controls
Html Form Controls
 
Html form
Html formHtml form
Html form
 
Gitika html ppt
Gitika html pptGitika html ppt
Gitika html ppt
 
New Form Element in HTML5
New Form Element in HTML5New Form Element in HTML5
New Form Element in HTML5
 
Forms with html5 (1)
Forms with html5 (1)Forms with html5 (1)
Forms with html5 (1)
 

Viewers also liked

[Basic HTML/CSS] 3. html - table tags
[Basic HTML/CSS] 3. html - table tags[Basic HTML/CSS] 3. html - table tags
[Basic HTML/CSS] 3. html - table tags
Hyejin Oh
 
[Basic HTML/CSS] 5. css - selector, units
[Basic HTML/CSS] 5. css - selector, units[Basic HTML/CSS] 5. css - selector, units
[Basic HTML/CSS] 5. css - selector, units
Hyejin Oh
 
[Basic HTML/CSS] 6. css - box sizing, display, margin, padding
[Basic HTML/CSS] 6. css - box sizing, display, margin, padding[Basic HTML/CSS] 6. css - box sizing, display, margin, padding
[Basic HTML/CSS] 6. css - box sizing, display, margin, padding
Hyejin Oh
 
Java script introducation & basics
Java script introducation & basicsJava script introducation & basics
Java script introducation & basics
H K
 
Tables and Forms in HTML
Tables and Forms in HTMLTables and Forms in HTML
Tables and Forms in HTML
Doncho Minkov
 

Viewers also liked (20)

[Basic HTML/CSS] 3. html - table tags
[Basic HTML/CSS] 3. html - table tags[Basic HTML/CSS] 3. html - table tags
[Basic HTML/CSS] 3. html - table tags
 
[Basic HTML/CSS] 5. css - selector, units
[Basic HTML/CSS] 5. css - selector, units[Basic HTML/CSS] 5. css - selector, units
[Basic HTML/CSS] 5. css - selector, units
 
PROGRESS - CSS BASIC
PROGRESS - CSS BASICPROGRESS - CSS BASIC
PROGRESS - CSS BASIC
 
[Basic HTML/CSS] 6. css - box sizing, display, margin, padding
[Basic HTML/CSS] 6. css - box sizing, display, margin, padding[Basic HTML/CSS] 6. css - box sizing, display, margin, padding
[Basic HTML/CSS] 6. css - box sizing, display, margin, padding
 
[Basic HTML/CSS] 7. project
[Basic HTML/CSS] 7. project[Basic HTML/CSS] 7. project
[Basic HTML/CSS] 7. project
 
Java script basics
Java script basicsJava script basics
Java script basics
 
Creating User Friendly Joomla! Websites and Forms | Joomla! Day Deutschland
Creating User Friendly Joomla! Websites and Forms | Joomla! Day DeutschlandCreating User Friendly Joomla! Websites and Forms | Joomla! Day Deutschland
Creating User Friendly Joomla! Websites and Forms | Joomla! Day Deutschland
 
Java script introducation & basics
Java script introducation & basicsJava script introducation & basics
Java script introducation & basics
 
javascript3
javascript3javascript3
javascript3
 
Web engineering - Measuring Effort Prediction Power and Accuracy
Web engineering - Measuring Effort Prediction Power and AccuracyWeb engineering - Measuring Effort Prediction Power and Accuracy
Web engineering - Measuring Effort Prediction Power and Accuracy
 
Web Engineering - Web Application Testing
Web Engineering - Web Application TestingWeb Engineering - Web Application Testing
Web Engineering - Web Application Testing
 
[CSS Drawing] Basic Tutorial (라이언 그리기)
[CSS Drawing] Basic Tutorial (라이언 그리기)[CSS Drawing] Basic Tutorial (라이언 그리기)
[CSS Drawing] Basic Tutorial (라이언 그리기)
 
Web engineering - An overview about HTML
Web engineering -  An overview about HTMLWeb engineering -  An overview about HTML
Web engineering - An overview about HTML
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
 
Need for Web Engineering
Need for Web EngineeringNeed for Web Engineering
Need for Web Engineering
 
HTML Dasar : #10 Form
HTML Dasar : #10 FormHTML Dasar : #10 Form
HTML Dasar : #10 Form
 
Angular js for beginners
Angular js for beginnersAngular js for beginners
Angular js for beginners
 
Basic css-tutorial
Basic css-tutorialBasic css-tutorial
Basic css-tutorial
 
Tables and Forms in HTML
Tables and Forms in HTMLTables and Forms in HTML
Tables and Forms in HTML
 
Basic css
Basic cssBasic css
Basic css
 

Similar to [Basic HTML/CSS] 4. html - form tags

Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)
club23
 
HtmlForms- basic HTML forms description.
HtmlForms- basic HTML forms description.HtmlForms- basic HTML forms description.
HtmlForms- basic HTML forms description.
MohammadRafsunIslam
 
HTML_FORM_ELEMENTS HTML_FORM_ELEMENTS.pptx
HTML_FORM_ELEMENTS HTML_FORM_ELEMENTS.pptxHTML_FORM_ELEMENTS HTML_FORM_ELEMENTS.pptx
HTML_FORM_ELEMENTS HTML_FORM_ELEMENTS.pptx
VenuRegula
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
CK Yang
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
CK Yang
 
Html - Tables, Forms and Frames by Telerik Academy
Html - Tables, Forms and Frames by Telerik AcademyHtml - Tables, Forms and Frames by Telerik Academy
Html - Tables, Forms and Frames by Telerik Academy
Ognyan Penkov
 

Similar to [Basic HTML/CSS] 4. html - form tags (20)

Html Tutorial
Html TutorialHtml Tutorial
Html Tutorial
 
Std 12 Computer Chapter 1 Creating Html Forms Using KompoZer
Std 12 Computer Chapter 1 Creating Html Forms Using KompoZerStd 12 Computer Chapter 1 Creating Html Forms Using KompoZer
Std 12 Computer Chapter 1 Creating Html Forms Using KompoZer
 
Computer language - Html forms
Computer language - Html formsComputer language - Html forms
Computer language - Html forms
 
Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)
 
HTML 5 Simple Tutorial Part 4
HTML 5 Simple Tutorial Part 4HTML 5 Simple Tutorial Part 4
HTML 5 Simple Tutorial Part 4
 
Forms.pptx
Forms.pptxForms.pptx
Forms.pptx
 
HtmlForms- basic HTML forms description.
HtmlForms- basic HTML forms description.HtmlForms- basic HTML forms description.
HtmlForms- basic HTML forms description.
 
CSS_Forms.pdf
CSS_Forms.pdfCSS_Forms.pdf
CSS_Forms.pdf
 
ASSIGNMENT3 ew.docx
ASSIGNMENT3 ew.docxASSIGNMENT3 ew.docx
ASSIGNMENT3 ew.docx
 
html.pptx
html.pptxhtml.pptx
html.pptx
 
HTML_FORM_ELEMENTS HTML_FORM_ELEMENTS.pptx
HTML_FORM_ELEMENTS HTML_FORM_ELEMENTS.pptxHTML_FORM_ELEMENTS HTML_FORM_ELEMENTS.pptx
HTML_FORM_ELEMENTS HTML_FORM_ELEMENTS.pptx
 
HTML Tables and Forms
HTML Tables and Forms HTML Tables and Forms
HTML Tables and Forms
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
 
Tm 1st quarter - 2nd meeting
Tm   1st quarter - 2nd meetingTm   1st quarter - 2nd meeting
Tm 1st quarter - 2nd meeting
 
Html - Tables, Forms and Frames by Telerik Academy
Html - Tables, Forms and Frames by Telerik AcademyHtml - Tables, Forms and Frames by Telerik Academy
Html - Tables, Forms and Frames by Telerik Academy
 
Forms Part 1
Forms Part 1Forms Part 1
Forms Part 1
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Web(chap2)
Web(chap2)Web(chap2)
Web(chap2)
 
11-html-forms.ppt
11-html-forms.ppt11-html-forms.ppt
11-html-forms.ppt
 

More from Hyejin Oh (7)

190614 마크업 직군 소개
190614 마크업 직군 소개190614 마크업 직군 소개
190614 마크업 직군 소개
 
191011 SVG를 배경이미지로 활용한 아이콘 삽질기 - 코인원 오혜진 (W3C HTML5 Conference)
191011 SVG를 배경이미지로 활용한 아이콘 삽질기 - 코인원 오혜진 (W3C HTML5 Conference)191011 SVG를 배경이미지로 활용한 아이콘 삽질기 - 코인원 오혜진 (W3C HTML5 Conference)
191011 SVG를 배경이미지로 활용한 아이콘 삽질기 - 코인원 오혜진 (W3C HTML5 Conference)
 
190413 스타트업에서 마크업 개발자로 살아남기 - 오혜진 발표
190413 스타트업에서 마크업 개발자로 살아남기 - 오혜진 발표190413 스타트업에서 마크업 개발자로 살아남기 - 오혜진 발표
190413 스타트업에서 마크업 개발자로 살아남기 - 오혜진 발표
 
[Basic HTML/CSS] 2. html - list tags
[Basic HTML/CSS] 2. html - list tags[Basic HTML/CSS] 2. html - list tags
[Basic HTML/CSS] 2. html - list tags
 
[Basic HTML/CSS] 1. html - basic tags
[Basic HTML/CSS] 1. html - basic tags[Basic HTML/CSS] 1. html - basic tags
[Basic HTML/CSS] 1. html - basic tags
 
[Basic HTML/CSS] 0. introduction
[Basic HTML/CSS] 0. introduction[Basic HTML/CSS] 0. introduction
[Basic HTML/CSS] 0. introduction
 
HTTP 완벽 가이드 9~10장
HTTP 완벽 가이드 9~10장HTTP 완벽 가이드 9~10장
HTTP 완벽 가이드 9~10장
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Recently uploaded (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

[Basic HTML/CSS] 4. html - form tags

  • 1. BASIC HTML & CSS 4. html - form tags [ 2017.01.17. Tue ]
  • 2. To Do 1. Basic Tags ○ h1~h6, div, p, span, img, a, strong, b, em, i 2. List tags ○ ul li, ol li, dl dt dd 3. Table tags ○ table, thead, tbody, tfoot, tr, td, colgroup, col 4. Form tags ○ form, fieldset, legend, label, input, select, option, textarea, button 5. Etc ○ header, footer, nav, aside, section, article ○ iframe, blockquote, ruby, sup, sub, pre, code, mark
  • 4. form The HTML <form> element represents a document section that contains interactive controls to submit information to a web server. form, fieldset, legend, label, input, select, option, textarea, button
  • 5. fieldset, legend ● The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form. ● The HTML <legend> element represents a caption for the content of its parent <fieldset>. form, fieldset, legend, label, input, select, option, textarea, button
  • 6. 1. <label for="test"></label> <input type="text" id="test"> 2. <label><input type="text"></label> form, fieldset, legend, label, input, select, option, textarea, button
  • 7. <input type="xxx"> type="text | email | tel | password | checkbox | radio" hidden, search, url, datetime, data, month, week, time, number, range, color, file, submit, image, reset, button, progress, meter form, fieldset, legend, label, input, select, option, textarea, button
  • 8. form, fieldset, legend, label, input, select, option, textarea, button 모바일 사용성
  • 9. <input type="text" autofocus> <input type="text" required> <input type="text" readonly> form, fieldset, legend, label, input, select, option, textarea, button
  • 10. <!-- multiple은 ctrl(cmd)을 누르고 여러항목 선택 가능 --> <select size="n" multiple> <optgroup label="그룹"> <option value="xx">항목1</option> <option value="xx" selected>항목2</option> </optgroup> </select> form, fieldset, legend, label, input, select, option, textarea, button
  • 11. <textarea> The HTML <textarea> element represents a multi-line plain-text editing control. form, fieldset, legend, label, input, select, option, textarea, button
  • 12. <button type="xxx"></button> type="button | reset | submit" form, fieldset, legend, label, input, select, option, textarea, button
  • 16. practice /* CSS */ form { width: 500px; } div { margin: 10px 0; } label { display: inline-block; width: 100px; } input:not([type="radio"]):not([type="checkbox"]) { padding: 0 10px; width: 150px; height: 25px; } 체크리스트 1. 적절한 input type, placeholder 2. label for와 input id로 연결 3. select 항목 중 1가지가 선택(selected) 되어 있어야 함 4. 성별이 선택(checked)되어 있어야 함 5. 사용 가능 한 스킬이 선택(checked)되어 있어야 함 email
  • 17. Facebook / Twitter / Codepen @zineeworld