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
Слайд 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 (
Слайд 7
header and footer Elements (Continued)
Can include multiple headers
or footers in an HTML5 document
Слайд 8
header and footer Markup Example
Learning HTML5
Here comes
my text
https://jsfiddle.net/koldovsky/qb664wjy/
Слайд 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
Слайд 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
Слайд 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
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
Слайд 19
HTML Tables
defines overall table
defines rows
defines
column headers
defines cells
adds a caption above or
below table
applies inline CSS styles
Long, scrolling tables use , , and tags
Слайд 22
HTML colspan, rowspan
I
II
III
IIII
1
2
3
4
Слайд 23
Ordered List
Orders list entries using numbers, by default
Uses
the 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
Слайд 25
Unordered List
Displays list entries in a bulleted list
Uses
a tag
Round bullet symbol is the default marker
for list items
Can change bullet symbols
For squares, add type="square" to the
tag
For empty circles, add type="circle"
Слайд 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 start and end
tags
All form content and fields are between tags
Common
syntax:
Слайд 30
Creating a Form (Continued)
The fieldset element is used
with many forms to group related elements.
The tag
draws a box around individual elements and/or around the entire form.
Слайд 38
Form pattern Attribute (Continued)
You can use the pattern
attribute with these types:
text
search
url
telephone
email
password
Слайд 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