HTML 5 Flashcards
When writing HTML5 documents, one of the first new features that you’ll notice is the doc type declaration:
The character encoding (charset) declaration is also simplified:
Forms
- The Web Forms 2.0 specification allows for creation of more powerful forms and more compelling user experiences.
- Date pickers, color pickers, and numeric stepper controls have been added.
- Input field types now include email, search, and URL.
- PUT and DELETE form methods are now supported.
Integrated API (Application Programming Interfaces)
- Drag and Drop
- Audio and Video
- Offline Web Applications
- History
- Local Storage
- Geolocation
- Web Messaging
In HTML, elements typically belonged in either the block level or inline content model. HTML5 introduces seven main content models.
- Metadata
- Embedded
- Interactive
- Heading
- Phrasing
- Flow
- Sectioning
Metadata:
Content that sets up the presentation or behavior of the rest of the content. These elements are found in the head of the document.
Embedded:
Content that imports other resources into the document.
Interactive:
Content specifically intended for user interaction.
Heading:
Defines a section header.
Phrasing:
This model has a number of inline level elements in common with HTML4.
Flow content:
Contains the majority of HTML5 elements that would be included in the normal flow of the document.
Sectioning content:
Defines the scope of headings, content, navigation, and footers.
A generic HTML5 page structure looks like this:
In HTML4, we would define a header like this:
The footer element is also widely used. Generally we refer to a section located at the very bottom of the web page as the footer.
The following information is usually provided between these tags:
- Contact Information
- Privacy Policy
- Social Media Icons
- Terms of Service
- Copyright Information
- Sitemap and Related Documents
This tag represents a section of a page that links to other pages or to certain sections within the page. This would be a section with navigation links.
Here is an example of a major block of navigation links:
A self-contained, independent piece of content that can be used and distributed separately from the rest of the page or site.
This could also be a forum post, a magazine or newspaper article, a blog entry, a comment, an interactive widget or gadget, or any other independent piece of content.
is a logical container of the page or article.