SlideShare a Scribd company logo
1 of 44
Building the User Interface by Using
HTML5: Organization, Input, and
Validation
Lesson 3
Exam Objective Matrix
Skills/Concepts

MTA Exam Objectives

Choosing and Configuring
HTML5 Tags to Organize
Content and Forms
Choosing and Configuring
HTML5 Tags for Input and
Validation

Choose and configure HTML5 tags to organize
content and forms. (2.4)
Choose and configure HTML5 tags for input
and validation. (2.5)

2
div Element
• Used for years to create structure of an
HTML document
• Often includes a class or ID attribute
• May include CSS styles such as
background-color, height, and width
• Example:
– <div id="header" > This is a header
</div>
3
New HTML5 Elements for Structuring and
Organizing Content
• header, footer, section, nav, article,
and aside

4
Semantic Markup
• Tag names that are intuitive
• Makes it easier to build and modify HTML
documents
• Makes it easier for Web browsers and
other programs to interpret
• Developers can still use <div> in HTML5
documents; should use new structure
elements whenever appropriate
5
header and footer Elements
• The header element defines a header for a
document, section, or article. HTML 4.01
uses the header div (<div id="header">).
• The footer element defines a footer for a
document or section, and typically
contains information about the document
or section, such as the author name,
copyright data, links to related documents,
and so on.
6
header and footer Elements (Continued)
• Can include multiple headers or footers in
an HTML5 document

7
header and footer Markup Example

8
section Element
• Defines a section in a document, such as
a chapter, parts of a thesis, or parts of a
Web page whose content is distinct from
each other
• According to the W3C, must contain at
least one heading and define something
that would ordinarily appear in the
document’s outline
9
section Example

10
section Example

11
nav Element
• Defines a block of navigation links and is
useful for creating
– A set of navigation links as a document’s
primary navigation
– A table of contents
– Breadcrumbs in a footer
– Previous-Home-Next links

12
nav Example

13
nav Example

14
article Element
• Defines a part of an HTML document that
consists of a ―self-contained composition‖
independent from the rest of the content in
the document
• Content set off by <article> tags can be
distributed in syndication
– Think of it as content that makes sense on
its own
15
aside Element
• Used for sidebars and notes—content
that’s related to the current topic but would
interrupt the flow of the document if left
inline

16
aside Example

17
aside Example

18
HTML Tables
• <table> defines overall table
• <tr> defines rows
• <th> defines column headers
• <td> defines cells

• <caption> adds a caption above or below

table
• <col> applies inline CSS styles

• Long, scrolling tables use <thead>,
<tfoot>, and <tbody> tags
19
HTML Table Example

20
HTML Table Example

21
HTML Table Example
with Color

22
HTML Table Example with Color

23
Ordered List
• Orders list entries using numbers, by
default
• Uses the <ol> tag with attributes:
– reversed: Reverses the order of the list

– start number: Specifies the start value of
the ordered list
– type: Specifies list item marker, such as "1"
for displaying decimal numbers
24
Ordered List Example

25
Unordered List
• Displays list entries in a bulleted list
• Uses a <ul> tag
• Round bullet symbol is the default marker
for list items
• Can change bullet symbols
– For squares, add type="square" to the
<ul> tag
– For empty circles, add type="circle"
26
Unordered List Example

27
Unordered List Example

28
Forms and Input
• Form input is the information a user enters
into fields in a Web or client application form.
• HTML5 introduces several new form and
input element attributes; some are:
– url for entering a single Web address
– email for a single email address or a list of
email addresses
– search to prompt users to enter text they
want to search for
29
Creating a Form
• Use the <form> start and end tags
• All form content and fields are between
<form> tags
• Common syntax:
<form id="keyword">
<content and fields>
</form>

30
Creating a Form (Continued)
• The fieldset element is used with many
forms to group related elements.
• The <fieldset> tag draws a box around
individual elements and/or around the
entire form.

31
Form with Fieldset Example

32
Simple Form Example

33
Simple Form Example

34
Form required and email Attributes
• The required attribute requires
information in a field when the form is
submitted.
• The email attribute requires the user to
enter an email address.
• Markup example:
<input type="email" required />

