HTML5
1. HTML5 is the latest version of HTML
2. HTML5 has many new input controls
3. supports audio and video tags
new input types & new elements
syntax:
<input type=“ “ id=“ “ - - - - />
color
number
range
date pickers
email
file
< details>
<datalist>
<video>
<audio>
elements
new input controls
This will allow you to select a color from color picker
input type=“color”
we can limit the range of permissible input values
user can give numbers from 4 to 10
note: when you give invalid number you will get a error message
6
11
Number
Value must be lesser than or equal to 10
input type=“number”
min max
will allow us to create a slider in the web-page
input type=“range”
input type=“date” input type=“month”
Monthname Year
this will allow only the email addresses
Please insert an ‘@’, palle is missing ‘@’
palle
Note:
if the email for mat is not correct you will get this error
input type=“email”
when the email is typed
in proper format we
wont get error
File type will allow the user to choose one or more files from their
device storage.
3 files
input type=“file”
The <details> tag specifies additional details that the user can view or
hide on demand
<details> element
<datalist>
when datalist id attached to a textbox the text box
will work like a dropdown list .
Ferrari
chevrolet
lexus
Ferrari
datalist alone will not
display any UI
<video>
The controls attribute is not a key and value pair.
controls is an attribute but not
having value. controls add play
pause sound etc.. options
<audio>
the <audio> tag defines sound, such as music or other
audio streams
controls is an attribute but not
having value. controls add play
pause volumne etc.. options
validations
using validations we can
check the users data format
correctness
required minlength
maxlength
min max
pattern
required attribute
required attribute will not have value. it is used for checking
emptyness of a textbox before submitting the form.
example :-
placeholder
1. The placeholder attribute is used in input tags.
2. It will show a short hint that describes the
expected value
example :-
minlength and maxlength attribute
It will specify the minimum and maximum length of the
text data (strings)
Example:
You cannot type more than
10 characters (maxlength) in
this textbox
min and max attribute
It specifies the minimum and maximum values of
numerical input types.
Example:
This textbox will allow to
enter the numbers
between the min and
max values
1. It allows us to define our own rules to validate the input value
using regular expression
2. if the value does not match the specified pattern, the input will
throw an error.
example :-
Req : I want a textbox which can accept only lower case letters.
ABC
123
pattern – part1
use title attribute to customize the message
pattern – part2
Execute all code and do
all Exercises at Home
End of
DAY 1
Thank you

More Related Content

PPTX
Html 5 web forms 2
PPT
Html class-04
PPTX
HTML - FORMS.pptx
PPTX
Web Design Lecture 4.pptx
PPT
Web forms and html lecture Number 4
PPTX
PPTX
unit2_HTML_Forms fundamentals of html and crore concepts.pptx
Html 5 web forms 2
Html class-04
HTML - FORMS.pptx
Web Design Lecture 4.pptx
Web forms and html lecture Number 4
unit2_HTML_Forms fundamentals of html and crore concepts.pptx

Similar to html5_course_material_introduction_to_html.pdf (20)

PPTX
HTML Forms: The HTML element represents a document section containing interac...
PPTX
Web input forms.pptx
DOCX
DOC
Handout7 html forms
PPTX
HYPERTEXT MARK UP LANGUAGES (HTML) FORMS
PPTX
HTML Forms
PDF
Tm 1st quarter - 2nd meeting
PPT
HtmlForms- basic HTML forms description.
PPTX
Chapter 9: Forms
PPTX
Web Design basic HTML introduction to tags.pptx
PPT
11-html-forms.ppt
PPT
PPT
20-html-forms.ppt
PPT
C++ programming
PPT
M02 un11 p01
PPT
Html Forms.ppt
PPT
Html,Css and Javascript Forms using different tags
PPT
Creating web form(For College Seminars)
PDF
Web Development 5
PPTX
HTML Forms
HTML Forms: The HTML element represents a document section containing interac...
Web input forms.pptx
Handout7 html forms
HYPERTEXT MARK UP LANGUAGES (HTML) FORMS
HTML Forms
Tm 1st quarter - 2nd meeting
HtmlForms- basic HTML forms description.
Chapter 9: Forms
Web Design basic HTML introduction to tags.pptx
11-html-forms.ppt
20-html-forms.ppt
C++ programming
M02 un11 p01
Html Forms.ppt
Html,Css and Javascript Forms using different tags
Creating web form(For College Seminars)
Web Development 5
HTML Forms
Ad

Recently uploaded (20)

