Слайд 2
Agenda Semantic markup div element header and footer elements section element nav element article
element aside element HTML tables Ordered and unordered lists Forms and input Validation
Слайд 3
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
in HTML5 documents; should use new structure elements whenever appropriate
Слайд 4
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:
This is a header
Слайд 5
New HTML5 Elements for Structuring and Organizing Content
header, footer, section, nav, article, and aside
Слайд 6
header and footer Elements The header element defines a
header for a document, section, or article. HTML 4.01
uses the header div (
). 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.
Слайд 7
header and footer Elements (Continued) Can include multiple headers
Слайд 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
Слайд 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
Слайд 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:
Слайд 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: title="Employee ID is two capital letters followed by four digits">
Слайд 38
Form pattern Attribute (Continued) You can use the pattern
attribute with these 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: 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