35
required Example

36
Form placeholder Attribute
• Placeholder text is text displayed inside
an input field when the field is empty. It
helps users understand the type of
information they should enter or select.
When you click on or tab to the input field
and start typing, the newly entered text
replaces the placeholder text.
• Markup example:
<input name="fName" placeholder="First
Name" />
37
Form pattern Attribute
• The pattern attribute provides a format
(a regular expression) for an input field,
which is used to validate whatever is
entered into the field.
• Markup example:
<input type="text" id="empID"
name="EmployeeID" required
pattern="[A-Z]{2}[0-9]{4}"
title="Employee ID is two capital
letters followed by four digits">
38
Form pattern Attribute (Continued)
• You can use the pattern attribute with
these <input> types:
– text
– search
– url
– telephone
– email
– password

39
Form autofocus Attribute
• The autofocus attribute moves the focus
to a particular input field when a Web page
loads.
• Markup example:
<input type="text" name="fname"
autofocus="autofocus" />

40
Validation
• The process of verifying that information
entered or captured in a form is in the correct
format and usable before sending the data to
the server
• Some things verified during validation:
– Required fields are empty
– Email addresses are valid
– Dates are valid
– Text does not appear in a numeric field or
vice versa
41
Validation (Continued)
• Automatic validation of input means the
browser checks the data the user inputs.
– Also referred to as client-side validation

• Server-side validation occurs when
server validates data received from an
input form

42
Validation Example

43
Recap
• div element

• Semantic markup
• header and footer elements
• section element
• nav element
• article element
• aside element
• HTML tables
• Ordered and unordered lists
• Forms and input
• Validation

44

More Related Content

What's hot

web designing blogger html codes
web designing blogger html codesweb designing blogger html codes
web designing blogger html codesVENGADESHA3
 
HTML-5 New Input Types
HTML-5 New Input TypesHTML-5 New Input Types
HTML-5 New Input TypesMinhas Kamal
 
Oreilly -html_and_xhtml_pocket_reference_%28_december_2009%29_%28at_tica%29_1
Oreilly  -html_and_xhtml_pocket_reference_%28_december_2009%29_%28at_tica%29_1Oreilly  -html_and_xhtml_pocket_reference_%28_december_2009%29_%28at_tica%29_1
Oreilly -html_and_xhtml_pocket_reference_%28_december_2009%29_%28at_tica%29_1gajapandiyan
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratchAhmad Al-ammar
 
20 html-forms
20 html-forms20 html-forms
20 html-formsKumar
 
Building html forms
Building html formsBuilding html forms
Building html formsice es
 
Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)John Bosco Javellana, MAEd.
 
Designing web pages html forms and input
Designing web pages html  forms and inputDesigning web pages html  forms and input
Designing web pages html forms and inputJesus Obenita Jr.
 
Gitika html ppt
Gitika html pptGitika html ppt
Gitika html pptgitika -
 
Formatting Text and Links
Formatting Text and LinksFormatting Text and Links
Formatting Text and LinksBravocash
 
HTML (HyperText Markup Language)
HTML (HyperText Markup Language)HTML (HyperText Markup Language)
HTML (HyperText Markup Language)Amber Bhaumik
 
Microsoft dynamics ax2012 : forms and tables methods call sequences, How To?
Microsoft dynamics ax2012 : forms and tables methods call sequences, How To?Microsoft dynamics ax2012 : forms and tables methods call sequences, How To?
Microsoft dynamics ax2012 : forms and tables methods call sequences, How To?Mohamed Amine HAMDAOUI
 

What's hot (20)

web designing blogger html codes
web designing blogger html codesweb designing blogger html codes
web designing blogger html codes
 
HTML-5 New Input Types
HTML-5 New Input TypesHTML-5 New Input Types
HTML-5 New Input Types
 
Oreilly -html_and_xhtml_pocket_reference_%28_december_2009%29_%28at_tica%29_1
Oreilly  -html_and_xhtml_pocket_reference_%28_december_2009%29_%28at_tica%29_1Oreilly  -html_and_xhtml_pocket_reference_%28_december_2009%29_%28at_tica%29_1
Oreilly -html_and_xhtml_pocket_reference_%28_december_2009%29_%28at_tica%29_1
 
