HTML5 Flashcards
What were some of the key goals and motivations for the HTML5 specification?
HTML5 was designed to replace older HTML specifications. It provides better semantic support and create better cross-platform support. It also adds new ways of adding rich content (video, audio, cnavas)
What are some of the key new features in HTML5?
HTML5 adds new semantic tags, form controls, JavaScript API’s (storage, drag-and-drop, geolocation, caching).
What are “web workers”?
Web workers bring multi-threading to JavaScript.
What is the correct usage of ?
The element is used to contain introductory and navigational information about a section of the page. This can include the section heading, the author’s name, time and date of publication, table of contents, or other navigational information.
What is the correct usage of ?
The element is meant to house a self-contained composition that can logically be independently recreated outside of the page without losing it’s meaning. Individual blog posts or news stories are good examples.
What is the correct usage of ?
The element is a flexible container for holding content that shares a common informational theme or purpose.
What is the correct usage of ?
The element is used to hold information that should appear at the end of a section of content and contain additional information about the section. Author’s name, copyright information, and related links are typical examples of such content.
Can a contain elements? Can an contain elements? Provide usage examples.
The answer to both questions is yes; i.e., a can contain elements, and an can contain elements.
For example, a personal dashboard page might contain a for social network interactions as well as a for the latest news articles, the latter of which could contain several elements.
Conversely, an might contain a at the end for reader comments.
Can a web page contain multiple elements? What about elements?
Yes to both. In fact, both the and tags are designed to serve their respective purposes in relation to whatever their parent “section” may be. So not only can the page contain a header and a footer, but so can every and element. In fact, a should be present for all of these, although a is not always necessary.
Can a web page contain multiple elements? What about elements?
Yes to both. In fact, both the and tags are designed to serve their respective purposes in relation to whatever their parent “section” may be. So not only can the page contain a header and a footer, but so can every and element. In fact, a should be present for all of these, although a is not always necessary.
Describe the relationship between the and <h1> tags in HTML5.</h1>
In previous specifications of HTML, only one <h1> element was typically present on a page, used for the heading of the entire page. HTML5 specifies that <h1> represents the top-level heading of a “section”, whether that be the page , or an or element. In fact, every element should at least contain an <h1> element. If there is no natural heading for the section, it is a good indication it should not use an or tag.
</h1></h1></h1>
What are some of the key new features in HTML5?
HTML5 adds new semantic tags, form controls, JavaScript API’s (storage, drag-and-drop, geolocation, caching).
What are “web workers”?
Web workers bring multi-threading to JavaScript.
What is the correct usage of ?
The element is used to contain introductory and navigational information about a section of the page. This can include the section heading, the author’s name, time and date of publication, table of contents, or other navigational information.
What is the correct usage of ?
The element is meant to house a self-contained composition that can logically be independently recreated outside of the page without losing it’s meaning. Individual blog posts or news stories are good examples.