PDF
SBOM Document Quality Guide - OpenChain SBOM Study Group
PPT
ch03 data adnd signals- data communications and networks ppt
PPTX
Phoenix Marketo User Group: Building Nurtures that Work for Your Audience. An...
PPTX
Beige and Black Minimalist Project Deck Presentation (1).pptx
PPTX
opentower introduction and the digital twin
PDF
KidsTale AI Review - Create Magical Kids’ Story Videos in 2 Minutes.pdf
PPT
introduction of sql, sql commands(DD,DML,DCL))
PPTX
SIH2024_IDEA_dy_dx_deepfakedetection.pptx
PPTX
Advanced Heap Dump Analysis Techniques Webinar Deck
PDF
How to Set Realistic Project Milestones and Deadlines
PDF
Multiverse AI Review 2025_ The Ultimate All-in-One AI Platform.pdf
PDF
Difference Between Website and Web Application.pdf
PPTX
AI Tools Revolutionizing Software Development Workflows
PDF
10 Mistakes Agile Project Managers Still Make
PDF
OpenAssetIO Virtual Town Hall - August 2025.pdf
PDF
Enscape 3D Crack + With 2025 Activation Key free
PDF
Canva Desktop App With Crack Free Download 2025?
PPTX
HackYourBrain__UtrechtJUG__11092025.pptx
PPTX
oracle_ebs_12.2_project_cutoveroutage.pptx
PDF
How to Write Automated Test Scripts Using Selenium.pdf
SBOM Document Quality Guide - OpenChain SBOM Study Group
ch03 data adnd signals- data communications and networks ppt
Phoenix Marketo User Group: Building Nurtures that Work for Your Audience. An...
Beige and Black Minimalist Project Deck Presentation (1).pptx
opentower introduction and the digital twin
KidsTale AI Review - Create Magical Kids’ Story Videos in 2 Minutes.pdf
introduction of sql, sql commands(DD,DML,DCL))
SIH2024_IDEA_dy_dx_deepfakedetection.pptx
Advanced Heap Dump Analysis Techniques Webinar Deck
How to Set Realistic Project Milestones and Deadlines
Multiverse AI Review 2025_ The Ultimate All-in-One AI Platform.pdf
Difference Between Website and Web Application.pdf
AI Tools Revolutionizing Software Development Workflows
10 Mistakes Agile Project Managers Still Make
OpenAssetIO Virtual Town Hall - August 2025.pdf
Enscape 3D Crack + With 2025 Activation Key free
Canva Desktop App With Crack Free Download 2025?
HackYourBrain__UtrechtJUG__11092025.pptx
oracle_ebs_12.2_project_cutoveroutage.pptx
How to Write Automated Test Scripts Using Selenium.pdf
Ad

html5_course_material_introduction_to_html.pdf

  • 1. HTML5 1. HTML5 is the latest version of HTML 2. HTML5 has many new input controls 3. supports audio and video tags
  • 2. new input types & new elements syntax: <input type=“ “ id=“ “ - - - - /> color number range date pickers email file < details> <datalist> <video> <audio> elements new input controls
  • 3. This will allow you to select a color from color picker input type=“color”
  • 4. we can limit the range of permissible input values user can give numbers from 4 to 10 note: when you give invalid number you will get a error message 6 11 Number Value must be lesser than or equal to 10 input type=“number”
  • 5. min max will allow us to create a slider in the web-page input type=“range”
  • 6. input type=“date” input type=“month” Monthname Year
  • 7. this will allow only the email addresses Please insert an ‘@’, palle is missing ‘@’ palle Note: if the email for mat is not correct you will get this error input type=“email” when the email is typed in proper format we wont get error
  • 8. File type will allow the user to choose one or more files from their device storage. 3 files input type=“file”
  • 9. The <details> tag specifies additional details that the user can view or hide on demand <details> element
  • 10. <datalist> when datalist id attached to a textbox the text box will work like a dropdown list . Ferrari chevrolet lexus Ferrari datalist alone will not display any UI
  • 11. <video> The controls attribute is not a key and value pair. controls is an attribute but not having value. controls add play pause sound etc.. options
  • 12. <audio> the <audio> tag defines sound, such as music or other audio streams controls is an attribute but not having value. controls add play pause volumne etc.. options
  • 13. validations using validations we can check the users data format correctness required minlength maxlength min max pattern
  • 14. required attribute required attribute will not have value. it is used for checking emptyness of a textbox before submitting the form. example :-
  • 15. placeholder 1. The placeholder attribute is used in input tags. 2. It will show a short hint that describes the expected value example :-
  • 16. minlength and maxlength attribute It will specify the minimum and maximum length of the text data (strings) Example: You cannot type more than 10 characters (maxlength) in this textbox
  • 17. min and max attribute It specifies the minimum and maximum values of numerical input types. Example: This textbox will allow to enter the numbers between the min and max values
  • 18. 1. It allows us to define our own rules to validate the input value using regular expression 2. if the value does not match the specified pattern, the input will throw an error. example :- Req : I want a textbox which can accept only lower case letters. ABC 123 pattern – part1
  • 19. use title attribute to customize the message pattern – part2
  • 20. Execute all code and do all Exercises at Home End of DAY 1