Html forms
Html formsHtml forms
Html forms
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
 
Web Development - Lecture 3
Web Development - Lecture 3Web Development - Lecture 3
Web Development - Lecture 3
 
Web Development - Lecture 2
Web Development - Lecture 2Web Development - Lecture 2
Web Development - Lecture 2
 
20 html-forms
20 html-forms20 html-forms
20 html-forms
 
Building html forms
Building html formsBuilding html forms
Building html forms
 
Elements
ElementsElements
Elements
 
Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)Empowerment Technologies Lecture 10 (Philippines SHS)
Empowerment Technologies Lecture 10 (Philippines SHS)
 
Designing web pages html forms and input
Designing web pages html  forms and inputDesigning web pages html  forms and input
Designing web pages html forms and input
 
Notes4
Notes4Notes4
Notes4
 
Html
HtmlHtml
Html
 
Css
CssCss
Css
 
Gitika html ppt
Gitika html pptGitika html ppt
Gitika html ppt
 
Formatting Text and Links
Formatting Text and LinksFormatting Text and Links
Formatting Text and Links
 
Unit 2.1
Unit 2.1Unit 2.1
Unit 2.1
 
HTML (HyperText Markup Language)
HTML (HyperText Markup Language)HTML (HyperText Markup Language)
HTML (HyperText Markup Language)
 
Microsoft dynamics ax2012 : forms and tables methods call sequences, How To?
Microsoft dynamics ax2012 : forms and tables methods call sequences, How To?Microsoft dynamics ax2012 : forms and tables methods call sequences, How To?
Microsoft dynamics ax2012 : forms and tables methods call sequences, How To?
 

Viewers also liked

CashHiringCustomerService
CashHiringCustomerServiceCashHiringCustomerService
CashHiringCustomerServiceMisty Valentin
 
Macias
MaciasMacias
Maciasyoly21
 
Icons Who Brunch Red
Icons Who Brunch RedIcons Who Brunch Red
Icons Who Brunch RedSanya Hudson
 
Sahara Fund Programme Consolidated Report 2009 2014
Sahara Fund Programme Consolidated Report 2009 2014Sahara Fund Programme Consolidated Report 2009 2014
Sahara Fund Programme Consolidated Report 2009 2014Hashoo Foundation USA
 
Mi profesion
Mi profesionMi profesion
Mi profesionmairis
 
Instruction Manual Minelab Safari Metal Detector English Language screen 490...
Instruction Manual Minelab Safari Metal Detector English Language  screen 490...Instruction Manual Minelab Safari Metal Detector English Language  screen 490...
Instruction Manual Minelab Safari Metal Detector English Language screen 490...Serious Detecting
 
Venture capital ashima
Venture capital  ashimaVenture capital  ashima
Venture capital ashimaAshima Thakur
 
διοργάνωση σχολικών συναντήσεων,πάρτυ,γιορτών.
διοργάνωση σχολικών συναντήσεων,πάρτυ,γιορτών.διοργάνωση σχολικών συναντήσεων,πάρτυ,γιορτών.
διοργάνωση σχολικών συναντήσεων,πάρτυ,γιορτών.EKDILOSIS event production
 
Tema: reciclaje sección 4-A
Tema: reciclaje sección 4-ATema: reciclaje sección 4-A
Tema: reciclaje sección 4-Ataguti
 
Medievel period in europe
Medievel period in europeMedievel period in europe
Medievel period in europeAbhishek Mewada
 
Instruction Manual Minelab Sovereign GT Metal Detector English Language webs...
Instruction Manual Minelab Sovereign GT Metal Detector English Language  webs...Instruction Manual Minelab Sovereign GT Metal Detector English Language  webs...
Instruction Manual Minelab Sovereign GT Metal Detector English Language webs...Serious Detecting
 
ΠΟΛΙΤΙΣΜΟΣ-ΠΕΡΙΒΑΛΛΟΝ
ΠΟΛΙΤΙΣΜΟΣ-ΠΕΡΙΒΑΛΛΟΝΠΟΛΙΤΙΣΜΟΣ-ΠΕΡΙΒΑΛΛΟΝ
ΠΟΛΙΤΙΣΜΟΣ-ΠΕΡΙΒΑΛΛΟΝo.paliatsou
 

Viewers also liked (20)

CashHiringCustomerService
CashHiringCustomerServiceCashHiringCustomerService
CashHiringCustomerService
 
Manual de picasa
Manual de picasaManual de picasa
Manual de picasa
 
Macias
MaciasMacias
Macias
 
CREELA DR - Lists
CREELA DR - ListsCREELA DR - Lists
CREELA DR - Lists
 
Icons Who Brunch Red
Icons Who Brunch RedIcons Who Brunch Red
Icons Who Brunch Red
 
webnebsHomepage1
webnebsHomepage1webnebsHomepage1
webnebsHomepage1
 
Valiente
ValienteValiente
Valiente
 
Sahara Fund Programme Consolidated Report 2009 2014
Sahara Fund Programme Consolidated Report 2009 2014Sahara Fund Programme Consolidated Report 2009 2014
Sahara Fund Programme Consolidated Report 2009 2014
 
Mi profesion
Mi profesionMi profesion
Mi profesion
 
Instruction Manual Minelab Safari Metal Detector English Language screen 490...
Instruction Manual Minelab Safari Metal Detector English Language  screen 490...Instruction Manual Minelab Safari Metal Detector English Language  screen 490...
Instruction Manual Minelab Safari Metal Detector English Language screen 490...
 
Venture capital ashima
Venture capital  ashimaVenture capital  ashima
Venture capital ashima
 
διοργάνωση σχολικών συναντήσεων,πάρτυ,γιορτών.
διοργάνωση σχολικών συναντήσεων,πάρτυ,γιορτών.διοργάνωση σχολικών συναντήσεων,πάρτυ,γιορτών.
διοργάνωση σχολικών συναντήσεων,πάρτυ,γιορτών.
 
lesly morato
lesly moratolesly morato
lesly morato
 
BROCHURE
BROCHUREBROCHURE
BROCHURE
 
Tema: reciclaje sección 4-A
Tema: reciclaje sección 4-ATema: reciclaje sección 4-A
Tema: reciclaje sección 4-A
 
Medievel period in europe
Medievel period in europeMedievel period in europe
Medievel period in europe
 
Shacking up Power Point.PDF
Shacking up Power Point.PDFShacking up Power Point.PDF
Shacking up Power Point.PDF
 
Instruction Manual Minelab Sovereign GT Metal Detector English Language webs...
Instruction Manual Minelab Sovereign GT Metal Detector English Language  webs...Instruction Manual Minelab Sovereign GT Metal Detector English Language  webs...
Instruction Manual Minelab Sovereign GT Metal Detector English Language webs...
 
ΠΟΛΙΤΙΣΜΟΣ-ΠΕΡΙΒΑΛΛΟΝ
ΠΟΛΙΤΙΣΜΟΣ-ΠΕΡΙΒΑΛΛΟΝΠΟΛΙΤΙΣΜΟΣ-ΠΕΡΙΒΑΛΛΟΝ
ΠΟΛΙΤΙΣΜΟΣ-ΠΕΡΙΒΑΛΛΟΝ
 
2 web-forms
2 web-forms2 web-forms
2 web-forms
 

Similar to MTA html5 organization, input, and validation

Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5Vlad Posea
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptDianajeon3
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.pptssuser568d77
 
1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptxMattMarino13
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptxMattMarino13
 
XML for beginners
XML for beginnersXML for beginners
XML for beginnerssafysidhu
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_mediaDhairya Joshi
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2Sónia
 
css and Input attributes
css and Input attributescss and Input attributes
css and Input attributesSiji P
 
9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptx9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptxclement swarnappa
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML FormNosheen Qamar
 
Shreyansh_patni web developer
Shreyansh_patni web developerShreyansh_patni web developer
Shreyansh_patni web developerShreyanshpatni5
 

Similar to MTA html5 organization, input, and validation (20)

Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).ppt
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
 
Lab1_HTML.pptx
Lab1_HTML.pptxLab1_HTML.pptx
Lab1_HTML.pptx
 
1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
 
XML for beginners
XML for beginnersXML for beginners
XML for beginners
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html
HtmlHtml
Html
 
MTA html5 text_graphics_media
MTA html5 text_graphics_mediaMTA html5 text_graphics_media
MTA html5 text_graphics_media
 
5. Frames & Forms.pdf
5. Frames & Forms.pdf5. Frames & Forms.pdf
5. Frames & Forms.pdf
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
 
css and Input attributes
css and Input attributescss and Input attributes
css and Input attributes
 
9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptx9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptx
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML Form
 
Shreyansh_patni web developer
Shreyansh_patni web developerShreyansh_patni web developer
Shreyansh_patni web developer
 

Recently uploaded

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
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 Servicegiselly40
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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 AutomationSafe Software
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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.pptxKatpro Technologies
 
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 MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
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 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
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...Igalia
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
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 2024Results
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 

MTA html5 organization, input, and validation

  • 1. Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3
  • 2. Exam Objective Matrix Skills/Concepts MTA Exam Objectives Choosing and Configuring HTML5 Tags to Organize Content and Forms Choosing and Configuring HTML5 Tags for Input and Validation Choose and configure HTML5 tags to organize content and forms. (2.4) Choose and configure HTML5 tags for input and validation. (2.5) 2
  • 3. div Element • Used for years to create structure of an HTML document • Often includes a class or ID attribute • May include CSS styles such as background-color, height, and width • Example: – <div id="header" > This is a header </div> 3
  • 4. New HTML5 Elements for Structuring and Organizing Content • header, footer, section, nav, article, and aside 4
  • 5. Semantic Markup • Tag names that are intuitive • Makes it easier to build and modify HTML documents • Makes it easier for Web browsers and other programs to interpret • Developers can still use <div> in HTML5 documents; should use new structure elements whenever appropriate 5
  • 6. header and footer Elements • The header element defines a header for a document, section, or article. HTML 4.01 uses the header div (<div id="header">). • The footer element defines a footer for a document or section, and typically contains information about the document or section, such as the author name, copyright data, links to related documents, and so on. 6
  • 7. header and footer Elements (Continued) • Can include multiple headers or footers in an HTML5 document 7
  • 8. header and footer Markup Example 8
  • 9. section Element • Defines a section in a document, such as a chapter, parts of a thesis, or parts of a Web page whose content is distinct from each other • According to the W3C, must contain at least one heading and define something that would ordinarily appear in the document’s outline 9
  • 12. nav Element • Defines a block of navigation links and is useful for creating – A set of navigation links as a document’s primary navigation – A table of contents – Breadcrumbs in a footer – Previous-Home-Next links 12
  • 15. article Element • Defines a part of an HTML document that consists of a ―self-contained composition‖ independent from the rest of the content in the document • Content set off by <article> tags can be distributed in syndication – Think of it as content that makes sense on its own 15
  • 16. aside Element • Used for sidebars and notes—content that’s related to the current topic but would interrupt the flow of the document if left inline 16
  • 19. HTML Tables • <table> defines overall table • <tr> defines rows • <th> defines column headers • <td> defines cells • <caption> adds a caption above or below table • <col> applies inline CSS styles • Long, scrolling tables use <thead>, <tfoot>, and <tbody> tags 19
  • 23. HTML Table Example with Color 23
  • 24. Ordered List • Orders list entries using numbers, by default • Uses the <ol> tag with attributes: – reversed: Reverses the order of the list – start number: Specifies the start value of the ordered list – type: Specifies list item marker, such as "1" for displaying decimal numbers 24
  • 26. Unordered List • Displays list entries in a bulleted list • Uses a <ul> tag • Round bullet symbol is the default marker for list items • Can change bullet symbols – For squares, add type="square" to the <ul> tag – For empty circles, add type="circle" 26
  • 29. Forms and Input • Form input is the information a user enters into fields in a Web or client application form. • HTML5 introduces several new form and input element attributes; some are: – url for entering a single Web address – email for a single email address or a list of email addresses – search to prompt users to enter text they want to search for 29
  • 30. Creating a Form • Use the <form> start and end tags • All form content and fields are between <form> tags • Common syntax: <form id="keyword"> <content and fields> </form> 30
  • 31. Creating a Form (Continued) • The fieldset element is used with many forms to group related elements. • The <fieldset> tag draws a box around individual elements and/or around the entire form. 31
  • 32. Form with Fieldset Example 32
  • 35. Form required and email Attributes • The required attribute requires information in a field when the form is submitted. • The email attribute requires the user to enter an email address. • Markup example: <input type="email" required /> 35
  • 37. Form placeholder Attribute • Placeholder text is text displayed inside an input field when the field is empty. It helps users understand the type of information they should enter or select. When you click on or tab to the input field and start typing, the newly entered text replaces the placeholder text. • Markup example: <input name="fName" placeholder="First Name" /> 37
  • 38. Form pattern Attribute • The pattern attribute provides a format (a regular expression) for an input field, which is used to validate whatever is entered into the field. • Markup example: <input type="text" id="empID" name="EmployeeID" required pattern="[A-Z]{2}[0-9]{4}" title="Employee ID is two capital letters followed by four digits"> 38
  • 39. Form pattern Attribute (Continued) • You can use the pattern attribute with these <input> types: – text – search – url – telephone – email – password 39
  • 40. Form autofocus Attribute • The autofocus attribute moves the focus to a particular input field when a Web page loads. • Markup example: <input type="text" name="fname" autofocus="autofocus" /> 40
  • 41. Validation • The process of verifying that information entered or captured in a form is in the correct format and usable before sending the data to the server • Some things verified during validation: – Required fields are empty – Email addresses are valid – Dates are valid – Text does not appear in a numeric field or vice versa 41
  • 42. Validation (Continued) • Automatic validation of input means the browser checks the data the user inputs. – Also referred to as client-side validation • Server-side validation occurs when server validates data received from an input form 42
  • 44. Recap • div element • Semantic markup • header and footer elements • section element • nav element • article element • aside element • HTML tables • Ordered and unordered lists • Forms and input • Validation 44

Editor's Notes

  1. Tip: Add your own speaker notes here.
  2. Tip: Add your own speaker notes here.
  3. Tip: Add your own speaker notes here.
  4. Tip: Add your own speaker notes here.
  5. Tip: Add your own speaker notes here.
  6. Tip: Add your own speaker notes here.
  7. Tip: Add your own speaker notes here.
  8. Tip: Add your own speaker notes here.
  9. Tip: Add your own speaker notes here.
  10. Tip: Add your own speaker notes here.
  11. Tip: Add your own speaker notes here.
  12. Tip: Add your own speaker notes here.
  13. Tip: Add your own speaker notes here.
  14. Tip: Add your own speaker notes here.
  15. Tip: Add your own speaker notes here.
  16. Tip: Add your own speaker notes here.
  17. Tip: Add your own speaker notes here.
  18. Tip: Add your own speaker notes here.
  19. Tip: Add your own speaker notes here.
  20. Tip: Add your own speaker notes here.
  21. Tip: Add your own speaker notes here.
  22. Tip: Add your own speaker notes here.
  23. Tip: Add your own speaker notes here.
  24. Tip: Add your own speaker notes here.
  25. Tip: Add your own speaker notes here.
  26. Tip: Add your own speaker notes here.
  27. Tip: Add your own speaker notes here.
  28. Tip: Add your own speaker notes here.
  29. Tip: Add your own speaker notes here.
  30. Tip: Add your own speaker notes here.
  31. Tip: Add your own speaker notes here.
  32. Tip: Add your own speaker notes here.
  33. Tip: Add your own speaker notes here.
  34. Tip: Add your own speaker notes here.
  35. Tip: Add your own speaker notes here.
  36. Tip: Add your own speaker notes here.
  37. Tip: Add your own speaker notes here.
  38. Tip: Add your own speaker notes here.
  39. Tip: Add your own speaker notes here.
  40. Tip: Add your own speaker notes here.
  41. Tip: Add your own speaker notes here.
  42. Tip: Add your own speaker notes here.